CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   is it possible to decompose a case from an already obtained time step? (https://www.cfd-online.com/Forums/openfoam/200613-possible-decompose-case-already-obtained-time-step.html)

eric-meng April 8, 2018 11:47

is it possible to decompose a case from an already obtained time step?
 
I am very curious about the possibility of decomposing a case from a determined time step

I ran my case with 30 nodes while after running of several hours, I think 30 nodes may not be the best choice..

So I hope to decompose my case again meanwhile I hope the results already obtained can be saved

Is this possible or I have to configure it on a new case?

einstein_zee April 8, 2018 12:53

Quote:

Originally Posted by eric-meng (Post 688039)
I am very curious about the possibility of decomposing a case from a determined time step

I ran my case with 30 nodes while after running of several hours, I think 30 nodes may not be the best choice..

So I hope to decompose my case again meanwhile I hope the results already obtained can be saved

Is this possible or I have to configure it on a new case?

Hey there,

What you can do is that you reconstruct your simulation only for the latest time step, then create a new case and initialize your fields with the results of your latest reconstructed time step. The rest is straight forward I guess... (just decompose the case with the new number of processors/nodes).

eric-meng April 8, 2018 13:03

Quote:

Originally Posted by einstein_zee (Post 688041)
Hey there,

What you can do is that you reconstruct your simulation only for the latest time step, then create a new case and initialize your fields with the results of your latest reconstructed time step. The rest is straight forward I guess... (just decompose the case with the new number of processors/nodes).

Thank you einstein-zee, let me try what you said

RobertHB April 10, 2018 04:58

Another solution, without setting up a new case and initializing your previous results:
1) reconstructPar your simulation as far as you want to keep your results (or -latestTime to only reconstruct the last timestep)
2) change your decomposeParDict settings
3) decomposePar -latestTime
This should decompose your case with new settings while keeping your simulation results and avoiding the hazzle of setting up a new case and mapping the fields.

eric-meng April 10, 2018 05:36

Quote:

Originally Posted by RobertHB (Post 688238)
Another solution, without setting up a new case and initializing your previous results:
1) reconstructPar your simulation as far as you want to keep your results (or -latestTime to only reconstruct the last timestep)
2) change your decomposeParDict settings
3) decomposePar -latestTime
This should decompose your case with new settings while keeping your simulation results and avoiding the hazzle of setting up a new case and mapping the fields.

Thank you @RobertHB this is quite clear


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