CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Operations with time steps

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 3, 2012, 07:11
Default Operations with time steps
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 8
latvietis is on a distinguished road

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).

latvietis is offline   Reply With Quote



Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 13 February 20, 2018 04:17
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
UDF for time steps David FLUENT 0 August 14, 2007 11:54
Time steps - Large Eddy - LES Gernot FLUENT 0 September 14, 2005 11:54

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