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

Reducing timestep criterion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2020, 03:24
Default Reducing timestep criterion
  #1
New Member
 
Pablo
Join Date: Feb 2020
Location: Santiago de Chile
Posts: 8
Rep Power: 6
Pablo2120 is on a distinguished road
Dear Foamers;


In OpenFOAM, what is the criterion used by OpenFOAM (v7 in my case) to reduce the timestep?.



I'm running a case with a fixed timestep of 0.0005. When I let OpenFOAM adjust it, it reduces the timestep to 0.0001, and I don't know why, because with the timestep of 0.0005 I'm obtaining the same results with the same quantity of iterations.


Regards,


Pablo.
Pablo2120 is offline   Reply With Quote

Old   May 28, 2020, 18:26
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

- Could you please share your `controlDict`?
- OF can adjust the simulation time-step based on many criteria, one of the most common is Courant number via `maxCo` entry within `controlDict`.
- If you would like to ensure the simulation time-step is constant, you can impose it by placing the `adjustableTimeStep false;` entry into `controlDict`.

Hope this helps a bit.
HPE is offline   Reply With Quote

Old   May 29, 2020, 00:07
Default
  #3
New Member
 
Pablo
Join Date: Feb 2020
Location: Santiago de Chile
Posts: 8
Rep Power: 6
Pablo2120 is on a distinguished road
Sure, here is my controlDict.

Code:
application     interFoam;

startFrom       startTime;

startTime       5.25;

stopAt          endTime;

endTime         15;

deltaT          0.0005;

writeControl    adjustableRunTime;

writeInterval   0.05;

purgeWrite      0;

writeFormat     binary;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  no;//yes;

maxCo           1.0;

maxAlphaCo      1;

maxDeltaT       1;
//functions
//{
//    #includeFunc Q
//    #include "surfaces"
//    #include "forces"
//}

// ************************************************************************* //

I was using maxCo=0.98 before. Then I changed it to 1.0 AND (at the same time) I changed adjustTimeStep to "no". So I didn't noticed the effect of courant number change (now the simulation is running).
Pablo2120 is offline   Reply With Quote

Old   May 29, 2020, 00:26
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
so, solved?
HPE 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
Convergence-behaviour when changing physical timestep in steady-state simulation stud-many ANSYS 0 October 28, 2019 11:30
simpleFoam : how to optimize timestep and assess convergence ? Talder OpenFOAM Running, Solving & CFD 2 February 15, 2019 08:48
error with smaller timestep ? Thomas MADELEINE FLUENT 0 August 8, 2016 14:02
Asymptotic stopping criterion is not working rob50904 STAR-CCM+ 2 January 28, 2013 09:25
Convergence criterion Moose Main CFD Forum 5 June 9, 2005 21:39


All times are GMT -4. The time now is 01:16.