Search this site
Embedded Files
Pawan Kumar Pandey
  • Home
  • Education
  • Experience
  • Publications
  • Awards
  • Research
  • Contact
  • Codes
  • Miscellaneous
Pawan Kumar Pandey
  • Home
  • Education
  • Experience
  • Publications
  • Awards
  • Research
  • Contact
  • Codes
  • Miscellaneous
  • More
    • Home
    • Education
    • Experience
    • Publications
    • Awards
    • Research
    • Contact
    • Codes
    • Miscellaneous

Thesis writing:

  1. KCGS Cambridge University's Word Template 

Writing: Best practices, tips and tricks

LS-DYNA Plugin in Notepad++

Option 1:

  • Menu -> Language -> User Defined Language -> Notepad++ User Defined Language Collection -> Download the corresponding plugin or xml file and follow the prescribed procedure

Option 2: 

  • use following from a guy posted on https://feassistant.com/forums/ls-dyna/caxedit/ save it as .xml file in C:\Program Files\Notepad++\functionList : 

<!--

    Notepad++ User Defined Language file


    language: LS-DYNA keyword input file

    extensions: k key dyn

    author: <acottuli@utas.edu.au>


    Description

       This UDL provides automatic syntax highlighting and code folding for all LS-DYNA input files (.k, .key, .dyn)


    Installation

      1. Open Notepad++ and go to Top Menu -> Language -> User Defined Language -> Open User Defined Language Folder...

      2. Copy this xml file into the folder which opened

      3. Restart Notepad++


    Usage

      - After adding this file to Notepad++'s User Defined Languages Folder, any .k, .key, or .dyn files opened in Notepad++ will automatically be formatted using this UDL

      - To force an open file to be formatted use this UDL, go to Top Menu -> Language -> LSDYNA 

      - To Fold All lines press Alt+0

      - To Unfold All lines press Alt+Shift+0


    Colors used

      - Default color:        000000    rgb(0,0,0)

      - Comments:             238E23    rgb(35,142,35)

      - Numbers:              238E6B    rgb(35,142,107)

      - Keywords:             0000FF    rgb(0,0,255

      - Folding symbol (*):   0000FF    rgb(0,0,255)


    Customisation

      - To use your own color scheme replace the 8 digit hexcode of each fgcolor (in the <WordsStyle> code blocks below) with the hexcode of the colors you want to use.

        A good website for easily visualising rgb colors and converting them to hexcodes is https://www.rapidtables.com/convert/color/rgb-to-hex.html

      - To add new LS-DYNA keywords simply add the keyword to the list of keywords below (note that you only need to add the start of each keyword for it to be colored correctly)

      - To also color lowercase keywords replace caseIgnored="no" with caseIgnored="yes" (note that this may cause lowercase keywords in comments and text fields to be colored incorrectly)

-->

<NotepadPlus>

    <UserLang name="LSDYNA" ext="k key dyn" udlVersion="2.1">

        <Settings>

            <Global caseIgnored="no" />

            <Prefix Keywords1="yes" />

        </Settings>

        <KeywordLists>

            <Keywords name="Comments">00$ 01 02 03 04</Keywords>

            <Keywords name="Folders in code1, middle">*</Keywords>

            <Keywords name="Keywords1">AIRBAG ALE BATTERY BOUNDARY CASE CESE CHANGE CHEMISTRY COMMENT COMPONENT CONSTRAINED CONTACT CONTROL COSIM DAMPING DATABASE DEFINE DEFORMABLE DELETE DUALCESE ELEMENT EM END EOS EXCLUDE FATIGUE FREQUENCY HOURGLASS ICFD IGA INCLUDE INITIAL INTEGRATION INTERFACE KEYWORD LOAD LSO MAT MESH MODULE NODE PARAMETER PART PARTICLE PERTURBATION RAIL RIGIDWALL SECTION SENSOR SET STOCHASTIC STRESS TERMINATION TITLE TRANSLATE UNIT USER</Keywords>

        </KeywordLists>

        <Styles>

            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />

            <WordsStyle name="LINE COMMENTS" fgColor="238E23" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />

            <WordsStyle name="NUMBERS" fgColor="238E6B" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />

            <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />

            <WordsStyle name="FOLDER IN CODE1" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />

        </Styles>

    </UserLang>

</NotepadPlus>



What will happen if I extract ISO file and rather than mounting it?

The ISO file is treated like a compressed archive (similar to a .zip or .tar.gz file). It just extracts its contents to the file system. Mounting is required if you want to simulate the behavior of a physical disk drive or access the contents in a way that requires a mounted filesystem. You can navigate to the extracted folder and run the installer (setup or setup.sh) from there. This works in most cases for software installations like COMSOL.

Advantages of Extracting

  • You can view or modify the contents of the ISO directly without mounting it.

  • If you prefer working with files rather than mounting, this method simplifies access.

Disadvantages of Extracting

  • It takes up additional disk space because the extracted files coexist with the .iso file unless you delete the .iso afterward.

  • It doesn't emulate a virtual drive, which might be required for certain applications that expect to find a mounted disc.

COMSOL: show contour of a desired domain only

Concentration (2D Plot Group) => Selection => Geometric entity level: Domain => Selection: Manual => Select: Domain Number => Activate the 'Propagate to lower dimensions' and 'Apply to dataset edges'


Customize axis range in 2D contour plots of COMSOL Multiphysics Software

Results -> View -> Right Click -> View 2D -> under View 2D 4 -> Axis -> either set xmin, xmax, ymin, ymax manually or use zoom box -> updtae -> Lock axis -> go in the 2D plot group -> in settings -> expand Plot Settings -> in View drop down list -> select View 2D 4


Connect Comsol to MATLAB

APPS -> Install App ->  Browse to "/home/comsol61/multiphysics/mli/toolbox" -> See all files -> Double click on LiveLink for MATLAB.mltbx

Now all the apps will be installed

Open terminal

>> comsol mphserver

>> set username

>> set password

>> confirm password


Install Foxit reader on CentOS/Ubuntu

For 64 bit system:

wget http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/2.x/2.4/en_us/FoxitReader.enu.setup.2.4.4.0911.x64.run.tar.gz

For 32 bit system:

wget http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/2.x/2.4/en_us/FoxitReader.enu.setup.2.4.4.0910.x86.run.tar.gz

go to the folder where file is downloaded

extract the tar file:

tar xzvf FoxitReader*.tar.gz

Grant executable permission

sudo chmod a+x FoxitReader*.run

Run the executable

sudo ./FoxitReader*.run

A window will pop-up accept T&C and specify the installation directory

Grub rescue if ubuntu is deleted in dual boot system

Create a live USB with ubuntu

Boot with live USB

Try ubuntu

make sure system is connected to internet

Open terminal

sudo apt-get install lilo

sudo lilo -M /dev/sda mbr


This command will create a backup of the current configurations in a boot backup folder, and there will be a successful completion message on the Ubuntu terminal “The Master Boot Record of /dev/sda updated”.

That’s it, now you are good to go and shut off your PC and remove the Ubuntu CD or USB from the system. Now power up (start) the laptop/desktop and the system will boot right into Windows as default.

Install Mendeley Reference Manager on CentOS

Download the .AppImage file from official website

Grant the executing permission

Open terminal and enter:

./mendeley-reference-manager-2.81.0-x86_64.AppImage 

One may get an error mentioning: no-sandbox

easiest option is to enter following command:

./mendeley-reference-manager-2.81.0-x86_64.AppImage  --no-sandbox


Comsol Installation on CentOS

Download the comsol setup:

Make the files executable:

chmod 700 autorun.inf

chmod 700 comsol.icns

chmod 700 comsol.ico

chmod 700 ver

chmod 700 setupconfig.ini

cd bin/

ls

cd glnxa64

ls

chmod 700 setup.ini

sudo ./setup

#do all the installation

#got to home directory

gedit .bashrc

create the alias

Make copies of macros for different cases

Replacing "case1" by "caseX" and "tw2D_1" by "tw2D_X":


sed -i -e 's/case1/case3/g' ./plot_case3_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_3/g' ./plot_case3_9probes.mcr


sed -i -e 's/case1/case4/g' ./plot_case4_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_4/g' ./plot_case4_9probes.mcr


sed -i -e 's/case1/case5/g' ./plot_case5_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_5/g' ./plot_case5_9probes.mcr


sed -i -e 's/case1/case6/g' ./plot_case6_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_6/g' ./plot_case6_9probes.mcr


sed -i -e 's/case1/case7/g' ./plot_case7_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_7/g' ./plot_case7_9probes.mcr


sed -i -e 's/case1/case8/g' ./plot_case8_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_8/g' ./plot_case8_9probes.mcr


sed -i -e 's/case1/case9/g' ./plot_case9_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_9/g' ./plot_case9_9probes.mcr


sed -i -e 's/case1/case10/g' ./plot_case10_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_10/g' ./plot_case10_9probes.mcr


sed -i -e 's/case1/case11/g' ./plot_case11_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_11/g' ./plot_case11_9probes.mcr


sed -i -e 's/case1/case12/g' ./plot_case12_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_12/g' ./plot_case12_9probes.mcr


sed -i -e 's/case1/case13/g' ./plot_case13_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_13/g' ./plot_case13_9probes.mcr


sed -i -e 's/case1/case14/g' ./plot_case14_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_14/g' ./plot_case14_9probes.mcr


sed -i -e 's/case1/case15/g' ./plot_case15_9probes.mcr

sed -i -e 's/tw2D_1/tw2D_15/g' ./plot_case15_9probes.mcr


Merge multiple macros in terminal

paste -s plot_case1_9probes.mcr plot_case2_9probes.mcr plot_case3_9probes.mcr plot_case4_9probes.mcr plot_case5_9probes.mcr plot_case6_9probes.mcr plot_case7_9probes.mcr plot_case8_9probes.mcr plot_case9_9probes.mcr plot_case10_9probes.mcr plot_case11_9probes.mcr plot_case12_9probes.mcr plot_case13_9probes.mcr plot_case14_9probes.mcr plot_case15_9probes.mcr > plot_case1to15_9probes.mcr


Merge PDFs

https://pdfsam.org/


Create Bootable USB

Rescue Grub

Install Windows 10 on PC with Ubuntu

Following links may be of some help:

==============================

  1. http://www.linuxdeveloper.space/install-windows-after-linux/

==============================

  1. http://www.linuxdeveloper.space/install-windows-after-linux/#repair-grub-efi

==============================

  1. http://askubuntu.com/questions/129058/how-to-install-windows-7-after-ubuntu-and-dual-boot

==============================

  1. http://askubuntu.com/questions/6317/how-can-i-install-windows-after-ive-installed-ubuntu

==============================

  1. http://askubuntu.com/questions/129058/how-to-install-windows-7-after-ubuntu-and-dual-boot

==============================

  1. http://askubuntu.com/questions/83771/recovering-grub-after-installing-windows-7

==============================

  1. http://www.pcworld.com/article/2142325/install-ubuntu-and-keep-windows.html

==============================

  1. http://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/ 



Boot through live-usb

in terminal run:

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair


Terminal useful tips/tricks

Install Windows 10 on PC with Ubuntu

Following links may be of some help:

==============================

  1. http://www.linuxdeveloper.space/install-windows-after-linux/

==============================

  1. http://www.linuxdeveloper.space/install-windows-after-linux/#repair-grub-efi

==============================

  1. http://askubuntu.com/questions/129058/how-to-install-windows-7-after-ubuntu-and-dual-boot

==============================

  1. http://askubuntu.com/questions/6317/how-can-i-install-windows-after-ive-installed-ubuntu

==============================

  1. http://askubuntu.com/questions/129058/how-to-install-windows-7-after-ubuntu-and-dual-boot

==============================

  1. http://askubuntu.com/questions/83771/recovering-grub-after-installing-windows-7

==============================

  1. http://www.pcworld.com/article/2142325/install-ubuntu-and-keep-windows.html

==============================

  1. http://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/ 



Boot through live-usb

in terminal run:

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair


Install Ubuntu on PC with Windows 10

  1. Create live usb with ubuntu setup

  2. free some space by shrinking one of your drives: This PC -> Manage -> Storage -> Disk management -> right click on partition -> shrink volume

  3. restart PC

  4. boot through USB

  5. install ubuntu



Search a string in terminal

1) search a string in all files/folders inside a folder; run following command (source):

>> grep -nr 'yourString*' .

## -n : Show relative line number in the file ## 'yourString*' : String for search, followed by a wildcard character ## -r : Recursively search subdirectories listed

           ## . : Directory for search (current directory)



Installation Videos: Virtual Box, ubuntu 18.04, and Foam-extend 4.0 

Install Foam-extend 4.0 in ubuntu 18.04

Installing from the source code:

Prepare the system:

>>  sudo apt-get update

>> sudo apt-get install git-core build-essential binutils-dev cmake flex bear \zlib1g-dev libncurses5-dev libreadline-dev \libxt-dev rpm mercurial graphviz python python-dev  python3 python3-dev gcc-5 g++-5 \gnuplot gnuplot-qt gnuplot-data

=================================================================================

Get the source code:

>> cd ~

>> mkdir foam

>> cd foam

>> git clone git://git.code.sf.net/p/foam-extend/foam-extend-4.0 foam-extend-4.0

=============================================================

>> cd ~/foam/foam-extend-4.0

>> echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh

>> echo "export WM_CC='gcc-5'"  >> etc/prefs.sh

>> echo "export WM_CXX='g++-5'"  >> etc/prefs.sh

>> source etc/bashrc

>> sed -i -e 's=rpmbuild --define=rpmbuild --define "_build_id_links none" --define=' ThirdParty/tools/makeThirdPartyFunctionsForRPM

>> sed -i -e 's/gcc/\$(WM_CC)/' wmake/rules/linux64Gcc/c

>> sed -i -e 's/g++/\$(WM_CXX)/' wmake/rules/linux64Gcc/c++

>> ./Allwmake.firstInstall

>> echo "alias fe40='source \$HOME/foam/foam-extend-4.0/etc/bashrc'" >> $HOME/.bashrc


Get the current version of swak4foam

>> cd ~/foam

>> hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam

>> cd openfoam-extend-swak4Foam

>> ./AllwmakeAll


Setup User Directory

>> mkdir -p $FOAM_RUN

****** Sometimes you will have to close the current session on terminal and open a new terminal to apply the changed settings in the environment



OpenFOAM resource

https://wiki.openfoam.com/Main_Page

https://wiki.openfoam.com/index.php?title=%223_weeks%22_series 

https://holzmann-cfd.com/community/training-videos/openfoam-programming/introduction-and-new-solver

https://wiki.openfoam.com/Programming

https://wiki.openfoam.com/Numerics

https://wiki.openfoam.com/Tips

https://wiki.openfoam.com/index.php?title=Tutorials

https://www.youtube.com/watch?v=L94iYGvZr9Q

https://www.youtube.com/watch?v=qUMPdkvKBS8

https://sourceforge.net/p/foam-extend/foam-extend-4.0/ci/master/tree/tutorials/viscoelastic/viscoelasticFluidFoam/

https://wiki.openfoam.com/Category:Programming

https://wiki.openfoam.com/Programming

https://wiki.openfoam.com/index.php?title=Category:C%2B%2B

https://wiki.openfoam.com/Category:Tips

https://wiki.openfoam.com/Literature

https://wiki.openfoam.com/Tips

https://wiki.openfoam.com/Numerics

https://wiki.openfoam.com/Basics_of_C%2B%2B_by_Hakan_Nilsson


Install porousMultiphaseFoam after Foam-extend 4.0 in ubuntu 18.04


got to /home/username/foam

paste porousMultiphaseFoam folder

open terminal and go to /home/username/foam/porousMultiphaseFoam/

run:

>> ./Allwclean

>> ./Allwmake 



Install GasHydrateLab Solvers

Finish installation and compilation steps of previous sections

got to /home/username/foam

paste solver+case

go to solver folder

open .dep file and replace ./../../ with /home/username/foam/porousMultiphaseFoam/

save .dep file

open Make folder

open options file and replace ./../../ with /home/username/foam/porousMultiphaseFoam/

save options file

open terminal

go to solver folder

>> wmake

now compilation should be successful

navigate to case folder

run:

>>  bash clean

>> bash run 



Install Adobe Reader in Ubuntu 18.04

Install pre-requisites

>> sudo apt install gdebi-core libxml2:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libatk-adaptor:i386

Download adobe acrobat reader setup

>> wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb

Install the adobe acrobat reader

>> sudo gdebi AdbeRdr9.5.5-1_i386linux_enu.deb

launch adobe acrobat reader from terminal

>> acroread

Install Tecplot360  in Ubuntu 18.04

  1. Download Tecplot setup from https://linux.cc.iitk.ac.in/lininfo/Techplot360.html (Only for IITK users)

  2. Untar the downloaded file

  3. Download tecplot.fnt file as well and place it inside the uncompressed folder

  4. Go inside the folder and open terminal, enter

  5. >> ./setuptec

  6. press ctrl+M to view the license agreement

  7. press spacebar to change the page, if agreed then enter

  8. >> accept

  9. >> enter the installation path /usr/local/softs/tecplot360 (you will be able to give this address as a root otherwise enter any other directory)

  10. It will ask to enter the license number: do not enter anything, just press enter

  11. Now it provide three options to choose from, choose 'skip license key installation on this machine'

  12. TLMHOST Variable Setup

In order for Tecplot 360 to contact the License Manager daemon, it looks for the TLMHOST environment variable. Set TLMHOST equal to @hostname, where hostname is the name or IP address of the host where the License Man­ager daemon is running.

TLMHOST must be set for all users of Tecplot 360, on any machine where the software will be executed. Set this environment variable in each user's .cshrc, .profile or .bash_profile file via one of the following commands:

For users running the Bourne, Korn or Bash shell, enter the fol­lowing line into your .profile file (Bourne or Korn) or .bash_profile file.
TLMHOST=@akash2.cc.iitk.ac.in ; export TLMHOST

TEC360HOME=/usr/local/softs/tecplot360 ; export TEC360HOME

For users running the C shell, enter the following line into your .cshrc file.
setenv TLMHOST @akash2.cc.iitk.ac.in

  1. sudo -H gedit ~/.profile

  2.  enter following in the bottom of the file

TLMHOST=@akash2.cc.iitk.ac.in ; export TLMHOST

TEC360HOME=/usr/local/softs/tecplot360 ; export TEC360HOME

  1. Enter following in the bottom of ~/.bashrc

    1. TLMHOST=@akash2.cc.iitk.ac.in ; export TLMHOST

    2. TEC360HOME=/usr/local/softs/tecplot360 ; export TEC360HOME

    3. export TEC_360_2006=/usr/local/tecplot

    4. export PATH=${PATH}:${TEC_360_2008}/bin

  2. IN SOME CASES FOLLOWING MAY BE REQUIRED

    1. sudo apt-get update

    2. wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb

    3. sudo dpkg -i libxp6_1.0.2-2_amd64.deb

    4. from: https://www.codersgeek.in/2020/05/how-to-install-libxpso6-in-linux.html

  3. Go to the downloaded (uncompressed) folder

  4. >> tecplot

  5. now tecplot will open


References:

http://www.newfreesoft.com/linux/tecplot_installation_under_linux_784/

https://linux.cc.iitk.ac.in/lininfo/Techplot360.html


Write cell centers in output files of Foam-Extend

add following in the createFields.H


/////////////////////////////////////////

volVectorField cellCenters

        (

            IOobject

            (

              "cellCenters",

                runTime.timeName(),

                mesh,

                IOobject::NO_READ,

                IOobject::AUTO_WRITE

            ),

            mesh.C()

        );


        cellCenters.write();

/////////////////////////////////////////

Fix the ssh conncection problem

See if OpenSSH is installed:

$ sudo apt list --installed | grep openssh-server

if after entering the above command no output is received then that mean OpenSSH is not installed

Run following command to install OpenSSH:

$ sudo apt install openssh-server

Again run the first command to check if it is installed properly

--------------

Check if OpenSSH is running:

$ sudo service ssh status

To start:

$ sudo service ssh start 

To restart:

$ sudo service ssh restart







Reading from a file

http://courses.washington.edu/css342/zander/Notes/eof.html

On unix/linux, every line in a file has an End-Of-Line (EOL) character and the EOF character is after the last line. On windows, each line has an EOL characters except the last line. So unix/linux file's last line is

      stuff, EOL, EOF

whereas windows file's last line, if the cursor is on the line, is

      stuff, EOF 

Mount a partition in Ubuntu

List all the partitions:

$ lsblk -o NAME,FSTYPE,LABEL,SIZE,MOUNTPOINT

will get something like this:

sda                          1.8T

├─sda1 vfat                  512M

├─sda2                         1K

├─sda5 ext4                683.6G /

├─sda6 ntfs                488.3G

├─sda7 ntfs     New Volume 678.7G

└─sda8 swap                   12G

sr0                         1024M


So we want to mount the sda6 and sda7

create a folder in /mnt/ to mount these partitions

sudo mkdir /mnt/folder1

sudo mkdir /mnt/folder2

Now mount the partition:

$ sudo mount -t auto -v /dev/sda6 /mnt/folder1

$ sudo mount -t auto -v /dev/sda7 /mnt/folder2


Run a script through Command Prompt in Windows 10 

open command prompt

run following command to run the tecplot macro:

start "" "H:\AUTOMATION\trial1.mcr"

Enable SSH in Windows10

run PowerShell as an Administrator 

----------------------------------------------------------------------------------------------------------------------------------

check if OpenSSH is installed or not

>> Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

-----------------------------------------------------------------------------------------------------------------------------------

Install:

# Install the OpenSSH Client

Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0


# Install the OpenSSH Server

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

-------------------------------------------------------------------------------------------------------------------------------------

Run the following commands to start the sshd service: 

# Start the sshd service

Start-Service sshd


# OPTIONAL but recommended:

Set-Service -Name sshd -StartupType 'Automatic'


# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the following to verify

if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {

    Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."

    New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22

} else {

    Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."

}

Python Resources

  • A summer bootcamp on scientific computing for beginners with Python and Pytorch organized by Pratyush Tiwary, University of Maryland: https://scotch.wangyq.net/

  • https://pythonnumericalmethods.berkeley.edu/notebooks/Index.html

  • Python Scripting: https://education.molssi.org/python_scripting_cms/

  • Data Analysis: https://education.molssi.org/python-data-analysis/

  • E-book: https://github.com/aibooks14/Python1/blob/main/Learning%20Python%20(%20PDFDrive%20).pdf



ML Resources

https://mayo-radiology-informatics-lab.github.io/MIDeL/chapters.html

https://jakevdp.github.io/PythonDataScienceHandbook/

https://docs.monai.io/en/stable/highlights.html

Course from Caltech: https://home.work.caltech.edu/telecourse.html

Mathematics for Machine Learning: https://mml-book.github.io/

Introduction to Modern Statistics: https://openintro-ims.netlify.app/

An Introduction to Statistical Learning : https://www.statlearning.com/

Dive into Deep Learning : https://d2l.ai/index.html

Forecasting - Principles and Practice: https://otexts.com/fpp3/




C++

C++ for Python programmers: https://runestone.academy/ns/books/published/cpp4python/index.html





Replace string from text file through bash/perl

sed -i -e 's/endTime        345600;/endTime        1.728e+07;/g' ~/foam/pawansut/timeVaryingGeomechanics_New/batch8/gs106/system/controlDict

or

sed -i -e 's/9.2e6/11.0e6/g' ~/foam/pawansut/timeVaryingGeomechanics_New/batch8/gs106/modifiedPressure/modifiedPressure.C






How to play YouTube in the background of Android Mobile

1) Install Firefox/Brave browser app. Won't work on Chrome or based browser
2) Launch the browser
3) Go to youtube.com
4) play the video
5) enable desktop site
6) minimize the browser
7) swipe down and play from the minimized player
8) now you can use other apps






Interesting Books

Elements of Game Theory by Ye. S. Venttsel: https://archive.org/details/ElementsOfGameTheorylittleMathematicsLibrary/page/n33/mode/2up?view=theater









Fluid Mechanics Resources

Boulder Summer School in Hydrodynamics across Scales : https://www.youtube.com/playlist?list=PL8mMEmoXNBfaFV2wA4lDD7j_f2l7BTYIV










Upcoming Events

Other Resources

Funding and Fellowships

Pawan Kumar Pandey
Google Sites
Report abuse
Google Sites
Report abuse