CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] polyDualMesh + Layers + cfMesh/improveMeshQuality = usable polyMeshes witH BLayer

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree13Likes
  • 9 Post By FerdiFuchs
  • 1 Post By Lookid
  • 3 Post By Joko

LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2019, 05:56
Default polyDualMesh + Layers + cfMesh/improveMeshQuality = usable polyMeshes witH BLayer
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13
FerdiFuchs is on a distinguished road
Hi everyone,

i was trying a lot with polyDualMesh in combination with Netgen Meshes generated in Salome.

As most of us know already, polyDualMesh messes up with boundary Layers in Netgen Meshes and generates wrong oriented Faces, which makes the mesh unusable.

It seems, that it is possible to correct this wrong Faces with the cfMesh Tool "improveMeshQuality", to generate pretty suitable Polymeshes with Boundary Layers.

the procedure is as follows:

- create netgen Mesh with Layers (Use your favourite Tool)
- polyDualMesh -concaveMultiCells <angle>
- combinePatchFaces <angle>
- improveMeshQuality

Thats it! Have fun!

Best Wishes, FerdiFuchs
Attached Images
File Type: jpg output.jpg (199.6 KB, 241 views)

Last edited by FerdiFuchs; September 18, 2019 at 11:41.
FerdiFuchs is offline   Reply With Quote

Old   May 8, 2020, 17:05
Lilian Chabannes
Join Date: Apr 2017
Posts: 58
Rep Power: 9
Lookid is on a distinguished road
Very good stuff thanks!

Any additional tips for boundary layer generation in SALOME? It messes things up for me most of the time.
lourencosm likes this.
Feel free to join the OpenFOAM Discord, a live chat about OpenFOAM
Lookid is offline   Reply With Quote

Old   February 11, 2022, 10:27
Jost Kemper
Join Date: Apr 2018
Location: Kiel, Germany
Posts: 39
Rep Power: 8
Jost K is on a distinguished road
Thanks Fredi!

Your approach really does produce usable poly meshes!
I have experimented a bit with creating the prism layers with snappyHexMesh as a final step to the process (i.e. after using improveMeshQuality).
It works quite nicely so far.

Jost K is offline   Reply With Quote

Old   May 25, 2022, 07:17
New Member
Join Date: Aug 2015
Posts: 3
Rep Power: 10
Joko is on a distinguished road
Hello Ferdi, Hello Jost.

First of all, thanks to Ferdi. This helped me to create the first meshes with PolyDualMesh. However, I always had the problem with the boundary layers. With "ImproveMeshQuality" I always had the problem that the layers were "pulled out" of the corners. See picture in the attachment.

I think the idea of creating the layers afterwards is great, thanks Jost. But with SnappyHexMesh I always have the problem that the layers are not created correctly. If I get a "thickness" of the layers of 70% with Snappy, then I am usually super happy. Layer generation with cfmesh works much better.

So why do you use snappyHexMesh for layer generation?

You can also use the cfmesh command "generateBoundaryLayers" to create layers with cfmesh only. I am currently doing my first tests with this method and the first results look very good.
Attached Images
File Type: jpg PolydualMesh.jpg (139.1 KB, 129 views)
File Type: jpg TetraMesh.jpg (190.0 KB, 113 views)
klausb, lourencosm and Nikoonz like this.
Joko is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 08:26
[snappyHexMesh] Collapsing layers RomCFD OpenFOAM Meshing & Mesh Conversion 5 January 18, 2020 01:39
[ICEM] Prism layers distorted near trailing edge of blade-Unstructured Mesh Rohith Giridhar ANSYS Meshing & Geometry 3 June 29, 2015 17:52
[mesh manipulation] Sharp edge problem on concave patches using polyDualMesh without error keepfit OpenFOAM Meshing & Mesh Conversion 1 November 25, 2014 14:28
Fluent diverges when using inflation layers ziggo FLUENT 4 August 9, 2013 12:11

All times are GMT -4. The time now is 15:40.