CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Problem with snappyhexmesh and layers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2020, 12:16
Default Problem with snappyhexmesh and layers
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 400
Rep Power: 19
quarkz is on a distinguished road
Hi,

I'm trying to generate mesh for a 3d wing. I also wanted to add layers to resolve the viscous forces.

However, the mesh I got look quite bad. My configuration is as follows below. What must I change to get the layers surrounding the wall to be "nice"?

Code:
addLayersControls
{
    // Are the thickness parameters below relative to the undistorted
    // size of the refined cell outside layer (true) or absolute sizes (false).
    relativeSizes false;

    // Per final patch (so not geometry!) the layer information
    layers
    {
        //"(wing).*"
        wing_wall
	{
            nSurfaceLayers 3;
        }
    }

    // Expansion factor for layer mesh
    expansionRatio 1.2;

    // 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.
    
	firstLayerThickness 2e-5;

    // 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.1;
Attached Images
File Type: jpg Capture.JPG (92.8 KB, 17 views)

Last edited by quarkz; August 25, 2020 at 19:57.
quarkz is online now   Reply With Quote

Old   August 25, 2020, 22:06
Default
  #2
Member
 
Ardalan
Join Date: Jul 2012
Location: Atlanta, USA
Posts: 77
Rep Power: 13
Ardali is on a distinguished road
Hi,
Make the background mesh finer and make the resolution regionally finer.
increase the number of refinement in 'refinementBox'.


Good luck
Ardalan
Ardali is offline   Reply With Quote

Old   August 31, 2020, 23:09
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 400
Rep Power: 19
quarkz is on a distinguished road
Ok I will try, thanks!
quarkz is online now   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
[snappyHexMesh] Problem with skewd faces in SnappyHexMesh Friendly OpenFOAM Meshing & Mesh Conversion 1 June 19, 2019 07:05
[snappyHexMesh] Problem in results with snappyHexMesh between refinement levels Phil_WO OpenFOAM Meshing & Mesh Conversion 2 November 8, 2018 03:49
[snappyHexMesh] Old and busted: snappyHexMesh and add layers with edges Siassei OpenFOAM Meshing & Mesh Conversion 6 August 14, 2018 18:33
[snappyHexMesh] Triangular elements in boundary layers generated by snappyHexMesh mike.franky OpenFOAM Meshing & Mesh Conversion 0 June 3, 2018 09:46
[snappyHexMesh] 2D snappyHexMesh with layers grjmell OpenFOAM Meshing & Mesh Conversion 2 May 27, 2013 12:00


All times are GMT -4. The time now is 11:20.