|
[Sponsors] |
May 15, 2014, 12:21 |
adaptive time step UDF
|
#1 |
New Member
Tiziano Ghisu
Join Date: May 2009
Posts: 1
Rep Power: 0 |
Hello everyone,
I wastrying to write a UDF defining an adaptive time step function for a time-dependent simulation ... but i encountered problems even before i arrived to the adaptive part, just by using the DEFINE_DELTAT UDF while i was doing this, I encountered a very strange problem. While the simulation is stable for a given time step without the UDF, as soon as i use the udf to set the time step, the simulation blows up, even if i use the same time-step i was using earlier. The UDF I am using is very simple /************************************************** ******************* UDF that changes the time step value for a time-dependent solution ************************************************** ********************/ #include "udf.h" DEFINE_DELTAT(mydeltat,d) { real dt=1.0e-4; return dt; } How is this possible? Any suggestions? Thanks Tiziano |
|
November 25, 2014, 17:58 |
|
#2 |
New Member
Mahdi Torabi Asr
Join Date: Dec 2013
Posts: 10
Rep Power: 13 |
Too late reply ;) but maybe works for others...
The problem is a result of using "Extrapolate Variables" option in calculation menu during adaptive time-step calculation (at least in my case). |
|
Tags |
define_deltat, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sudden jump in Courant number | NJG | OpenFOAM Running, Solving & CFD | 7 | May 15, 2014 14:52 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |