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

To continue from latestTime of a previous serial run in parallel

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2018, 10:00
Default To continue from latestTime of a previous serial run in parallel
  #1
New Member
 
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 11
redbullah is on a distinguished road
When one runs a serial simulation he only gets temporal directories. But parallel run generates processor directories and reconstructs them into individual temporal directories.

My question is; say, after running a single processor simulation up to t=100 (or if I delete processor directories after a parallel run followed by a reconstruction and only temporal directories are left), is it possible to deconstruct those temporal directories into processors to continue from t=100 with a parallel run?
redbullah is offline   Reply With Quote

Old   July 26, 2018, 13:02
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
A clean approach would be to create a copy of the case with addition of a decomeParDict and mapFieldsDict files. Then use the mapFields utility to map the fields as initial condition for the original case. Here's how I usually do this:
Code:
latest=$(foamListTimes -latestTime -case relative/path/to/original/case)
mapFields -sourceTime $latest -consistent relative/path/to/original/case
Taataa is offline   Reply With Quote

Old   July 26, 2018, 15:01
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Have you tried running decomposePar after the serial run in the same case directory? (perhaps you need to use the option -latestTimestep or -lastestTime). This should create the processor directories with the 100 s timestep split up.
jherb 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
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 5 June 22, 2019 03:56
MPI error in parallel application usv001 OpenFOAM Programming & Development 2 September 14, 2017 12:30
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 16:25
The results difference between parallel and serial run. Hkp OpenFOAM Running, Solving & CFD 2 April 17, 2014 03:26


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