|
[Sponsors] |
February 5, 2018, 08:25 |
Is it possible to avoid reconstructParMesh?
|
#1 |
Member
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 13 |
Hi,
I am running a quite large case and the reconstruction of the mesh takes a very long time. Is it possible to run mpirun simpleFoam without having to reconstruct the mesh and decompose it again? I am running OF 4.1. My current workflow is blockMesh surfaceFeatureExtract decomposePar mpirun -np X snappyHexMesh -overwrite -parallel reconstructParMesh -constant decomposePar mpirun -np X renumberMesh -overwrite -parallel mpirun -np X simpleFoam -overwrite -parallel I know that I can postProcess without reconstructing the case, but can I go from decomposed mesh to solution directly? Thanks! |
|
February 5, 2018, 10:00 |
|
#2 |
Member
Knut Erik T. Giljarhus
Join Date: Mar 2009
Location: Norway
Posts: 35
Rep Power: 22 |
Yes, you do not need to recompose the mesh before running the solver. Have a look at the Allrun file in for instance the motorBike tutorial:
$FOAM_TUTORIALS/incompressible/simpleFoam/motorBike/Allrun There are some commands there that help copying the 0 folder to all the individual processors. In OpenFOAM 5, you can just add -copyZero as argument to the decomposePar command. |
|
February 5, 2018, 17:15 |
|
#3 |
Member
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 13 |
Thanks Eric! Can't even tell you how much it has helped me.
For future readers... After sHM in parallel you need to run Code:
ls -d processor* | xargs -I {} rm -rf ./{}/0 ls -d processor* | xargs -I {} cp -r 0.orig ./{}/0 Remember to add Code:
#includeEtc "caseDicts/setConstraintTypes" I finally run (not sure if patchSummary is needed) Code:
mpirun --mca orte_base_help_aggregate 0 -np X patchSummary -parallel mpirun --mca orte_base_help_aggregate 0 -np X renumberMesh -overwrite -parallel mpirun --mca orte_base_help_aggregate 0 -np X simpleFoam -parallel Code:
reconstructParMesh -constant reconstructPar -latestTime |
|
February 6, 2018, 05:27 |
|
#4 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
And you don't necessarily need to reconstruct. Using paraFoam -builtin you can view your decomposed case in paraview.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Using reconstructParMesh on a cluster, bottle neck and out of memory | KTG | OpenFOAM Meshing & Mesh Conversion | 2 | May 5, 2017 13:48 |
How to avoid the pebble-pebble contact | liulimin | STAR-CCM+ | 0 | October 25, 2016 23:47 |
reconstructParMesh + GGI problem | jiejie | OpenFOAM Post-Processing | 0 | August 14, 2012 03:10 |
reconstructParMesh not working with an axisymetric case | francesco | OpenFOAM Bugs | 4 | May 8, 2009 06:49 |
how to avoid self intersection:Proam | bala | Siemens | 5 | March 6, 2008 05:23 |