CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] One mesh for multiple cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2013, 14:41
Default One mesh for multiple cases
  #1
Member
 
MB
Join Date: Sep 2012
Posts: 30
Rep Power: 13
matzbanni is on a distinguished road
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
matzbanni is offline   Reply With Quote

Old   March 28, 2013, 16:19
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
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
Lieven is offline   Reply With Quote

Old   March 28, 2013, 17:13
Default
  #3
Member
 
MB
Join Date: Sep 2012
Posts: 30
Rep Power: 13
matzbanni is on a distinguished road
Quote:
Originally Posted by Lieven View Post
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

Last edited by matzbanni; March 29, 2013 at 07:44.
matzbanni is offline   Reply With Quote

Old   September 7, 2016, 12:44
Default
  #4
New Member
 
Isaac
Join Date: Feb 2013
Posts: 27
Rep Power: 13
isaac1326 is on a distinguished road
Quote:
Originally Posted by matzbanni View Post
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 .
isaac1326 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] problems generating clean mesh Christian_tt OpenFOAM Meshing & Mesh Conversion 2 June 20, 2019 05:39
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 06:21
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


All times are GMT -4. The time now is 08:06.