|
[Sponsors] |
December 30, 2020, 17:05 |
Issue with runTime.setDeltaT
|
#1 |
New Member
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 6 |
I have written my own setDeltaT.H as per my requirements. A part of it looks like this:
if (adjustTimeStep) { . . . . else if ((Pic_cur < Pic_min) && (Pic_stb == Pic_stb_max)) { runTime.setDeltaT(min(Ft*runTime.deltaTValue(), maxDeltaT)); Pic_stb = 0; } . . . Info << "deltaT = " << runTime.deltaTValue() << endl; } When I am executing the code, the "deltaT" is set to an erroneous value. Suppose the initial deltaT is 1000; Ft is 1.25 and maxDeltaT is 3600. Then the new deltaT should be set to 1250. Instead, is it being set to 200. Observation through multiple execution of the code shows the new deltaT is set to 1/5th of the old value everytime. I cannot figure out why is this happening. Can anyone point out where am I going wrong? |
|
Tags |
deltat, runtime |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue on zeroGradient BC for system rotation | magnushaese | OpenFOAM Running, Solving & CFD | 2 | January 28, 2022 14:43 |
rhoCentralFoam inviscid airfoil issue (Foam::error::printStack(Foam::Ostream&) at ??) | kmkb21 | OpenFOAM Running, Solving & CFD | 1 | March 1, 2018 02:07 |
Prism Layer - Core Mesh Boundary Issue | InfernoxCJC | STAR-CCM+ | 7 | November 21, 2017 16:46 |
foamToTecplot360 issue with multiregion solvers | manuc | OpenFOAM Post-Processing | 2 | November 21, 2016 14:51 |
Pressure boundary condition issue | Vijay | FLUENT | 0 | April 6, 2012 14:35 |