CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] snappyHexMesh addLayers questions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2021, 16:24
Default snappyHexMesh addLayers questions
  #1
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
Hello, I am trying to mesh a channel by snappyHexMesh for LES without wall function.
To capture small eddies near to the wall, which is crucial to prevent the velocity overshoot in velocity profile (caused by superstreaks) I am refining the mesh in near wall region in all three directions.
That's the idea... But when I go with delta_x+, delta_y+ and delta_z+ to 1, then I go crazy with total # of cells...
1.) So I am happy with corser cells but I WANT TO SPLIT the first cell layer in normal direction...
How can I do this? To remain whole mesh and just split the first layer? My idea was, to define boundary layer of two layers of total hight same als the first cell layer. But I have this feeling that snappy shift some cell layers over the boundary layer when I create them.
You can see that behaviour on my pictures. (oh...on the picture there is the boundary layer made by two layers with expansionRation 2 - this was my best solution to keep the cell hight in first two layers)

2.) How can I prevent to colapse the boundary layer in the corner please? I set featureAngle 180 but I am not happy :-)
Attached Images
File Type: png mod2_wobl.png (31.9 KB, 36 views)
File Type: png mod2_wbl.png (35.8 KB, 40 views)
delsolman is offline   Reply With Quote

Old   May 21, 2021, 17:48
Default
  #2
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
...could I have a additional question: is it possible to generate a boundary layer higher than one cell layer please? Let's say two times higher with 6 layers?
So higher than this one on the picture...
Attached Images
File Type: png mod3_wbl.png (31.3 KB, 33 views)
delsolman is offline   Reply With Quote

Old   May 24, 2021, 17:52
Default
  #3
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
I made some progress...
the key is to switch from medial-axis algorithm (default) to meshShrinker:

// maxThicknessToMedialRatio 0.3; //medial-axis
// minMedialAxisAngle 90; //medial-axis

meshShrinker displacementMotionSolver;
solver displacementLaplacian;
displacementLaplacianCoeffs
{
diffusivity quadratic inverseDistance (wall1 wall2 etc);
}
additional:
- in fvSolution:

solvers
{
cellDisplacement
{
solver GAMG;
smoother GaussSeidel;
tolerance 1e-7;
relTol 0.01;
}
}

- in fvSchemes:

gradSchemes
{
default Gauss linear;
}
laplacianSchemes
{
laplacian(diffusivity,cellDisplacement) Gauss linear corrected;
}

But could someone help me please how can I prevent collapsing of the boundary layer in the corner? I would really appreciate that... :-)
delsolman is offline   Reply With Quote

Old   May 24, 2021, 17:54
Default
  #4
New Member
 
Lukas Kutej
Join Date: Jan 2016
Location: Darmstadt
Posts: 20
Rep Power: 10
delsolman is on a distinguished road
see picture...
Attached Images
File Type: png shrinker.png (50.7 KB, 46 views)
delsolman is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
[snappyHexMesh] Mesh elements disappearing after processing snappyHexMesh (addLayers) maryCFD OpenFOAM Meshing & Mesh Conversion 5 December 8, 2016 13:33
[snappyHexMesh] some basic questions about snappyhexmesh fatemehfarshi62 OpenFOAM Meshing & Mesh Conversion 0 January 3, 2016 03:29
[snappyHexMesh] snappyHexMesh runs endless - I need general advise TeresaT OpenFOAM Meshing & Mesh Conversion 5 November 17, 2015 02:50
[snappyHexMesh] OFW10 snappyHexMesh Training Session Questions (follow up) chegdan OpenFOAM Meshing & Mesh Conversion 3 July 20, 2015 11:10


All times are GMT -4. The time now is 01:18.