|
[Sponsors] |
May 28, 2020, 03:24 |
Reducing timestep criterion
|
#1 |
New Member
Pablo
Join Date: Feb 2020
Location: Santiago de Chile
Posts: 8
Rep Power: 6 |
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. |
|
May 28, 2020, 18:26 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 29, 2020, 00:07 |
|
#3 |
New Member
Pablo
Join Date: Feb 2020
Location: Santiago de Chile
Posts: 8
Rep Power: 6 |
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). |
|
May 29, 2020, 00:26 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
so, solved?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
|
|
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 |