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

[snappyHexMesh] snappyHexMesh -parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2023, 02:40
Default snappyHexMesh -parallel
  #1
New Member
 
Join Date: Sep 2020
Posts: 26
Rep Power: 6
paulathikalam is on a distinguished road
Hii all,

i have been trying to run my openfoam case in parallel, I have managed to do that with the following code. I am actually getting results and they look good. I wanted to double check the code to make sure that there is no error/mistake before i run all of my cases.

##################

mkdir 0

cp constant/turbulenceProperties_sst constant/turbulenceProperties

blockMesh

decomposePar -force -copyZero

mpirun -np 16 snappyHexMesh -parallel -overwrite

reconstructParMesh -constant -mergeTol 1E-06

rm -rf processor*

extrudeMesh

checkMesh

rm -fr 0

cp -r 0.org 0

setFields

decomposePar

mpirun -np 16 olaFlow -parallel

touch full.foam

##########

Did i do something terrible ? Please help

Paul
paulathikalam is offline   Reply With Quote

Old   May 27, 2023, 01:18
Default
  #2
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8
farzadmech is on a distinguished road
I think it is better to add
Code:
reconstructPar -constant
after the
Code:
reconstructParMesh  -constant -mergeTol 1E-06
command line.

Farzad

Quote:
Originally Posted by paulathikalam View Post
Hii all,

i have been trying to run my openfoam case in parallel, I have managed to do that with the following code. I am actually getting results and they look good. I wanted to double check the code to make sure that there is no error/mistake before i run all of my cases.

##################

mkdir 0

cp constant/turbulenceProperties_sst constant/turbulenceProperties

blockMesh

decomposePar -force -copyZero

mpirun -np 16 snappyHexMesh -parallel -overwrite

reconstructParMesh -constant -mergeTol 1E-06

rm -rf processor*

extrudeMesh

checkMesh

rm -fr 0

cp -r 0.org 0

setFields

decomposePar

mpirun -np 16 olaFlow -parallel

touch full.foam

##########

Did i do something terrible ? Please help

Paul
farzadmech 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] snappyHexMesh in parallel shailesh.nitk OpenFOAM Meshing & Mesh Conversion 33 January 25, 2022 11:35
snappyHexMesh parallel, avoid reconstructParMesh Tom Lauriks Main CFD Forum 2 April 27, 2020 12:47
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 17:38
[snappyHexMesh] SnappyHexMesh in Parallel problem swifty OpenFOAM Meshing & Mesh Conversion 10 November 6, 2015 05:40
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 12:58


All times are GMT -4. The time now is 02:15.