|
[Sponsors] |
[snappyHexMesh] How to run snappyHexMesh in parallel? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 280
Rep Power: 22 ![]() |
Hello,
I read that it's possible to run snappyHexMesh in parallel but I couldn't find an explanation how to do it. I am planning to analyze different configurations so I'd like to speedup the meshing process. My testcase is motorBike. What needs to be changed in the Allrun file: #!/bin/sh # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions cp system/fvSolution.org system/fvSolution cp -r 0.org 0 > /dev/null 2>&1 runApplication blockMesh runApplication snappyHexMesh -overwrite sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 10;/g' system/fvSolution runApplication potentialFoam -writep sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 0;/g' system/fvSolution runApplication simpleFoam Klaus |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 ![]() |
Hi Klaus,
How to run snappyHexMesh in parallel: - decomposeMethod in decomposeParDict must be hierarchical ! - run "decomposePar" - run "mpirun -np 8 -parallel snappyHexMesh" - afterwards run "reconstructParMesh -mergeTol 1e-06 -latestTime" Hope it can help you, Stephane |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
MD KAWSAR SAJIB
Join Date: Jul 2022
Posts: 7
Rep Power: 4 ![]() |
Quote:
Thank you for sharing the commands. I did it with the scotch method in decmposeParDict. Also, the command for snappyHexMesh is "mpirun -np 8 snappyHexMesh -parallel" Regards |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with foam-extend 4.0 ggi parallel run | Metikurke | OpenFOAM Running, Solving & CFD | 1 | December 6, 2018 15:51 |
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 |
Problem in foam-extend 4.0 ggi parallel run | Metikurke | OpenFOAM Running, Solving & CFD | 0 | February 20, 2018 06:34 |
Some questions about a multi region case run in parallel | zfaraday | OpenFOAM Running, Solving & CFD | 5 | February 23, 2017 10:25 |
OpenFOAM can't be run in parallel in cluster | sibo | OpenFOAM Running, Solving & CFD | 4 | February 21, 2017 16:29 |