|
[Sponsors] |
May 10, 2020, 08:47 |
snappyHexMesh: surface layers collapse
|
#1 |
New Member
Manuel FLuck
Join Date: May 2020
Location: Lorient, France
Posts: 6
Rep Power: 5 |
Hi there.
I'm working on a snappyHexMesh around (thin) sails modelled as a single surface. But I can not get proper surface layers. It seems like the added cells are collapsed again. See attached screen shot. I've spent a day trying different addLayersControls, but I seem to be unable to get anything better than the attached. Any Ideas of what's going on? I don't know anymore where to search. Thanks. manuel here my addLayersControls: Code:
addLayersControls { // Are the thickness parameters below relative to the undistorted // size of the refined cell outside layer (true) or absolute sizes (false). relativeSizes true; // Per final patch (so not geometry!) the layer information layers { wing { nSurfaceLayers 4; } } // Expansion factor for layer mesh expansionRatio 1.3; // Wanted thickness of final added cell layer. If multiple layers // is the thickness of the layer furthest away from the wall. // Relative to undistorted size of cell outside layer. // See relativeSizes parameter. finalLayerThickness 0.7; // Minimum thickness of cell layer. If for any reason layer // cannot be above minThickness do not add layer. // Relative to undistorted size of cell outside layer. // See relativeSizes parameter. minThickness 0.25; // If points get not extruded do nGrow layers of connected faces that are // also not grown. This helps convergence of the layer addition process // close to features. // Note: changed(corrected) w.r.t 1.7.x! (didn't do anything in 1.7.x) nGrow 0; // Advanced settings // When not to extrude surface. 0 is flat surface, 90 is when two faces // are perpendicular featureAngle 90; // Maximum number of snapping relaxation iterations. Should stop // before upon reaching a correct mesh. nRelaxIter 10; // Number of smoothing iterations of surface normals nSmoothSurfaceNormals 1; // Number of smoothing iterations of interior mesh movement direction nSmoothNormals 3; // Smooth layer thickness over surface patches nSmoothThickness 10; // Stop layer growth on highly warped cells maxFaceThicknessRatio 0.5; // Reduce layer growth where ratio thickness to medial // distance is large maxThicknessToMedialRatio 0.3; // Angle used to pick up medial axis points // Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x. minMedialAxisAngle 90; // Create buffer region for new layer terminations nBufferCellsNoExtrude 0; // mf added //Surface based refinement level (2 2); //Refinement region at the stl surface: //mode distance; //levels ((0.2 6)); // Overall max number of layer addition iterations. The mesher will exit // if it reaches this number of iterations; possibly with an illegal // mesh. nLayerIter 100; } |
|
May 13, 2020, 17:15 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Hi
- You can find the complete set of settings here for layer addition: https://www.openfoam.com/documentati...sh-layers.html - Otherwise difficult to pinpoint and isolate the effects of each parameter for the layer addition, but I would first try to add only a single layer. Hope it helps.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 15, 2020, 02:47 |
|
#3 |
Member
Simon
Join Date: Sep 2019
Location: Germany
Posts: 51
Rep Power: 6 |
I dont really know what the mistake is because I am still a beginner.
Maybe you can play around with the featureAngle. Or another suggestion is to add more prism layers. I found a good tutorial here that helped me http://www.wolfdynamics.com/wiki/meshing_OF_SHM.pdf |
|
May 15, 2020, 03:05 |
|
#4 |
New Member
Manuel FLuck
Join Date: May 2020
Location: Lorient, France
Posts: 6
Rep Power: 5 |
Thanks, I did that Wolf tutorial as a start. Good stuff, but unfortunately he doesn't really explain what the parameters really do.
HPE, that link is great. This is what I needed. Anyway... I figured that the prism layers behave much better if I have a 2D geometry (a simple extrusion instead of a real sail). Since my goal was anyway a 2D simulation I was lucky there. |
|
May 15, 2020, 16:38 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Hi
- Very generic extra advice: please do ensure surface mesh you use is good quality and meshed relatively densely. You can monitor the surface mesh quality metrics with `surfaceCheck` utility of OpenFOAM.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 18, 2020, 05:05 |
|
#6 |
New Member
Manuel FLuck
Join Date: May 2020
Location: Lorient, France
Posts: 6
Rep Power: 5 |
Thanks, that's good advise, too!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] adding layers with snappyHexMesh at small curved surface | kreidi | OpenFOAM Meshing & Mesh Conversion | 3 | January 4, 2019 15:26 |
[snappyHexMesh] Collapsing layers | michi.ka | OpenFOAM Meshing & Mesh Conversion | 6 | September 22, 2018 09:20 |
[snappyHexMesh] Old and busted: snappyHexMesh and add layers with edges | Siassei | OpenFOAM Meshing & Mesh Conversion | 6 | August 14, 2018 18:33 |
[snappyHexMesh] proble of creating layers with snappyHexMesh | comingdaytime | OpenFOAM Meshing & Mesh Conversion | 3 | May 24, 2018 06:18 |
[snappyHexMesh] Problems meshing an impeller with snappyHexMesh | kandelabr | OpenFOAM Meshing & Mesh Conversion | 13 | June 9, 2017 06:18 |