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

deltaT does not change with pimpleDyMFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2016, 03:19
Question deltaT does not change with pimpleDyMFoam
  #1
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 109
Rep Power: 17
rcastilla is on a distinguished road
Hi,

I am running pimpleDyMFoam with an ACMI interface with this controDict file:

Quote:
application pimpleDyMFoam;

startFrom latestTime;

startTime 0;

//stopAt writeNow;
stopAt endTime;

endTime 0.012;

deltaT 1e-5;

writeControl adjustableRunTime;
//writeControl timeStep;

writeInterval 1e-5;
//writeInterval 1;

purgeWrite 0;

writeFormat ascii;

writePrecision 7;

writeCompression compressed;

timeFormat general;

timePrecision 8;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 4;

maxDeltaT 1e-5;
But the simulation is running with a constant deltaT of 2e-6 and the courant number keeps below 0.25. Probably it is an stupid stuff, but I cannot find why the solver limits the deltaT.

With best regards

Robert
rcastilla is offline   Reply With Quote

Old   June 8, 2016, 05:41
Smile
  #2
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi Robert,

I think you must add #include"readTimeControls.H" and #include"setDeltaT.H"

below time loop in pimpleDymFoam.C.
rapierrz is offline   Reply With Quote

Old   June 8, 2016, 06:10
Default
  #3
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 109
Rep Power: 17
rcastilla is on a distinguished road
I, Hesam,

Thanks for your reply. Yes, I though also so. But they are actually included in the solver:

Quote:
while (runTime.run())
{
#include "readControls.H"
#include "CourantNo.H"

#include "setDeltaT.H"

runTime++;

Info<< "Time = " << runTime.timeName() << nl << endl;

...
readControls.H includes the readTimeControls.H

Robert
rcastilla is offline   Reply With Quote

Old   June 8, 2016, 06:50
Default
  #4
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 109
Rep Power: 17
rcastilla is on a distinguished road
Hi,

some news: I have disabled the adjustTimeStep, with constant deltaT (although it ignored this deltaT and made the simulation with the same as before, 2e-6), and, then after some time steps, I enabled again the adjustTimeStep and, surprise! it worked! It is a mistery for me...

Robert
rcastilla 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
Thermal phase change model Piti CFX 1 January 14, 2021 10:03
Help with writing a macro/UDF_file/script to change BC at regular time step intervals Codophobia Fluent Multiphase 0 April 24, 2014 10:07
Radiation interface hinca CFX 15 January 26, 2014 17:11
Change deltaT using codeStream whatsoever OpenFOAM Running, Solving & CFD 1 April 30, 2013 02:53
How to change molecular weight of a species in pdf-mixture Jenny_W FLUENT 0 November 3, 2012 16:49


All times are GMT -4. The time now is 07:31.