|
[Sponsors] |
February 2, 2011, 04:52 |
blockMesh - parallel mesh generation
|
#1 |
New Member
Wolfgang Strauss
Join Date: Nov 2010
Location: Germany / Bavaria / Eichstätt
Posts: 15
Rep Power: 15 |
Hi Foamers!
I have just a short question. Is a parallel mesh generation with blockMesh possible? Thanks and best regards! Wolfgang |
|
February 3, 2011, 04:21 |
|
#2 |
New Member
Felix W.
Join Date: Jan 2011
Posts: 4
Rep Power: 15 |
Hi Wolfgang,
I'm not sure, what you're meaning with a parallel mesh generation.. But if you want to define a rectangular area with a mesh (existing of rectangular cells, which can have regular or irregular dimensions): This is possible. I normally define my (3d) domains with BlockMesh and insert other geometries with snappyHexMesh.. But I'm still a Beginner in OF, so that this is maybe not the best way for a geometry preparation.. best regards, felix |
|
February 3, 2011, 04:59 |
|
#3 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29 |
I think he meant if he can run blockMesh in parallel, and I think the answer is no.
|
|
February 3, 2011, 08:00 |
|
#4 |
New Member
Wolfgang Strauss
Join Date: Nov 2010
Location: Germany / Bavaria / Eichstätt
Posts: 15
Rep Power: 15 |
hi felix and akidess
akidess is right. By now i used... blockMesh decomposePar mpiexec -n 12 snappyHexMesh -parallel ... and it worked fine. Thanks akidess for your quick answer. Best regards Wolfgang |
|
January 15, 2013, 09:19 |
|
#5 |
New Member
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 14 |
Hi Foamers,
Now that we're in 2013 , do you know if there's a way to run blockMesh in parallel? I am trying to run a 3D case on a cluster, with 28 blocks and a total of 67x10^6 cells... Hence, blockMesh it taking forever. Do you have any suggestions? Thanks |
|
January 15, 2013, 10:42 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
No seriously: blockMesh doesn't work in parallel and would be hard to write such a thing in parallel (think about it: you're asking the decomposition algorithm to know how to decompose before the actual cells are known). Anyway: one way would be the following (I'm only sketching this. You have a cluster for a 67m cell mesh so I assume you either have the time to set this up yourself or the money to buy support to do this for you): - set up blockMeshes for single blocks (or small managable groups). Set up patches for the processor patches (but give them the type patch) - run blockMesh on each of these blocks - copy the constant/polyMesh into the appropriate processorX/constant/polyMesh directory - either edit by hand or have a script to edit the polyMesh/boundary-files to change the type of the patches from patch to processor Now you have a mesh that is decomposed for 28 processors (assuming each block gets his own processor). If that is not the number of processors you want to do the calculation with or if the mesh is unbalanced because the blocks are not of the same cell number then you can use the redistributeParMesh utility to get an evenly distributed mesh on any number of processors you like. All these steps can be scripted (even decomposing the big blockMeshDict into 28 dicts ... but it won't be pretty)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
January 3, 2014, 18:56 |
|
#7 |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
Although this seems to be a year later. I think a nice solution would also be to:
1. make a coarse mesh 2. decomposePar it 3. Edit: run topoSet in parallel to add sets to constant/polyMesh in system/topoSetDict create a cellSet via a large box to include all cells for refinement 3. run refineHexMesh as many times as you desire in parallel Best regards, Hisham Last edited by Hisham; January 4, 2014 at 00:29. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 03:52 |
Mesh generation software is needed | H.Dou | Main CFD Forum | 12 | May 4, 2011 15:20 |
[snappyHexMesh] Parallel mesh generation using snappyHexMesh | aki_yafuji | OpenFOAM Meshing & Mesh Conversion | 0 | December 25, 2010 03:49 |
[blockMesh] Mesh generation without using blockMesh | mamaly60 | OpenFOAM Meshing & Mesh Conversion | 1 | November 1, 2007 02:45 |