CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

snappyHexMesh parallel, avoid reconstructParMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2020, 10:46
Default snappyHexMesh parallel, avoid reconstructParMesh
  #1
Member
 
Tom Lauriks
Join Date: Apr 2020
Posts: 34
Rep Power: 6
Tom Lauriks is on a distinguished road
Hi Foamers,


I'm having problems in trying to avoid reconstructParMesh after running snappyHexMesh in parallel. I found another thread on this forum handling the exact same topic (Is it possible to avoid reconstructParMesh?, but the solution doesn't work for me.

The first thing that I do not understand about said solution, is that it is said to use the option -copyZero for decomposePar. However, when I try this, the boundaryField dicts in the 0 maps in the processor maps are not decomposed. When I use reconstructParMesh after using SHM and then decomposePar -force again, the boundaryField dicts are decomposed and then the solver doesn't error. In addition, I'm rather sure that I found in another thread, that copying the 0 from the not-decomposed case into the processor maps will not work, because it should be decomposed. (I know that in the motorBike tutorial, decomposePar -copyZero is used, but I do not understand why).

In addition, what I want to accomplish in the end, might complicate things a bit more. I'm using simpleFoam on OpenFOAM v6, to calculate the flow. I'm using the function object scalarTransport, to add scalar dispersion. I'm using scalarSemiImplicitSource, to provide a source term for the scalar in a part of my domain. I first refine the mesh around this part with refineMesh, in a cellSet created with topoSet. Then, I create another cellSet with topoSet, which will be used by scalarSemiImplicitSource.

To achieve the latter, the following has worked so far:
blockMesh
decomposePar
mpirun -np $cores snappyHexMesh -overwrite -parallel
reconstructParMesh
create mass source as described with refineMesh and topoSet
decomposePar -force
simpleFoam
Would it be possible to avoid the reconstructParMesh step in this workflow?
Tom Lauriks is offline   Reply With Quote

Old   April 27, 2020, 12:38
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by Tom Lauriks View Post
The first thing that I do not understand about said solution, is that it is said to use the option -copyZero for decomposePar. However, when I try this, the boundaryField dicts in the 0 maps in the processor maps are not decomposed. When I use reconstructParMesh after using SHM and then decomposePar -force again, the boundaryField dicts are decomposed and then the solver doesn't error. In addition, I'm rather sure that I found in another thread, that copying the 0 from the not-decomposed case into the processor maps will not work, because it should be decomposed. (I know that in the motorBike tutorial, decomposePar -copyZero is used, but I do not understand why).

All of these are correct statements. Indeed -copyZero does not decompose the fields and they do need to be decomposed.


In the motorBike tutorial, it works because they're all uniform. That's why the option is limited to -copyZero and not -copyAnyTimeYouWant. It's there for speed purposes (so that you do not try to decompose a bunch of fields that don't need decomposing).


In order for you to skip having to reconstruct the mesh, you case would need to be like the motorBike tutorial and not need any mapping.
LuckyTran is offline   Reply With Quote

Old   April 27, 2020, 12:47
Default
  #3
Member
 
Tom Lauriks
Join Date: Apr 2020
Posts: 34
Rep Power: 6
Tom Lauriks is on a distinguished road
Thanks! That answers all my questions.
Tom Lauriks is offline   Reply With Quote

Reply

Tags
avoid, parallel, reconstructparmesh, snappyhexmesh


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] Parallel meshing - SnappyHexMesh Akanksha90 OpenFOAM Meshing & Mesh Conversion 3 March 3, 2022 08:52
[snappyHexMesh] SnappyHexMesh in parallel missing 0 folder libindaniel2000 OpenFOAM Meshing & Mesh Conversion 0 May 26, 2016 23:46
Running parallel case after parallel meshing with snappyHexMesh? Adam Persson OpenFOAM Running, Solving & CFD 0 August 31, 2015 23:04
snappyHexMesh in parallel Dadou OpenFOAM Pre-Processing 0 June 28, 2013 07:46
[snappyHexMesh] snappyHexMesh parallel run error dhruv OpenFOAM Meshing & Mesh Conversion 2 February 16, 2012 05:34


All times are GMT -4. The time now is 14:48.