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

Continue from previous log file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2010, 06:09
Default Continue from previous log file
  #1
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17
bernarde is on a distinguished road
Hi all

I am look for a way to continue from my previous log file. Suppose I run a simulation for 2000 iteratins, using for example simpleFoam > log.

The simulation completes, and now I want to run for an additional 1000 iterations. Is there a way I can add these iterations to the first log file, or do I have to create an additional log file? If I run simpleFoam > log again, it overwrites the original log file, and the new one is only from iteration 2000 to 3000. I can do simpleFoam > log2, but then I have two logfiles, and I have to combine them to view residuals etc.

Is there a command to have the original log file appended with the new run data?

Regards
bernarde is offline   Reply With Quote

Old   September 21, 2010, 06:19
Default
  #2
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Use:

>>

instead of

>

Test it though to be sure...
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   September 21, 2010, 09:06
Default
  #3
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17
bernarde is on a distinguished road
Thanks Laurence, that worked perfectly.
bernarde is offline   Reply With Quote

Old   March 17, 2020, 07:20
Default
  #4
New Member
 
pranay
Join Date: Mar 2020
Posts: 7
Rep Power: 6
pranay347 is on a distinguished road
hi i tried that but it just adding the timesteps to the same file but its not staring from where it stopped, i mean it just starting from begining timestep by adding to the same file where it stopped. is there a way to start simulations from where it stopped?? i mean if the simulations stoped at 0.0106 deltaT but begin deltaT is 0.0002024, i want start simulation from deltaT =0.0106 not from 0.0002024?? can you tell me how to do that..Thanks in advance..
pranay347 is offline   Reply With Quote

Old   March 17, 2020, 09:49
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Hi Pranay,

You just have to adjust the startFrom parameter in your controlDict file to latestTime.

Have a look at the documentation : https://cfd.direct/openfoam/user-guide/v7-controlDict/

Quote:
startFrom Controls the start time of the simulation.
  • firstTime: Earliest time step from the set of time directories.
  • startTime: Time specified by the startTime keyword entry.
  • latestTime: Most recent time step from the set of time directories.

Cheers,
Yann
Yann is offline   Reply With Quote

Reply


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
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
EULER-Forward-Method freak Main CFD Forum 4 June 12, 2001 10:19


All times are GMT -4. The time now is 04:52.