Thesis writing:
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>
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.
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.
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.
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'
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
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
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
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.
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
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
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
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
Following links may be of some help:
==============================
==============================
==============================
==============================
==============================
==============================
==============================
==============================
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
Following links may be of some help:
==============================
==============================
==============================
==============================
==============================
==============================
==============================
==============================
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
Create live usb with ubuntu setup
free some space by shrinking one of your drives: This PC -> Manage -> Storage -> Disk management -> right click on partition -> shrink volume
restart PC
boot through USB
install ubuntu
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)
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
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://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
got to /home/username/foam
paste porousMultiphaseFoam folder
open terminal and go to /home/username/foam/porousMultiphaseFoam/
run:
>> ./Allwclean
>> ./Allwmake
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 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
Download Tecplot setup from https://linux.cc.iitk.ac.in/lininfo/Techplot360.html (Only for IITK users)
Untar the downloaded file
Download tecplot.fnt file as well and place it inside the uncompressed folder
Go inside the folder and open terminal, enter
>> ./setuptec
press ctrl+M to view the license agreement
press spacebar to change the page, if agreed then enter
>> accept
>> enter the installation path /usr/local/softs/tecplot360 (you will be able to give this address as a root otherwise enter any other directory)
It will ask to enter the license number: do not enter anything, just press enter
Now it provide three options to choose from, choose 'skip license key installation on this machine'
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 Manager 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 following 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
sudo -H gedit ~/.profile
enter following in the bottom of the file
TLMHOST=@akash2.cc.iitk.ac.in ; export TLMHOST
TEC360HOME=/usr/local/softs/tecplot360 ; export TEC360HOME
Enter following in the bottom of ~/.bashrc
TLMHOST=@akash2.cc.iitk.ac.in ; export TLMHOST
TEC360HOME=/usr/local/softs/tecplot360 ; export TEC360HOME
export TEC_360_2006=/usr/local/tecplot
export PATH=${PATH}:${TEC_360_2008}/bin
IN SOME CASES FOLLOWING MAY BE REQUIRED
sudo apt-get update
wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
sudo dpkg -i libxp6_1.0.2-2_amd64.deb
from: https://www.codersgeek.in/2020/05/how-to-install-libxpso6-in-linux.html
Go to the downloaded (uncompressed) folder
>> tecplot
now tecplot will open
References:
http://www.newfreesoft.com/linux/tecplot_installation_under_linux_784/
https://linux.cc.iitk.ac.in/lininfo/Techplot360.html
add following in the createFields.H
/////////////////////////////////////////
volVectorField cellCenters
(
IOobject
(
"cellCenters",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh.C()
);
cellCenters.write();
/////////////////////////////////////////
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
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
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
open command prompt
run following command to run the tecplot macro:
start "" "H:\AUTOMATION\trial1.mcr"
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."
}
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
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/
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
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
Elements of Game Theory by Ye. S. Venttsel: https://archive.org/details/ElementsOfGameTheorylittleMathematicsLibrary/page/n33/mode/2up?view=theater
Boulder Summer School in Hydrodynamics across Scales : https://www.youtube.com/playlist?list=PL8mMEmoXNBfaFV2wA4lDD7j_f2l7BTYIV