CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

How to run cases automatically?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Rostislav

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2006, 14:02
Default How to run cases automatically?
  #1
Wael
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
  Reply With Quote

Old   February 22, 2006, 00:17
Default Re: How to run cases automatically?
  #2
Manish
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

  Reply With Quote

Old   February 22, 2006, 02:59
Default Re: How to run cases automatically?
  #3
Wael
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
  Reply With Quote

Old   February 22, 2006, 05:46
Default Re: How to run cases automatically?
  #4
Manish
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).
  Reply With Quote

Old   February 22, 2006, 08:23
Default Re: How to run cases automatically?
  #5
carno
Guest
 
Posts: n/a
for windows *.bat
  Reply With Quote

Old   February 22, 2006, 09:27
Default Re: How to run cases automatically?
  #6
Wael
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
  Reply With Quote

Old   February 23, 2006, 07:09
Default Re: How to run cases automatically?
  #7
Rostislav
Guest
 
Posts: n/a
Use call:

call star -dp hostname,2 then cd.. then cd case2 call star -dp hostname,2

johnkh likes this.
  Reply With Quote

Old   February 24, 2006, 10:01
Default It is working well, Thanks a lot
  #8
Wael
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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:27.