|
[Sponsors] |
February 21, 2006, 14:02 |
How to run cases automatically?
|
#1 |
Guest
Posts: n/a
|
Hi. I have different cases and want to run them one after one (night time) automatically. Your help will be very much appreciated. Wael
|
|
February 22, 2006, 00:17 |
Re: How to run cases automatically?
|
#2 |
Guest
Posts: n/a
|
Hi
Use the following step to do that: 1.Create a folder say "batchRun". 2.Pre process all the model which has to be run in batch mode. 3.Save the first model in batchRun folder, and for other models creat separate folders for each run, save the models in these folders (one model in each folder). Say folder names are "case2", "case3", etc. 4.Save the *.mdl, *.geom., *.prob, and, parm.inc, in respective folders. 5.Now create a text file in batchRun folder with following text: star â€"dp hostname, 2 (help: star is for star solver, -dp is double persion, hostname is computer host name, e.g. localhost etc., 2 is for number of processors, this will run the first case, which is there in batchRun folder) cd ./case2 (help: to change the directory to case2 directory) star â€"dp hostname, 2 (help: to run the case in case2 directory) cd ../case3 (help: to change the directory to case3) star â€"dp hostname, 2 (help: to run the case in case3 directory) 6.Save the text file as "batch.sh". 7.In terminal go to batchRun directory and issue the command "source /opt/star/v332/etc/setstar" 8.To give permission to the batch.sh file, give the command chmod 777 batch.sh 9.Now to run the analysis issue the command "./batch.sh" this will run the cases one after the other. Results will be saved in the respective folders |
|
February 22, 2006, 02:59 |
Re: How to run cases automatically?
|
#3 |
Guest
Posts: n/a
|
Hi. Thank you very much Mr. Manish for your detailed reply. I will try the steps. However, I am working on WinXP computer. Are the steps the same?. My best wishes and regards. Wael
|
|
February 22, 2006, 05:46 |
Re: How to run cases automatically?
|
#4 |
Guest
Posts: n/a
|
Hi I use Linux RH Ent V4. So, commands are for Linux. You can change according to windowsXP. Like for "batch.sh" (shell script in Linux), you may have to use similar version of file in Windows (may be *.dll or *.inf).
|
|
February 22, 2006, 08:23 |
Re: How to run cases automatically?
|
#5 |
Guest
Posts: n/a
|
for windows *.bat
|
|
February 22, 2006, 09:27 |
Re: How to run cases automatically?
|
#6 |
Guest
Posts: n/a
|
Thanks alot Mr Manish and Mr Carno. I tried the *.bat ( star -dp then cd.. then cd case2). It is working for the 1st case only and stop. Many trials but faild. Please give more a hand and my best regards to all of you. Wael
|
|
February 23, 2006, 07:09 |
Re: How to run cases automatically?
|
#7 |
Guest
Posts: n/a
|
Use call:
call star -dp hostname,2 then cd.. then cd case2 call star -dp hostname,2 |
|
February 24, 2006, 10:01 |
It is working well, Thanks a lot
|
#8 |
Guest
Posts: n/a
|
Thank you very much Mr. Rostislav, The batch file is working after your modifications. Also thanks to all whom gave help. My best regards. Wael
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to perform TIME_AVERAGE automatically | Saim | FLUENT | 0 | January 22, 2007 10:43 |
Merge Nodes automatically | Timmy | CFX | 1 | December 6, 2006 09:51 |
Can CFX Automatically generate hybrid meshes? | JJ | CFX | 0 | August 28, 2003 22:18 |
Automatically saving a line graph | Astrid | CFX | 1 | April 28, 2003 07:48 |