CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Scheduling different cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2016, 21:20
Default Scheduling different cases
  #1
New Member
 
-
Join Date: Oct 2016
Posts: 15
Rep Power: 9
DancingButterfly is on a distinguished road
hello everybody

I have a question about scheduling. I'd like to solve different cases after each other, meaning that OpenFoam starts solving a new case as soon as the one before ended. From case to case inlet velocity and inlet pressure would vary.

I guess I can program it with the Allrun directory (I am using the interFoam solver (damBreak tutorial)). But I am not sure how. :-(

Has anyone already used the Allrun directory for that purpose? If yes, how did your code look like?

Thank you a lot for your help! :-)
DancingButterfly is offline   Reply With Quote

Old   December 7, 2016, 03:33
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Not sure I got your question right but what is wrong with simple (assuming your BS is Torque):

Code:
...
cd $PBS_O_WORKDIR
yourSolverName -case <case1 folder>
yourSolverName -case  <case2 folder>
...
yourSolverName -case <caseN folder>
...
If you utilise full paths to folders you can put this job-file anywhere, of you can have a folder with all cases like this:

Code:
simulations-folder/
  all-my-simulations.job
  case1/
  case2/
  case3/
  ...
  caseN/
you submit your job-file from simulations-folder folder and utilise relative paths for -case flags.
alexeym is offline   Reply With Quote

Old   December 7, 2016, 23:39
Default
  #3
New Member
 
-
Join Date: Oct 2016
Posts: 15
Rep Power: 9
DancingButterfly is on a distinguished road
Thank you very much for answering. This was exactly what I was looking for

I tried it and it worked properly! Thank you!!!!
DancingButterfly is offline   Reply With Quote

Reply


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
Is OpenFOAM tutorial cases valid? j-avdeev OpenFOAM Running, Solving & CFD 3 September 19, 2012 15:45
How to speed up the simulation of a large amount of similar steady state cases tss Main CFD Forum 4 November 5, 2010 14:36
CFD Validation Cases doug Main CFD Forum 4 January 11, 2010 19:28
Directory constructions of complex cases 7islands OpenFOAM 2 August 26, 2008 05:25
Standard CFD test cases? Damon Qualski Main CFD Forum 1 April 10, 2003 14:10


All times are GMT -4. The time now is 08:28.