CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Continue to run parallel (http://www.cfd-online.com/Forums/openfoam/101684-continue-run-parallel.html)

zxj160 May 10, 2012 13:12

Continue to run parallel
 
Dear foamers,

I run a case in parallel from 0s to 2000s. The job has finished. But I want to continue to run the case in parallel from 2000s to 4000s. How can I achieve that?

lovecraft22 May 10, 2012 13:32

Just change your controlDict file accordingly setting 2000 as startTime and 4000 as endTime.

zxj160 May 10, 2012 13:44

blockMesh
setFields
funkySetFields -time 0
decomposePar
mpirun --hostfile $PBS_NODEFILE -np $np myFoamd -parallel

Is it mean that I only need to run the last command "mpirun --hostfile $PBS_NODEFILE -np $np myFoamd -parallel" after I change the controlDict?

Or can I use mapFields utility?

zxj160 May 10, 2012 13:48

I have run the reconstructPar command for the first 2000s. How can I reconstructPar from 2000s to 4000s?

lovecraft22 May 10, 2012 14:09

You just need the solver command and at the end you should run reconstructPar again.

Bernhard May 11, 2012 03:01

Quote:

Originally Posted by lovecraft22 (Post 360376)
Just change your controlDict file accordingly setting 2000 as startTime and 4000 as endTime.

Or startFrom latestTime. Then if you copy the case to another location, (using pyFoam of course), you do not have to take care of this controlDict entry.

Phicau May 11, 2012 03:42

Quote:

Originally Posted by zxj160 (Post 360379)
I have run the reconstructPar command for the first 2000s. How can I reconstructPar from 2000s to 4000s?

As easy as: reconstructPar -time 2000:4000

zxj160 May 11, 2012 10:30

Many thanks for your ideas. It can work now.


All times are GMT -4. The time now is 16:15.