CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Rerun Case for a range of BCs

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2019, 10:56
Default Rerun Case for a range of BCs
  #1
New Member
 
Mark
Join Date: Oct 2018
Posts: 18
Rep Power: 7
Brandani is on a distinguished road
Hi there!
I am running reactingFOAM case and need to do the following:

I am interested in running the case at 50 different inlet velocities (everything else is exactly the same) - i.e. if it was done manually, I would create fifty case folders and change velocities manually in the 0 folder and run all those cases..

My question is - is there any way to automate this if I know all the 50 different velocities I am interested in (maybe utilise matrix input U = [ 1 1.1 1.2 ... ])

Thank you!
Brandani is offline   Reply With Quote

Old   March 13, 2019, 12:46
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
There might be a utility but...


I would create a shell script that does exactly what you say


Code:
#!
 for arg in "1" "1.1" "1.2"; do
     cp -r originalName newNamewith$arg

        blah blah blah
done
You can use sed - i banana to replace the line containing the velocity if the file format is fixed (and it probably is). A more high-level way is to use a changeDictionaryDict
BlnPhoenix likes this.
LuckyTran is online now   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
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 06:35
A question about a simple ceiling fan simulation (no inlet/outlet BCs) Tellur STAR-CCM+ 3 June 9, 2017 08:34
Fluent Radiation/porous media Schmitt pierre-Louis FLUENT 26 September 1, 2016 10:29
How to Initialise my LES case using my RANS case is there any utility for it ? Alhasan OpenFOAM Running, Solving & CFD 2 May 10, 2014 00:14
Numerical error or case error? Flow in a 3D pipe fsalvucci OpenFOAM 40 January 30, 2013 07:10


All times are GMT -4. The time now is 21:50.