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

How can I get the field-value at previous two time-steps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2015, 19:13
Default How can I get the field-value at previous two time-steps
  #1
New Member
 
lqiao19
Join Date: Oct 2012
Posts: 1
Rep Power: 0
duanjianxian is on a distinguished road
Hi, formers!

I want to predict the value of a scalar-field at the runTime using its at the previous two time-steps. In a mathematical expression, it can be expressed like F(n+1)=2*F(n)-F(n-1).
In openFOAM, I know that creatField can read and write the values in the running. So, the previous two time-steps maybe can read by IOobject from time-named folder. But, I don't want to write the field at all steps.
Are there some skills to realize this but no writing in every step?

Thanks for your attention!

Best wishes for you!
duanjianxian is offline   Reply With Quote

Reply

Tags
ioobject, openfoam, read fields, solver


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
How to export time series of variables for one point? mary mor OpenFOAM Post-Processing 8 July 19, 2017 10:54
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 08:07
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35


All times are GMT -4. The time now is 15:50.