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

Running CFD cases one after the other?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2021, 05:08
Default Running CFD cases one after the other?
  #1
New Member
 
Join Date: Jan 2021
Posts: 3
Rep Power: 5
MaCFD1 is on a distinguished road
Is there any way to automatically run another case after an initial case finishes solving? I need to simulate around 20 very similar cases that differ in the parameters of the linearSpring. It would save alot of time if I'm able to automatically start another case after one finishes. I'm using OpenFoam on WSL.
MaCFD1 is offline   Reply With Quote

Old   January 5, 2021, 05:43
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Allrun script.
dlahaye is offline   Reply With Quote

Old   January 5, 2021, 18:12
Default
  #3
New Member
 
Join Date: Jan 2021
Posts: 3
Rep Power: 5
MaCFD1 is on a distinguished road
The documentation is kind of lacking or maybe I don't know where to look. Could you perhaps elaborate on the Allrun script? Thanks
MaCFD1 is offline   Reply With Quote

Old   January 6, 2021, 17:08
Default
  #4
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
Say you have two different simple cases (case1 and case2).
You can run an Allrun script with
Code:
./Allrun
outside the two directories.

The Allrun script can be something like:

Code:
#!/bin/bash

cd case1
blockMesh
simpleFoam

cd ..
cd case2
blockMesh
simpleFoam
That's the general idea - of course you are suggested to modify an Allrun script from a tutorial in your OpenFOAM distribution.
petros 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
Running Multiple OpenFOAM Cases at Once on HPC papamilad Hardware 5 August 2, 2019 12:20
[General] How to compare 2 CFD cases in Paraview? leungjay ParaView 0 April 19, 2018 23:35
CFD Online Running on Backup Server pete Site News & Announcements 0 March 25, 2011 14:51
CFD for fans & blower housings David Carroll Main CFD Forum 8 August 24, 2000 17:25
Which is better to develop in-house CFD code or to buy a available CFD package. Tareq Al-shaalan Main CFD Forum 10 June 12, 1999 23:27


All times are GMT -4. The time now is 18:51.