CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] snappyHexMesh -parallel (https://www.cfd-online.com/Forums/openfoam-meshing/250050-snappyhexmesh-parallel.html)

paulathikalam May 24, 2023 01:40

snappyHexMesh -parallel
 
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 May 27, 2023 00:18

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 (Post 850750)
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



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