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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2014, 05:36
Default need to improve my mesh, feature snapping doesn't fully work
  #1
Member
 
amine
Join Date: Jan 2014
Location: FRANCE
Posts: 84
Rep Power: 12
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, 26 views)
File Type: jpg bad mesh2.jpg (67.8 KB, 28 views)
aminem 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] No satisfying result with feature edge refinement Krapf OpenFOAM Meshing & Mesh Conversion 5 December 13, 2019 06:59
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] SHM: feature edge snapping not conforming thab OpenFOAM Meshing & Mesh Conversion 3 November 26, 2012 14:04
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 00:46.