|
[Sponsors] |
[mesh manipulation] improveMeshQuality deletes facezones |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Join Date: Dec 2021
Posts: 221
Rep Power: 5 ![]() |
Hello everybody!
I am interested in producing usable polyhedral meshes with boundary layers and facezones. I found this thread with a procedure to create such a mesh minus the facezones : polyDualMesh + Layers + cfMesh/improveMeshQuality = usable polyMeshes witH BLayer I conducted some tests on a simple cylinder meshed with a facezone inside via Salome and Netgen. After polyDualMesh and combinePatchFaces, the facezone is still there, but the checkMesh returns poor quality. After running improveMeshQuality, the mesh seems usable but the facezone ID is gone, although you can see where it supposed to be in Paraview. Does anyone have an idea on why the facezone is ignored with the improveMeshQuality tool ? I know having facezones with cfMesh is tricky, so maybe using related commands is to be avoided. Any help is appreciated, thanks ! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 679
Rep Power: 12 ![]() |
Interesting. I never used this utility, but sometimes the easiest things work, so here is what I would try: the faces belonging to the faceZone are collected in a file in polyMesh. If improveMeshQuality does not renumber anything (does it?), then maybe you can just copy over the file to the mesh after the utility ran?
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Join Date: Dec 2021
Posts: 221
Rep Power: 5 ![]() |
Quote:
Okay, simplicity at its best you are a genius ! It does work, or at least it is recognized by checkMesh and Paraview (when you use the Extract Filter). To sum up the steps to achieve a usable polyhedral mesh with Salome and polyDualMesh and preserving faceZones :
I have yet to see if nothing is out of place during an actual simulation, and to check if the same trick works for cellZones but it is very encouraging for baffles, splitting the mesh for multiregion cases etc. I will post some updates if I make progress. Thanks again AtoHM ! Edit: it also works for cellZones ![]() Last edited by Alczem; August 22, 2022 at 09:05. |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Dec 2021
Posts: 221
Rep Power: 5 ![]() |
Hi all,
I did more tests with cellZones, and the improveMeshQuality seems to smooth the sharp features of the facezones. I tried to mesh a small cube inside a bigger cube, and define it as a cellZone with a faceZone at the interface. The result of the steps I described earlier is attached: smoothed edges which mess up the cellZone and the faceZone. Until someone finds a fix, I would recommend to set up faceZones and cellZones such that they are connected to a boundary or share a boundary with the main mesh (so avoid "floating" cellzones/facezones). It looks like it helps preserve the sharp edges. I will try to investigate further when I have the time ![]() |
|
![]() |
![]() |
![]() |
Tags |
cfmesh, facezone, improvemeshquality, polydualmesh, salome |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[cfMesh] improveMeshQuality does not move points on wall patches | GerhardHolzinger | OpenFOAM Community Contributions | 0 | November 18, 2020 12:08 |
[snappyHexMesh] create two faceZones with single STL file - is it possible? | aerogt3 | OpenFOAM Meshing & Mesh Conversion | 0 | September 19, 2016 16:30 |
Appending faceZones | mturcios777 | OpenFOAM Programming & Development | 1 | December 17, 2012 17:59 |
[swak4Foam] for faceZones | andrea.pasquali | OpenFOAM Community Contributions | 3 | August 30, 2011 11:24 |
[snappyHexMesh] incompleted faceZones ? normal? | Tobi | OpenFOAM Meshing & Mesh Conversion | 1 | November 30, 2010 13:42 |