Hi In OpenFoam is it possible
In OpenFoam is it possible to know the old time step value of any variable. I know it is pobbile to write the value in the disk in each time-step. My question is, how to handle with those?
You can store old time field u
You can store old time field using:
and recover it using:
Look here for further information:
Thanks Alberto. The fieldName
The fieldName.oldTime() returns only the value of previous time step. Is it possible to return any specific old time step value like time step 5, 11 .. etc.
Why do you need them? The o
Why do you need them?
The old time fields are removed from memory and lost if not written to disk.
If you need them the only way I could think to, is to store them on the disk and to recover them from there
Do you know when the current density (from the current time step) is stored using the "storeOldTime" function in fireFOAM.C from OF2.1.x. The codes are given below. This action means that the density from the previous time step is removed from the memory while the Field which is used for the current step is vacated for the next time step. Thank you.
Info<< "Time = " << runTime.timeName() << nl << endl;
// --- PIMPLE loop
// --- Pressure corrector loop
rho = thermo.rho();
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
Info<< "End" << endl;
|All times are GMT -4. The time now is 22:55.|