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

[snappyHexMesh] Chaotic sHM layering

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2017, 16:46
Default Chaotic sHM layering
  #1
Member
 
badoumba
Join Date: Aug 2013
Posts: 68
Rep Power: 13
badoumba is on a distinguished road
Hi people!

I am struggling to get my layers properly meshed in a complex geometry.

- picture a shows some weird bridges in the middle of...nothing.
- picture b shows no creation of layers at corners all even with featureAngle set to 180.

Here are my sHM settings

Code:
castellatedMeshControls
{
    maxLocalCells 10000000;
    maxGlobalCells 2000000;
    minRefinementCells 10;
    maxLoadUnbalance 0.10;
    nCellsBetweenLevels 5;

    features
    (
        {
            file "verso.eMesh";
            level 8;
        }
    );

    refinementSurfaces
    {
        verso_wall
        {
            level (6 7);
            patchInfo
            {
                type wall;
            }
        }
    }
    resolveFeatureAngle 60;


    refinementRegions
    {
        verso_wall
        {
            mode distance;
            levels ((0.1 6)(0.25 5));
        }

...
        
    }
Code:
addLayersControls
{
    relativeSizes false;
    layers
    {
        verso_wall
        {
            nSurfaceLayers 10;
        }
    }
    expansionRatio                  1.3;
    firstLayerThickness             0.0002;
    //finalLayerThickness             0.5;
    //thickness                       0.01;
    
    minThickness                    0.0002;
    nGrow                             0;

    featureAngle                     180;
    slipFeatureAngle                 80;
    nRelaxIter                        5;
    nSmoothSurfaceNormals             1;
    nSmoothNormals                    3;
    nSmoothThickness                 10;
    maxFaceThicknessRatio           0.5;
    maxThicknessToMedialRatio       0.3;
    minMedianAxisAngle               90;
    nBufferCellsNoExtrude             0;
    nLayerIter                       50;

}
Thanks for any suggestion!
Attached Images
File Type: jpg a.jpg (120.0 KB, 35 views)
File Type: jpg b.jpg (181.4 KB, 34 views)
badoumba is offline   Reply With Quote

Old   March 15, 2017, 18:59
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
Are you sure, that what you see are not artifacts of paraview? In the settings before actually reading the file, uncheck the split polyhedral setting.
jherb is offline   Reply With Quote

Old   March 15, 2017, 21:01
Default
  #3
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25
me3840 is on a distinguished road
I'm not really sure about the bridge, that looks odd, never seen anything like that.

However I would highly recommend these two things:
1. Use relative sizes for the prism mesh. They are much more robust.
2. Avoid changing surface sizes on a single surface - if you can force the surface to be all one size or over 2 sizes snappy has an easier time making prisms.
me3840 is offline   Reply With Quote

Old   March 16, 2017, 08:02
Default
  #4
Member
 
badoumba
Join Date: Aug 2013
Posts: 68
Rep Power: 13
badoumba is on a distinguished road
@jherb

I don't have the screenshot here but I double checked the view settings in paraView. Didn't change anything.

@me3840
I like to have absolute size for the layers to keep a very precise control as I am running a Low-Re simulation (the layers covering the boundary layer and the first layer according to the targeted y+)

I agree for the consistent size over a surface. cfMesh is working this way and the layers are now perfect.

KateEisenhower suggested gmsh to be even more accurate. But I have very dense stl files and the GUI of gmsh can hardly support it on my laptop.
badoumba is offline   Reply With Quote

Old   March 16, 2017, 08:08
Default
  #5
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hi all,

Just for the record, I didn't say that gmsh is more accurate than cfMesh. Only for the models I am simulating, I think it's easier to create a structured mesh with gmsh than deal with the layers in cfMesh.

Sorry if there was a misunderstanding in our PMs.

Best regards;

Kate
KateEisenhower is offline   Reply With Quote

Old   March 16, 2017, 08:14
Default
  #6
Member
 
badoumba
Join Date: Aug 2013
Posts: 68
Rep Power: 13
badoumba is on a distinguished road
No problem, my apologies.
badoumba 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
[snappyHexMesh] different sHM results on same geometry when everythin is in one or several stl-files. Laika OpenFOAM Meshing & Mesh Conversion 1 September 8, 2016 05:09
[snappyHexMesh] 2D AMI Moving Mesh with sHM; How hard can this be? ADGlassby OpenFOAM Meshing & Mesh Conversion 18 June 18, 2013 07:07
[snappyHexMesh] SHM: feature edge snapping not conforming thab OpenFOAM Meshing & Mesh Conversion 3 November 26, 2012 15:04
[snappyHexMesh] troubles with sHM and parallel Tobi OpenFOAM Meshing & Mesh Conversion 1 August 30, 2012 18:54
[snappyHexMesh] Multi Region Meshing with sHM marango OpenFOAM Meshing & Mesh Conversion 3 March 27, 2012 01:51


All times are GMT -4. The time now is 00:09.