CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Resuming OpenFoam with different number of processors (https://www.cfd-online.com/Forums/openfoam-solving/134613-resuming-openfoam-different-number-processors.html)

skylark May 2, 2014 09:36

Resuming OpenFoam with different number of processors
 
Hi everbody,

Is there a way to stop an OpenFoam execution and re-run it later with more processors? I've searched the forums and tried to use reconstructPar and redistributePar, but I've had trouble getting them to work. Could anybody provide more detailed steps on how to achieve this?

Any help would be greatly appreciated,

Thanks.

james.conger May 2, 2014 12:18

restarting with MPU changes
 
No guarantees, but what I would try would be:

1) At completion of first set of runs, run reconstructPar. This will reassemble the solution from all separated MPU runs into single directories - just as if you had run the whole problem on one CPU.
2) Delete the processorN directories
3) Make sure your controlDict file has "startFrom latestTime;" and an endTime greater than your last solution.
4) Restart the problem with a different number of processors by changing your MPU settings and then running decomposePar, mpirun, reconstructPar as usual.

I have only done this going from one to many to one processor.


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