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

Issue with runTime.setDeltaT

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2020, 16:05
Default Issue with runTime.setDeltaT
  #1
New Member
 
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 5
saumavadey is on a distinguished road
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?
saumavadey is offline   Reply With Quote

Reply

Tags
deltat, runtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Issue on zeroGradient BC for system rotation magnushaese OpenFOAM Running, Solving & CFD 2 January 28, 2022 13:43
rhoCentralFoam inviscid airfoil issue (Foam::error::printStack(Foam::Ostream&) at ??) kmkb21 OpenFOAM Running, Solving & CFD 1 March 1, 2018 01:07
Prism Layer - Core Mesh Boundary Issue InfernoxCJC STAR-CCM+ 7 November 21, 2017 15:46
foamToTecplot360 issue with multiregion solvers manuc OpenFOAM Post-Processing 2 November 21, 2016 13:51
Pressure boundary condition issue Vijay FLUENT 0 April 6, 2012 13:35


All times are GMT -4. The time now is 04:56.