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

Appling fixedGradient at some later time.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2020, 12:49
Default Appling fixedGradient at some later time.
  #1
New Member
 
Join Date: Nov 2020
Posts: 14
Rep Power: 5
Enternald is on a distinguished road
Hi all,

I am wondering if there is a way that I can apply fixedGradient (or something similar) at some later point in the simulation. For example, I want to run the simulation for a set amount of time (e.g. 50 seconds), then at that time activate the gradient. I am using chtMultiRegionFoam. Does anyone know of a way that I can do that?
Enternald is offline   Reply With Quote

Old   December 14, 2020, 14:16
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
1/ run case with settings (a) from t = 0 to t = t_{intermediate}

2/ change from settings (a) to setting (b) and set startTime in system/controlDict to latestTime

3/ run case with settings (b) from t = t_{intermediate} to t = t_{end}
dlahaye is offline   Reply With Quote

Old   December 15, 2020, 05:26
Default
  #3
New Member
 
Max
Join Date: Apr 2020
Location: Germany
Posts: 8
Rep Power: 5
CFD-HSNR is on a distinguished road
Quote:
Originally Posted by Enternald View Post
Hi all,

I am wondering if there is a way that I can apply fixedGradient (or something similar) at some later point in the simulation. For example, I want to run the simulation for a set amount of time (e.g. 50 seconds), then at that time activate the gradient. I am using chtMultiRegionFoam. Does anyone know of a way that I can do that?

Hello Enternald,

If you want to change your boundary conditions for your field sizes to be solved for particular parts of your mesh at certain points of the simulation you can also do this with the changeDictionaryDict.

To do this, simply stop the simulation via the controlDict at the desired point in time, enter the desired changes in the changeDictionaryDict and then run the application. Afterwards you can restart the simulation from this point with the changed boundary conditions.
CFD-HSNR is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, openfoam, time


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 22:26.