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

Change BCs and restart simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2017, 11:49
Default Change BCs and restart simulation
  #1
New Member
 
Enrico Bezzi
Join Date: Aug 2011
Posts: 9
Rep Power: 15
be89 is on a distinguished road
Hello,

I'm trying to simulate a case where the outlet is closed until a certain time, then opens out.

So I ran the first part of the simulation treating the outlet patch as a wall, but now I don't know the way to change BCs (manually or not, I don't care) and restart from there.

Any suggestions?


Thank you
be89 is offline   Reply With Quote

Old   February 28, 2017, 13:02
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
Just thinking along with you:

Manually:
You'd have to set "startFrom latestTime;" in controlDict. Then, after stopping the case, you can change the BC in the latest time directory manually to whatever you want it to become. Then restart the case.
Evidently, this process may be automated using (shell) scripts.

Being a 'lil more clever:
Typically things like this may be achieved with groovyBC.
A wall is just a fixedValue (0 0 0) for U and zeroGradient for pressure.
An outlet depends on what you want the outlet to behave like... It could be zeroGradient for velocity and fixed value for pressure, for instance.
Afaik, groovyBC cannot switch between different BC (fixedValue -> zeroGradient), so I reckon it cannot be used for your purpose.
Which takes me back to the manual method (automated with a script). I don't really see an alternative at this point in time.

Note of caution:
If you start of without an outlet, make sure that you do not have an inlet either. Otherwise your case is ill-posed.
floquation 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
Spatially variable dirichlet bcs abonfi SU2 0 March 8, 2016 06:15
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 09:07
Propeller simulation leon_jar CFX 1 August 18, 2014 19:32
NaN when restart parallel radiatn STAR-CD 0 November 10, 2009 06:16


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