|
[Sponsors] |
[snappyHexMesh] Problems adding layers to several objects |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 4, 2020, 10:15 |
Problems adding layers to several objects
|
#1 |
Member
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8 |
Hi all,
I am trying to add layers to four cylinders, all of which within the boundary of yPlus values, i.e. between 30 and 300. Hence hte layers should be round 0.0017 meters in the first layer. My blockMeshDict and snappyhexMeshDict are attached, but every time i run snappyHexMeshDict, either no layers are added at all, or layer size are not equal to the one i specify in snappyHexMeshDict... Please see attached snip and log of snappyhexMesh. Can any of you help?? Last edited by Rasmusiwersen; January 4, 2020 at 19:56. |
|
January 10, 2020, 05:03 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hi !
I see one problem in your snappyHexMeshDict file: Code:
// When not to extrude surface. 0 is flat surface, 90 is when two faces // are perpendicular featureAngle 0; With featureAngle=0, you're basically telling to snappy to not add any layer anywhere. With featureAngle=90, snappy should try to add layers on your patch, except where faces have an angle of 90° or above. So you should adjust the value depending on what you want to do, but for sure 0° will not give any layer addition. There might be other problems but I guess you can start with this and see if it helps. Just in case you don't know it there are different ways to define the layers thickness : Code:
// Layer thickness specification. This can be specified in one of following // ways: // - expansionRatio and finalLayerThickness (cell nearest internal mesh) // - expansionRatio and firstLayerThickness (cell on surface) // - overall thickness and firstLayerThickness // - overall thickness and finalLayerThickness // - overall thickness and expansionRatio Cf the annotated snappyHexMeshDictFile Regards, Yann |
|
January 10, 2020, 05:28 |
|
#3 | ||
Member
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8 |
Hi Yann!
First of all, thank you so much for taking the time to look at my problem. I really appreciate it! Quote:
Quote:
relativeSizes false; nSurfacelayers 5; firstLayerthickness 0.01; thickness 0.1; would create 5 layers of either equally sized layers or use a default expansionratio? Once again, thank you so much for your time! /Rasmus |
|||
January 10, 2020, 06:38 |
|
#4 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hi Rasmus,
I'm glad if my post could help you. Another thing you can try, for diagnosis purpose, is to switch off most of the quality controls parameters in meshQualityControls (see here to see how disable each parameters) From my experience, layers are sometimes not extruded because it fails to satisfy the mesh quality parameters and it's hard to know if layers are not extruded because of the layer addition setup or the mesh quality controls. So when setting up the mesh, it can be useful to disable the quality controls to have the full control on the layers addition setup, and once you're satisfied with the solution enable/adjust mesh quality parameters. Quote:
If you try it, I'm interested to know how it behaves! Yann |
||
January 10, 2020, 11:57 |
|
#5 | |
Member
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8 |
Hi Yann,
Quote:
Alright. I'll give it a go if needs be, and post the result here in this thread. Have a great weekend! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Collapsing layers | RomCFD | OpenFOAM Meshing & Mesh Conversion | 5 | January 18, 2020 02:39 |
chtMultiRegionSimpleFoam: strange error | samiam1000 | OpenFOAM Running, Solving & CFD | 26 | December 29, 2015 23:14 |
Problems adding temperature to icoFoam | sur4j | OpenFOAM Programming & Development | 8 | January 11, 2015 02:14 |
Problems in my first attempt with chtMultiRegionSimpleFoam | zfaraday | OpenFOAM Running, Solving & CFD | 1 | April 8, 2014 19:20 |
[snappyHexMesh] fail adding layers | Tensian | OpenFOAM Meshing & Mesh Conversion | 2 | November 4, 2013 12:22 |