CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Is adjustableRunTime link to the Time shown in the log? (http://www.cfd-online.com/Forums/openfoam-solving/103997-adjustableruntime-link-time-shown-log.html)

jam July 1, 2012 07:41

Is adjustableRunTime link to the Time shown in the log?
 
Hi,

In the log, there are few places where the time is shown :

Code:

ExecutionTime = 0.92 s  ClockTime = 1 s

Courant Number mean: 1.2100784e-05 max: 0.009442947
deltaT = 3.5831613e-06
Time = 1.5499037e-05

In the manual
Quote:

- adjustableRunTime Writes data every writeInterval seconds of simulated time,
adjusting the time steps to coincide with the writeInterval if
necessary used in cases with automatic time step adjustment.
Is "seconds of simulated time" referring to the Time value in the log?
If so , this is not very useful because my simulations never reached the second. Mostly a few tenths of second. I would like to print every few microseconds in my case while using adjustableTimeStep.

I tried cpuTime and clockTime and is shows what is says,
runTime and adjustableRunTime do not.

Is this normal behaviour?

alberto July 2, 2012 02:41

Quote:

Originally Posted by jam (Post 369096)
Hi,

In the log, there are few places where the time is shown :

Code:

ExecutionTime = 0.92 s  ClockTime = 1 s

Courant Number mean: 1.2100784e-05 max: 0.009442947
deltaT = 3.5831613e-06
Time = 1.5499037e-05

In the manual
Is "seconds of simulated time" referring to the Time value in the log?
If so , this is not very useful because my simulations never reached the second. Mostly a few tenths of second. I would like to print every few microseconds in my case while using adjustableTimeStep.

The adjustableRunTime option is used with unsteady simulations, when you have an adaptive time-stepping. It saves the simulation result every "writeInterval", making sure that the exact interval between one set of saved data and the following is enforced.

Example: Let's assume you set
Code:

writeControl    adjustableRunTime;

writeInterval  0.01;

in your controlDict. OpenFOAM will save data every 0.01s. If you want to save every microsecond of flow time (What is indicated as "Time" in the logs), you should set:

Code:

writeInterval 1.0e-6;
Best,

jam July 2, 2012 07:31

Thank you,
I should have read the manual more carefully. It is in the book.


All times are GMT -4. The time now is 11:41.