CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Able to run snappyHexMesh in parallel on local machine but unable to run on linux clu

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2014, 09:48
Default Able to run snappyHexMesh in parallel on local machine but unable to run on linux clu
New Member
Join Date: Jul 2014
Location: Bangalore
Posts: 1
Rep Power: 0
abhinav2601 is on a distinguished road
Hello everyone,
I am trying to solve a ship resistance calculation problem using interDyMFoam on OpenFoam version 2.3. The OS is Red Hat. The desired mesh size is between 3.5 million to 6 million for half-body( generated using blockMesh followed by snappyHexMesh).
The problem I am encountering is that: The same sequence of commands submitted through command line will generate the mesh( in parallel ) , initialize the fields and submit the solution (in parallel) and reconstruct the time directories. But when the same sequence of commands is submitted with a slight change to the same version of OpenFoam (2.3) installed on a RedHat based cluster I am getting some errors.

The error is the following: There is a
Time = 0
No mesh.
Message in both cases at the end of reconstructParMesh –constant
But in local machine the checkMesh right after this displays increased number of cells and a ‘hull’ patch. In case of the cluster the checkMesh at this stage returns the original number of cells(as after blockMesh) and no ‘hull’ patch.
Thus the solution can proceed correctly on the local machine but not on the cluster.

I am submitting the following sequence of commands through command line:
surfaceFeatureExtract > log.surfaceFeatureExtract
blockMesh > log.blockMesh
checkMesh > log.checkMesh_blockMesh
decomposePar –force –latestTime > log.decomposePar_blockMesh
foamJob –screen –parallel –snappyHexMesh –overwrite
mv log log.snappyHexMesh
reconstructParMesh –constant > log.reconstructParMesh
checkMesh > log.checkMesh_snappyHexMesh
setFields > log.setFields
decomposePar –force –latestTime > log.decomposePar_snappyHexMesh
foamJob –screen –parallel –interDyMFoam
mv log log.interDyMFoam
reconstructPar > log.reconstructPar
The above log files are attached as

I am submitting the following sequence of commands through a queue script
decomposePar –force –latestTime
time mpirun –hostfile \$PBS_NODEFILE –np \$np snappyHexMesh –overwrite
reconstructParMesh –constant
decomposePar –force –latestTime
time mpirun –hostfile \$PBS_NODEFILE –np \$np interDyMFoam –parallel
The foam.log file generated by the above commands is attached as

For better illustration the cluster script is also attached as The job is submitted using
./ -Np 8 -Both
I have also attached my, constant and system directories for a cleaned case as for further clarity.
Any help will be much appreciated.
Attached Files
File Type: zip (21.7 KB, 14 views)
File Type: zip (18.3 KB, 6 views)
File Type: zip (22.5 KB, 5 views)
File Type: zip (1.6 KB, 5 views)
abhinav2601 is offline   Reply With Quote

Old   January 26, 2015, 05:42
Default solution?
New Member
Rasmus Lundsgaard
Join Date: Aug 2014
Posts: 1
Rep Power: 0
Termo is on a distinguished road
Did you find why you got the "No mesh"? I seem to get the same, and I can not see why reconstructPar doesn't work as it should.
Termo is offline   Reply With Quote


clusters, interdymfoam, openfoam 2.3.0, parallel meshing, snappyhexmesh 3d

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[TUTORIAL] Run fluent on distributed memory with 2 windows 7 64 bit machines ghost82 FLUENT 54 February 9, 2022 03:32
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03

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