Nohup comsol batch -inputfile test1.mph -outputfile test1_out.mph -batchlog test1.log -np 30 & We create a file with the name “comsolscript.sh” with the following content 1 If we have many mph files to simulate, we can write a bash code to arrange our simulation works. In above example we use 30 cores (set with “-np 30”)to simulate our mph file. Nohup comsol batch -inputfile test.mph -outputfile test_out.mph -batchlog test.log -np 30 & To avoid confusion, I give a more specific example, If we want to simulate the file “test.mph”, then the command should be as follows 1 The form nohup & is used to execute the command in the background even if we logout from the server. Nohup comsol batch -inputfile -outputfile -batchlog -np &Ībove command shows the smallest example and the “” isn’t included in the actual terminal command. If you want to run COMSOL on server, you can use the command of the following form 1 These needs can all be satisfied only if you write proper bash code. We also need to know the simulation progress from a log file. We hope that we can run them with bash code in background and after we logout or exit the server the simulations will continue. This note is to show the way of using MATLAB, COMSOL,COMSOL Livelink With MATLAB on our server (ubuntu).
0 Comments
Leave a Reply. |