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

Running in two time periods with parallel processing

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Yann
  • 1 Post By Yann
  • 1 Post By saeed jamshidi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2023, 16:36
Default Running in two time periods with parallel processing
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
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.
saeed jamshidi is offline   Reply With Quote

Old   October 5, 2023, 04:19
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
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
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   October 5, 2023, 04:48
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
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
The question is whether OpenFOAM has the capability to resume a simulation after executing the `reconstructPar` command?!

Anyway I applied your mentioned solution in controlDict and then mpirun -np 4 pimpleFoam -parallel, But it does not work!
saeed jamshidi is offline   Reply With Quote

Old   October 5, 2023, 05:01
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
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:
I applied your mentioned solution in controlDict and then mpirun -np 4 pimpleFoam -parallel, But it does not work!
What does not work? What error do you get?
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   October 6, 2023, 10:25
Default
  #5
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Dear Yann, I got my answers, you were right.
Thank you for your time.
Yann likes this.
saeed jamshidi 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
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


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