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

[snappyHexMesh] Difficulty snapping to interface between model and symmetry plane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2014, 12:28
Default Difficulty snapping to interface between model and symmetry plane
  #1
New Member
 
Join Date: May 2012
Posts: 1
Rep Power: 0
Pappy is on a distinguished road
I am having difficulty figuring out the correct settings for snappyhexmesh to get a well defined and fit mesh to the interface between the symmetry plane and the stl model.

The symmetry plane is created by the initial blockmesh command and the stl file interfaces with this block. Below are pictures of that interface and it is becoming very stagey and jagged. The rest of the mesh(internal mesh on the model) fits quite well.

The featureextract tooL doesn't really help me here because the problem edge is not created until snappyhexmesh fills and fits the domain.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
|       o          |                                                          |
|    o     o       | HELYX-OS                                                  |
|   o   O   o      | Version: v2.0.1                                           |
|    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
    {
        RA3stlrepaired.stl
        {
            type triSurfaceMesh;
            name RA3stlrepaired;
        }

        box
        {
            type searchableBox;
            min ( -400.0 900.0 1700.0 );
            max ( 3800.0 1600.0 8000.0 );
        }

        box0
        {
            type searchableBox;
            min ( 3400.0 0.0 800.0 );
            max ( 3813.0 900.0 4000.0 );
        }

        box1
        {
            type searchableBox;
            min ( 2200.0 0.0 2500.0 );
            max ( 3400.0 900.0 5000.0 );
        }

        box2
        {
            type searchableBox;
            min ( 3500.0 1600.0 5000.0 );
            max ( 3813.0 2800.0 8000.0 );
        }

    }

    castellatedMeshControls
    {
        features
        (
        );
        refinementSurfaces
        {
            RA3stlrepaired
            {
                regions
                {
                    patch
                    {
                        level ( 3 6 );
                    }

                }

                level ( 0 0 );
            }

        }

        refinementRegions
        {
            box
            {
                mode inside;
                levels (( 1E5 2 ));
            }

            box0
            {
                mode inside;
                levels (( 1E5 2 ));
            }

            box1
            {
                mode inside;
                levels (( 1E5 2 ));
            }

            box2
            {
                mode inside;
                levels (( 1E5 2 ));
            }

        }

        locationInMesh ( 0 0 0);
        maxLocalCells 1000000;
        maxGlobalCells 2000000;
        minRefinementCells 10;
        nCellsBetweenLevels 2;
        resolveFeatureAngle 45.0;
        allowFreeStandingZoneFaces false;
    }

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

    addLayersControls
    {
        layers
        {
            RA3stlrepaired_patch
            {
                nSurfaceLayers 0;
            }

        }

        relativeSizes true;
        expansionRatio 1.15;
        finalLayerThickness 0.3;
        minThickness 0.01;
        nGrow 0;
        featureAngle 180;
        slipFeatureAngle 30;
        nRelaxIter 3;
        nSmoothSurfaceNormals 1;
        nSmoothNormals 3;
        nSmoothThickness 10;
        maxFaceThicknessRatio 0.7;
        maxThicknessToMedialRatio 0.3;
        minMedianAxisAngle 90;
        nBufferCellsNoExtrude 0;
        nLayerIter 50;
        nRelaxedIter 20;
        minMedialAxisAngle 80;
    }

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

    debug 0;
    mergeTolerance 1.0E-6;
The third picture is an internal cut away within the mesh, there you can see that snappyhexmesh has match the surface pretty good. The only issue is on the edge of the mesh domain(where the symmetry plane is located).

Thanks
Pappy 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 14:32
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44


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