CFD Online Discussion Forums

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

matzbanni March 28, 2013 15: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 17: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 18: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


All times are GMT -4. The time now is 03:41.