CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

bumpy on the surface of 3D wing in addlayer step with snappyHexMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 16, 2013, 01:58
Post bumpy on the surface of 3D wing in addlayer step with snappyHexMesh
  #1
New Member
 
Kim sung hwan
Join Date: Jul 2013
Posts: 1
Rep Power: 0
Kim sung hwan is on a distinguished road
Dear cfd-users,

i have tried making external mesh by running snappyHexMesh for simulating a OneraM6 wing. but i meet a problem the addlayer processing in snappyHexMesh. Until snapping, i got reasonable snapping results on the wing surface.

however, after addlayer step, i found some bumps between upper and lower level of refinement level. when i got uniform cells near a surface using distance refinement, i could
resolve this problem. but it makes too many total cells so, it's not efficient.

I have tried many parametric study, but i can't find the solution about this issue.


I attached four screenshots and below there's my snappyHexMeshDict.

I would appreciate any help for solve this problem.




Code:
/*--------------------------------*- C++ -*----------------------------------*\
|       o          |                                                          |
|    o     o       | HelyxOS                                                  |
|   o   O   o      | Version: v1.0.3                                           |
|    o     o       | Web:     http://www.engys.com                            |
|       o          |                                                          |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version 2.0;
    format ascii;
    class dictionary;
    location system;
    object snappyHexMeshDict;
}

    castellatedMesh true;
    snap true;
    addLayers true;
    geometry
    {
        M6.stl
        {
            type triSurfaceMesh;
            name M6;
        }

        box1
        {
            type searchableBox;
            min (-0.5 0.0 -0.5 );
            max (2.0 1.5 0.5 );
        }

    }

    castellatedMeshControls
    {
        features
        (
        
        {
            file "M6.eMesh";
            level 8;
        }

        );
        refinementSurfaces
        {
            M6
            {
                regions
                {
                }

                level (7 8 );
            }

        }

        refinementRegions
        {
            box1
            {
                mode inside;
                levels (( 1E5 3 ));
            }

        }

        locationInMesh (3.0 3.0 1.0 );
        maxLocalCells 1000000;
        maxGlobalCells 2000000;
        minRefinementCells 0;
        nCellsBetweenLevels 5;
        resolveFeatureAngle 5;
        allowFreeStandingZoneFaces false;
    }

    snapControls
    {
        nSolveIter 300;
        nSmoothPatch 3;
        tolerance 1.0;
        nRelaxIter 5;
        nFeatureSnapIter 10;
        implicitFeatureSnap false;
        explicitFeatureSnap true;
        multiRegionFeatureSnap false;
    }

    addLayersControls
    {
        layers
        {
            M6_ascii_io_exported_from_Pointwise
            {
                nSurfaceLayers 2;
            }

        }

        relativeSizes false;
        expansionRatio 1.1;
        finalLayerThickness 2.0E-4;
        minThickness 1.0E-5;
        nGrow 0;
        featureAngle 60;
        slipFeatureAngle 30;
        nRelaxIter 3;
        nSmoothSurfaceNormals 1;
        nSmoothNormals 3;
        nSmoothThickness 10;
        maxFaceThicknessRatio 0.8;
        maxThicknessToMedialRatio 0.3;
        minMedianAxisAngle 90;
        nBufferCellsNoExtrude 0;
        nLayerIter 50;
        nRelaxedIter 20;
    }

    meshQualityControls
    {
        maxNonOrtho 65;
        maxBoundarySkewness 20;
        maxInternalSkewness 4;
        maxConcave 80;
        minFlatness 0.5;
        minVol 1.00E-13;
        minTetQuality -1e30;
        minArea -1;
        minTwist 0.02;
        minDeterminant 0.001;
        minFaceWeight 0.02;
        minVolRatio 0.01;
        minTriangleTwist -1;
        nSmoothScale 4;
        errorReduction 0.75;
    }

    debug 0;
    mergeTolerance 1E-6;
Attached Images
File Type: jpg snap1.jpg (99.3 KB, 58 views)
File Type: jpg addlayer1.jpg (98.7 KB, 59 views)
File Type: jpg snap2.jpg (98.3 KB, 50 views)
File Type: jpg addlayer2.jpg (98.1 KB, 54 views)
Kim sung hwan is offline   Reply With Quote

Old   April 20, 2015, 23:06
Default Bumpy surfaces on snappyhexMesh
  #2
lav
New Member
 
Lavanya
Join Date: Mar 2015
Posts: 3
Rep Power: 2
lav is on a distinguished road
Hi,

Has this problem been resolved? I have done 2 things to remove the protruded surfaces.

1. Make the "allowfreestandingZonefaces" as true in snappyHexMesh Dict
2. On moving to higher number of cells, I could still see the bumpy surfaces , so I went to increase the "minTetQuality " in the meshQualitycontrols .

I am not sure if this the right point of looking at the problem. Is there any another better way of doing this ?
lav is offline   Reply With Quote

Old   April 21, 2015, 03:51
Default
  #3
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 226
Rep Power: 6
Artur is on a distinguished road
Hi,

Have you tried playing around with the snapping distance tolerance parameter? I've found it to be quite crucial for getting good mesh on and very near the body surface. Sadly I've had problems in getting the quality I want with different refinement levels as was the case in the original post...

Can you comment on the effect of the changes you've made?

All the best,

A
Artur is online now   Reply With Quote

Reply

Tags
addlayer, bumpy, refinement level, snappyhexmesh 3d, wing

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
snappyHexMesh Boundary Layer at Corner panpanzhong OpenFOAM Native Meshers: snappyHexMesh and Others 4 October 27, 2014 05:31
SnappyHexMesh AddLayer Control rdrr84 OpenFOAM Native Meshers: snappyHexMesh and Others 28 May 30, 2014 05:32
Missing elements near surface with snappyHexMesh jmf OpenFOAM Native Meshers: snappyHexMesh and Others 5 August 27, 2013 09:25
boundaries with gmshToFoam‏ ouafa Open Source Meshers: Gmsh, Netgen, CGNS, ... 7 May 21, 2010 12:43
Free surface of Step with VOF Azin Sharafeddin FLUENT 1 May 26, 2004 05:24


All times are GMT -4. The time now is 05:13.