|
[Sponsors] |
[snappyHexMesh] increase y+ with SnappyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 14, 2018, 07:53 |
increase y+ with SnappyHexMesh
|
#1 |
New Member
stergiani
Join Date: Mar 2017
Posts: 9
Rep Power: 9 |
Hei!
I have read a lot of relative posts, but i haven't managed to solve my problem, so I need some help I'm using k-epsilon turbulence model with SWF in order to model pressure around a building. My mesh is quite fine and I get y+ values lower than 300. Buuut, they are not in the range 30<y+<300, my minimum y+=3 I use SnappyHexMesh, but I haven't managed to increase the y+ values. I have read that the first cell size is defined by number of Surface layers, final layer thickness and expansion ratio. I have tried to increase the expansion ratio and finalLayerThickness but I failed. Should I have relative sizes to 'true' and try to increase the minThickness? Code:
// Settings for the layer addition. addLayersControls { relativeSizes false; // Per final patch (so not geometry!) the layer information layers { z_ { nSurfaceLayers 5; } targetBuilding_buildingObjects { nSurfaceLayers 5; } /* otherBuildings_wall { nSurfaceLayers 1; } */ } // Expansion factor for layer mesh expansionRatio 1.0; //- 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. // finalLayerRatio 0.7; finalLayerThickness 0.1; //- 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. minThickness 0.01; //- 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. nGrow 1; Stergiani |
|
August 14, 2018, 09:29 |
|
#2 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Hi!
Try with firstLayerThickness instead of finalLayerThickness. So you can define the thickness of the 1st layer directly. |
|
August 15, 2018, 03:01 |
|
#3 |
New Member
stergiani
Join Date: Mar 2017
Posts: 9
Rep Power: 9 |
Hei!
Thanks for the reply simrego! I tried it but i still get min y+ around 2. the max is okay, around 200 I calculated the y+ from the calculator https://www.cfd-online.com/Tools/yplus.php Would it be better to turn the relativeSizes to 'true'? And the minThickness can be a lower value or should be the same? I'm a bit confused Thanks anyway Stergiani |
|
August 15, 2018, 03:24 |
|
#4 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
These y+ calculators are good for an initial guess, but since y+ depends on local variables, it won't be correct on the whole domain.
To get the proper y+ (in your case 30<y+<300) everywhere is nearly impossible in most of the cases. relativeSizes just set the BL thickness relative to the 1st cell near the wall. With relativeSizes it is more difficult to control the BL thickness, but sometimes snappy can create a better quality BL with it. Check where do you have this really small y+. Then you can create larger layer on these regions, but then you will need a new sHMDict, new mesh, new run, and check again. So it'll be a long loop. Or you can use a blended wall function (check wall functions) which will switch based on the y+. Edit: But if you check where is this small y+ region, and if it is "small" and far from the interesting region, and your results seems to be reliable or you can compare your results with measurements or hand calculations, then you could say that you results are fine with some uncertainty. |
|
August 15, 2018, 03:31 |
|
#5 |
New Member
stergiani
Join Date: Mar 2017
Posts: 9
Rep Power: 9 |
Thanks, I'll check that
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CAD formats] Creating waterproof STL using snappyHexMesh or salome | Tobi | OpenFOAM Meshing & Mesh Conversion | 58 | May 13, 2020 06:01 |
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing | peterhess | OpenFOAM Meshing & Mesh Conversion | 2 | January 3, 2018 02:54 |
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. | jasv | OpenFOAM Meshing & Mesh Conversion | 4 | May 10, 2016 02:55 |
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? | klausb | OpenFOAM Meshing & Mesh Conversion | 1 | March 7, 2015 11:55 |
[snappyHexMesh] stitchMesh and snappyHexMesh | gdbaldw | OpenFOAM Meshing & Mesh Conversion | 0 | December 23, 2009 02:09 |