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

need to improve my mesh, feature snapping doesn't fully work

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 16, 2014, 06:36
Default need to improve my mesh, feature snapping doesn't fully work
  #1
Member
 
amine
Join Date: Jan 2014
Location: FRANCE
Posts: 73
Rep Power: 4
aminem is on a distinguished road
Dear,
I need your help to improve my mesh
You can see a problematic mesh in picture
My snappyHexMesh file
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

        cuve2.stl
        {
            type triSurfaceMesh;
            name cuve2;
        }

        cuve3.stl
        {
            type triSurfaceMesh;
            name cuve3;
        }

        H3.stl
        {
            type triSurfaceMesh;
            name H3;
        }

        H4.stl
        {
            type triSurfaceMesh;
            name H4;
        }

        shaft.stl
        {
            type triSurfaceMesh;
            name shaft;
        }

    }

    castellatedMeshControls
    {
        features
        (
        {
            file "H3.eMesh";
            levels ((0.01 3));
        }

        {
            file "H4.eMesh";
            levels ((0.01 3));
        }

        );
        refinementSurfaces
        {
            cuve1
            {
                level ( 1 1 );
            }

            cuve2
            {
                level ( 1 1 );
            }

            cuve3
            {
                level ( 1 1 );
            }

            H3
            {
                level ( 2 2 );
            }

            H4
            {
                level ( 2 2 );
            }

            shaft
            {
                level ( 2 2 );
            }

        }

        refinementRegions
        {
        }

        locationInMesh ( 0 0 0);
        maxLocalCells 100000;
        maxGlobalCells 2000000;
        minRefinementCells 0;
        nCellsBetweenLevels 1;
        resolveFeatureAngle 30.0;
        allowFreeStandingZoneFaces true;
        planarAngle 30;
        maxLoadUnbalance 0.1;
    }

    snapControls
    {
        nSolveIter 30;
        nSmoothPatch 3;
        tolerance 2.0;
        nRelaxIter 5;
        nFeatureSnapIter 10;
        implicitFeatureSnap true;
        explicitFeatureSnap true;
        multiRegionFeatureSnap true;
    }

    addLayersControls
    {
        layers
        {
            cuve2
            {
                nSurfaceLayers 3;
            }

            cuve3
            {
                nSurfaceLayers 3;
            }

            H3
            {
                nSurfaceLayers 3;
            }

            H4
            {
                nSurfaceLayers 3;
            }

            shaft
            {
                nSurfaceLayers 3;
            }

        }

        relativeSizes true;
        expansionRatio 1.0;
        finalLayerThickness 0.3;
        minThickness 0.25;
        nGrow 0;
        featureAngle 130;
        slipFeatureAngle 30;
        nRelaxIter 5;
        nSmoothSurfaceNormals 1;
        nSmoothNormals 3;
        nSmoothThickness 10;
        maxFaceThicknessRatio 0.5;
        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.0E-13;
        minTetQuality 1.0E-15;
        minArea -1.0;
        minTwist 0.02;
        minDeterminant 0.001;
        minFaceWeight 0.05;
        minVolRatio 0.01;
        minTriangleTwist -1.0;
        nSmoothScale 4;
        errorReduction 0.75;
    }

    debug 0;
    mergeTolerance 1.0E-6;
    autoBlockMesh false;
Thanks
Attached Images
File Type: jpg bad mesh1.jpg (57.4 KB, 23 views)
File Type: jpg bad mesh2.jpg (67.8 KB, 25 views)
aminem is offline   Reply With Quote

Reply

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
problems generating clean mesh Christian_tt OpenFOAM Native Meshers: snappyHexMesh and Others 0 May 16, 2014 10:58
Improving prism mesh me3840 OpenFOAM Native Meshers: snappyHexMesh and Others 2 April 2, 2014 04:37
SHM: feature edge snapping not conforming thab OpenFOAM Native Meshers: snappyHexMesh and Others 3 November 26, 2012 15:04
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 15:21.