CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Snappy in parallel mode

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 27, 2009, 14:50
Default Snappy in parallel mode
  #1
New Member
 
Join Date: Oct 2009
Posts: 3
Rep Power: 7
jajoju is on a distinguished road
Hi everybody

i am new to OpenFOAM and snappyHexMesh. I need to create a mesh with a lot of cells (arround 8 Mio.) so I thought it would be usefull to use more than one cpu. I tried to generate the mesh with the help of several cpu in OpenFOAM 1.6.x. Everything went fine so far after:

-blockMesh
-decomposePar
-mpirun -n 4 snappyHexMesh -parallel
-reconstructParMesh (after I added master time 1 to the controlDict)

If I open the mesh now in paraFoam I just can see the 'first mesh'. That means the surface is not smooth it's square cut (?).

Does anybody know if the step with the 'master time' was right (after that it finished reconstructing the first time!)? Maybe there is another mistake I made. I really hope that someone can help me! Thanks a lot!

Jakob
jajoju is offline   Reply With Quote

Old   October 27, 2009, 20:05
Default
  #2
New Member
 
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 8
alexm is on a distinguished road
Hello Jakob,
I don't know what these 'master time' is you're about. Maybe there is another thing, I have to learn ;-)
After a parallel run of snappyHexMesh in each processor folder are the the folders for the 'time steps' 1 + 2 + 3 (if add layers had been set in snappyHexMeshDict).
For the smooth surface you need the second time step.
Normaly reconstructPar - without any parameter - will reconstruct each time step in the processor folders. You should try reconstructPar -time 2 (or '-time 3' or '-latestTime')
if you have problems, try this one:
reconstructParMesh -mergeTol 1e-03 -latestTime

Hope, that helps!

Good night and greetings, Axel
alexm is offline   Reply With Quote

Old   October 28, 2009, 05:03
Default
  #3
New Member
 
Join Date: Oct 2009
Posts: 3
Rep Power: 7
jajoju is on a distinguished road
Hi Axel

thanks a lot it works!!! You really made my day!

best greetings Jakob
jajoju is offline   Reply With Quote

Old   December 3, 2014, 06:24
Default
  #4
New Member
 
Eugen
Join Date: Sep 2014
Posts: 18
Rep Power: 2
estang is on a distinguished road
If i use reconstructPar without any parameters, it tells me that there is no times selected. If i run reconstructParMesh -mergeTol 1e-06 it tells me there is no mesh

Code:
Merge tolerance : 1e-06
Write tolerance : 1e-06
Doing geometric matching on correct procBoundaries only.
This assumes a correct decomposition.
Found 8 processor directories

Reading database "snappyMultiRegionLayerMeshing_2/processor0"
Reading database "snappyMultiRegionLayerMeshing_2/processor1"
Reading database "snappyMultiRegionLayerMeshing_2/processor2"
Reading database "snappyMultiRegionLayerMeshing_2/processor3"
Reading database "snappyMultiRegionLayerMeshing_2/processor4"
Reading database "snappyMultiRegionLayerMeshing_2/processor5"
Reading database "snappyMultiRegionLayerMeshing_2/processor6"
Reading database "snappyMultiRegionLayerMeshing_2/processor7"
Time = 0

No mesh.

End.
This is the tree of one processor after snappyHexMesh has run
Code:
├── processor7
│   ├── 0
│   │   ├── cellLevel
│   │   └── pointLevel
│   └── constant
│       └── polyMesh
│           ├── boundary
│           ├── boundaryProcAddressing
│           ├── cellLevel
│           ├── cellProcAddressing
│           ├── cellZones
│           ├── faceProcAddressing
│           ├── faces
│           ├── faceZones
│           ├── level0Edge
│           ├── neighbour
│           ├── owner
│           ├── pointLevel
│           ├── pointProcAddressing
│           ├── points
│           ├── pointZones
│           ├── refinementHistory
│           ├── sets
│           │   └── wrongFaces
│           └── surfaceIndex
whats wrong?
estang is offline   Reply With Quote

Old   December 3, 2014, 11:48
Default
  #5
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,086
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Code:
reconstructParMesh -mergeTol 1e-6 -constant
Why you have to use it because you are using
Code:
mpirun -np x snappyHeMesh -parallel -overwrite
Therefor -overwrite tells sHM to overwrite the mesh in constant/polyMesh and therefor you will not get a time folder. Hence this happens reconstructParMesh is not able to reconstruct a mesh because it is searching in a time folder which you do not have. To avoid this error you have to tell the application that you want to reconstruct the mesh in constant folder.
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
Tobi is offline   Reply With Quote

Old   December 4, 2014, 02:57
Thumbs up
  #6
New Member
 
Eugen
Join Date: Sep 2014
Posts: 18
Rep Power: 2
estang is on a distinguished road
you solved my problem
estang is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
parallel mode failure in 3ddp but not in 2ddp ak6g08 FLUENT 1 September 22, 2009 06:56
parallel mode failure in 3ddp but not in 2ddp ak6g08 Fluent UDF and Scheme Programming 0 September 22, 2009 06:16
DPM model in parallel batch mode Prashanth FLUENT 2 March 6, 2009 08:54
parallel mode - small problem? co2 FLUENT 2 June 1, 2004 23:47
TASCflow,problem with script and parallel mode Zbynek Hrncir CFX 0 October 2, 2001 07:30


All times are GMT -4. The time now is 05:11.