Skip to content

Time-Dependent Solution and Energy Optimization for the 2D Kuramoto-Sivashinsky Equation via Pseudospectral Method on a Rectangular Domain

License

Notifications You must be signed in to change notification settings

zigicjovan/2DKS_Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

206 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animations of output with various parameter settings:

https://www.youtube.com/playlist?list=PLwsovxEJkjzJrUHeRQMrPbvsQRfkz0e-W

Main function to run branch of tests for various K, ell, T values:

main_2DKS(dtc,Nc,Kstart,Kend,Knum,ellstart,ellend,ellgap,Tstart,Tend,Tnum,runc,continuationc,tolc,optTc)

To run quick test on Linux terminal with disabled respawning (assuming 'output' folder exists):

nohup matlab -nodisplay -nodesktop -nosplash -r "main_2DKS(1e-3,32,0,0,1,1.02,1.02,.02,1.0,1.0,1,'optimize','IC',1e-6,0.0); exit" > ./output/maxTK0L102.log 2>&1 < /dev/null & nohup matlab -nodisplay -nodesktop -nosplash -r "main_2DKS(1e-3,32,0,0,1,1.02,1.02,.02,2.0,2.0,1,'plotOptIC','IC',1e-6,1.0); exit" > ./output/longTK0L102.log 2>&1 < /dev/null &

To run on HPC cluster:

sbatch run_2DKS.sh

To get PID from queue and check status, or to cancel:

sq seff PID scancel PID

To fetch new code update from Github (but leave all untracked files):

git fetch origin git reset --hard origin/main

Check storage and priority:

du -h -d 3 /user/foldername/ | sort -h diskusage_report sshare -l -A def-prof1_cpu -u prof1,grad2,postdoc3

Set up tests:

python3 param_driver.py bash run_array.sh --dry-run bash run_array.sh

Monitor output file in terminal:

tail -f ./output/output1.log

List all running process PIDs:

ps aux | grep matlab | grep -v grep

Kill all active processes:

pkill -f "main_2DKS"

If necessary, force kill respawning active process:

Step 1 - check current PID parent process

pstree -ps PID

Step 2 - identify:

systemd(...) └─ systemd(...) └─ MATLAB(parentPID)

Step 3 - kill parent process:

kill -9 parentPID

Push update to github:

./gitpush.sh . "" "COMMIT MESSAGE"

About

Time-Dependent Solution and Energy Optimization for the 2D Kuramoto-Sivashinsky Equation via Pseudospectral Method on a Rectangular Domain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published