|
[Sponsors] |
[snappyHexMesh] How to run snappyHexMesh in parallel? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 16, 2011, 10:31 |
How to run snappyHexMesh in parallel?
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
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 |
|
January 17, 2011, 04:09 |
|
#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 |
|
August 4, 2022, 05:51 |
|
#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 |
||
|
|
Similar Threads | ||||
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 16:51 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
Problem in foam-extend 4.0 ggi parallel run | Metikurke | OpenFOAM Running, Solving & CFD | 0 | February 20, 2018 07:34 |
Some questions about a multi region case run in parallel | zfaraday | OpenFOAM Running, Solving & CFD | 5 | February 23, 2017 11:25 |
OpenFOAM can't be run in parallel in cluster | sibo | OpenFOAM Running, Solving & CFD | 4 | February 21, 2017 17:29 |