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

Only last timestep data is written, despite controlDict settings

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

Like Tree1Likes
  • 1 Post By alok

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2021, 10:47
Default Only last timestep data is written, despite controlDict settings
  #1
New Member
 
Alok
Join Date: Oct 2021
Posts: 2
Rep Power: 0
alok is on a distinguished road
Hi all,

I'm basing my simulation on the motorBike tutorial. My `controlDict` looks like this:

Code:
application     simpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         100;

deltaT          1;

writeControl    timeStep;

writeInterval   10;

purgeWrite      0;

writeFormat     binary;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable false;

functions
{}
As far as I understand the `writeControl` settings, this should write out every tenth time step, i.e. 0, 10, 20, ..., 100. However, only the last time step is written to disk, just 100.

I've tried changing the `writeControl` setting to `runTime`, `adjustableRunTime`, modified the start and end times, but with no luck. I saw in another old post that included functions may be the issue, so I took them out (as you can see above), but that also didn't change anything.

I'm a beginner to OpenFOAM, so I feel like I'm making a simple mistake. Any advice on what to do?

I'm running v2012 on Ubuntu 20.04.
alok is offline   Reply With Quote

Old   October 7, 2021, 11:07
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,298
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Hi Alok,

Where are you looking for your data? At the root of your case or in the processors directories?

The motorbike tutorial runs in parallel which means the data is distributed in the processor* directories. This is where the data is saved depending on your writeControl.

After the run, reconstructPar allows to reconstruct the data at the root of your case (one directory for each time step). In the motorbike tutorial, reconstructPar is used with the "-latestTime" option so it reconstructs only the last time step of the simulation.

Cheers,
Yann
Yann is offline   Reply With Quote

Old   October 7, 2021, 12:45
Talking
  #3
New Member
 
Alok
Join Date: Oct 2021
Posts: 2
Rep Power: 0
alok is on a distinguished road
Ah perfect!

Re-running `reconstructPar` without the `-latestTime` flag did the trick. Thank you!
Yann likes this.
alok is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a simple OpenFOAM cluster? TommiPLaiho OpenFOAM Installation 3 October 27, 2013 15:15
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
No data is written into UDM ivanbuz Fluent UDF and Scheme Programming 1 August 13, 2009 18:49
ParaFoam : Written data doesnt have Full Regions Velan Main CFD Forum 0 January 12, 2009 03:55
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


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