|
[Sponsors] |
Running in two time periods with parallel processing |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 4, 2023, 16:36 |
Running in two time periods with parallel processing
|
#1 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Hi all,
I,m using parallel processing for my simulation, and I have accomplished it successfully for 200 seconds. However, I wanna proceed it for 600 seconds, but I don't know whether it is possible or not? By the way, I know about the role of latestTime in controlDict. I would appreciate your help. |
|
October 5, 2023, 04:19 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello Saeed,
Change the endTime in your controlDict from 200 to 600 and make sure the startFrom parameter is set to latestTime. Then you can run the solver with the same command you used the first time and it should proceed to continue the simulation from 200 to 600s. Cheers, Yann |
|
October 5, 2023, 04:48 |
|
#3 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Dear Yann thank you for the reply.
I have tested the mentioned procedures for the series running, and it works very well. But hear I have done these steps for parallel processing: Code:
decomposePar #------------------------------------------------------------------------------ mpirun -np 4 pimpleFoam -parallel #------------------------------------------------------------------------------ reconstructParMesh (for AMR) reconstructPar Anyway I applied your mentioned solution in controlDict and then mpirun -np 4 pimpleFoam -parallel, But it does not work! |
|
October 5, 2023, 05:01 |
|
#4 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
OpenFOAM has a very basic way to deal with serial / parallel operations: if you run serial commands, it will work with data written at the case root. If you run parallel commands, it will work with data written in the processor directories.
When running reconstructPar, you reconstructed data from the processor directories, but processor directories are not deleted. Once it is done, your data exist both in processors directories and in the time directories at the root of your case. You can resume the simulation either in serial or parallel. Now, what do you mean by Quote:
|
||
October 6, 2023, 10:25 |
|
#5 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Dear Yann, I got my answers, you were right.
Thank you for your time. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OF 2.0.1 parallel running problems | moser_r | OpenFOAM Running, Solving & CFD | 9 | July 27, 2022 04:15 |
running mapFields in parallel | mkhm | OpenFOAM Pre-Processing | 10 | September 16, 2021 14:12 |
[snappyHexMesh] Problem with boundaries with sHM in parallel running | Loekatoni | OpenFOAM Meshing & Mesh Conversion | 0 | January 24, 2019 08:56 |
problem for parallel processing | minaret | OpenFOAM Running, Solving & CFD | 14 | January 20, 2015 00:41 |
Running CFX parallel distributed Under linux system with loadleveler queuing system | ahmadbakri | CFX | 1 | December 21, 2014 05:19 |