CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] One mesh for multiple cases (https://www.cfd-online.com/Forums/openfoam-meshing/115349-one-mesh-multiple-cases.html)

matzbanni March 28, 2013 14:41

One mesh for multiple cases
 
hello!
at the moment i'm trying to calculate different case-setups, all designed with the same mesh. is it possible to store the mesh only once, and all of the other cases have access to the mesh?
thanks.

regards,
m

Lieven March 28, 2013 16:19

Hi m,

You can simply use symbolic links for this. You can for example make a directory structure like
$/case1
$/case2
$/case...
$/caseN
$/polyMesh

and in each of the $/case*/constant folders you type
Code:

ln -s ../../polyMesh .
If you want to run the simulations in parallel, the situation is basically the same but then you need to set the links to all processor*/constant/polyMesh folders.

Cheers,

Lieven

matzbanni March 28, 2013 17:13

Quote:

Originally Posted by Lieven (Post 417078)
Hi m,

You can simply use symbolic links for this. You can for example make a directory structure like
$/case1
$/case2
$/case...
$/caseN
$/polyMesh

and in each of the $/case*/constant folders you type
Code:

ln -s ../../polyMesh .
If you want to run the simulations in parallel, the situation is basically the same but then you need to set the links to all processor*/constant/polyMesh folders.

Cheers,

Lieven

Hi Lieven,
thanks for your reply. After a few errors I figured it out how to do it.

Regards,
m

isaac1326 September 7, 2016 12:44

Quote:

Originally Posted by matzbanni (Post 417089)
Hi Lieven,
thanks for your reply. After a few errors I figured it out how to do it.

Regards,
m

I am a beginner, I have one question, where do you place these $/case1 and in where do you type ln -s ../../polyMesh .


All times are GMT -4. The time now is 10:07.