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

Time step calculation modification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2016, 11:01
Default Time step calculation modification
  #1
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10
manuc is on a distinguished road
Hello
I have a situation such that there are 2 time scales (a,b) available other than the one based on CFL condition .

I want to do time-stepping based on

delta_t=min(a,b, t_based_on_Co).
------------------------------------------------------------------------
(If a, b are constants I could do it by editing setDeltaT.H as


runTime.setDeltaT
(
min
(
deltaTFact*runTime.deltaTValue(),
maxDeltaT,
a,
b
)
);
---------------------------------------------------------------------------
But what if I have dynamically calculated a and b.
Could someone suggest me how I could do this
__________________
Regards
Manu
manuc is offline   Reply With Quote

Old   November 28, 2016, 17:01
Default
  #2
New Member
 
xirtam's Avatar
 
Fábio
Join Date: Nov 2016
Posts: 19
Rep Power: 9
xirtam is on a distinguished road
I make the option directly in the solver, and compile with wmake again.
xirtam 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
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
time step directories naming issue Andrea_85 OpenFOAM 3 April 3, 2014 08:38
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35


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