CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Operations with time steps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2012, 06:11
Default Operations with time steps
  #1
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Greetings!

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

Yours,
Martin
latvietis is offline   Reply With Quote

Reply

Tags
timestep


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 09:08
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 14: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 02:13.