|
[Sponsors] |
[snappyHexMesh] Getting the Mesh of both sides of a surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 11, 2022, 14:01 |
Getting the Mesh of both sides of a surface
|
#1 |
New Member
Sebastian Skrna
Join Date: Dec 2022
Location: Austria
Posts: 3
Rep Power: 3 |
Hi everyone
I have a scan of a laserstructured surface (not flat) as an .stl file and my goal is to get the "imprints" (meshes) of both sides of this surface and the meshes should merge perfectly without a gap. With snappyHexMesh I can get the mesh of only one side of the surface. (Attachment: Mesh_of_only_one_side.JPG) (Attachment: Surface_and_upperSide.JPG) When i apply snappyHexMesh for each side of the surface in a seperate case and try to merge the meshes of both sides of the surface there is a small gap inbetween. (Attachment: Upper_and_lower_Side_with_Gap.JPG) How can i get a perfectly fitting mesh without a gap? I am very grateful for every idea that could solve this problem. Best wishes Sebastian |
|
December 12, 2022, 03:26 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26 |
Hello Sebastian,
What OpenFOAM version are you using? There are 2 ways to achieve it depending on the branch. Regards, Yann |
|
December 12, 2022, 03:31 |
|
#3 |
New Member
Sebastian Skrna
Join Date: Dec 2022
Location: Austria
Posts: 3
Rep Power: 3 |
Hello Yann,
thank you for your reply! I am using Version 6. Regards, Sebastian |
|
December 12, 2022, 03:58 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26 |
Thanks for your answer.
In snappyHexMeshDict, you can define cellZones for each side in order to keep both sides in the final mesh, with a snapped interface in-between: Code:
refinementSurfaces { upperSide { // Surface-wise min and max refinement level level (1 1); faceZone upperSide; cellZone upperSide; cellZoneInside inside; } lowerSide { // Surface-wise min and max refinement level level (1 1); faceZone lowerSide; cellZone lowerSide; cellZoneInside inside; } } Regards, Yann |
|
December 12, 2022, 07:05 |
|
#5 |
New Member
Sebastian Skrna
Join Date: Dec 2022
Location: Austria
Posts: 3
Rep Power: 3 |
Hello Yann,
thank you for your fast reply and the hints! I will try that Again thank you very much. Regards, Sebastian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SimpleFoam & Theater | jipai | OpenFOAM Running, Solving & CFD | 3 | June 18, 2019 10:11 |
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible | velan | OpenFOAM Meshing & Mesh Conversion | 3 | October 22, 2015 11:05 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 09:38 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 09:03 |
[snappyHexMesh] Layers don't fully surround surface | EVBUCF | OpenFOAM Meshing & Mesh Conversion | 14 | August 20, 2012 04:31 |