CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Operations with time steps (

latvietis December 3, 2012 07:11

Operations with time steps

Did my search firstly in mother google with "operations with timestep openfoam" and found nothing of interest.

I have my case file with "0", "constant", "system" folders. So I run my calculations and then get new time folders, lets say "1", "2" and "3". Inside them I have my vector and scalar field files.

Question is how can I compare these field values between different time steps? For example, volVectorField A in time folders "1" and "2". I want a loop where solving is done when two successive A solutions agree within some tolerance. So there is comparison done between A.timestep1 and A.timestep2. How this is written in OpenFoam? I know there is something like A.oldTime() which uses old time step values. I want this process to be iterative - something like A.time(i+1)-A.time(i).


All times are GMT -4. The time now is 22:14.