|
[Sponsors] |
To continue from latestTime of a previous serial run in parallel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 26, 2018, 10:00 |
To continue from latestTime of a previous serial run in parallel
|
#1 |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
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? |
|
July 26, 2018, 13:02 |
|
#2 |
Senior Member
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 13 |
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 |
|
July 26, 2018, 15:01 |
|
#3 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Salome] Salome import "Cannot find file "points" in directory..." | mismichael | OpenFOAM Meshing & Mesh Conversion | 6 | June 24, 2024 04:17 |
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 |