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

[snappyHexMesh] How to refine the edges?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2013, 11:26
Default How to refine the edges?
  #1
New Member
 
Thomas
Join Date: May 2013
Posts: 2
Rep Power: 0
Tomashek is on a distinguished road
Hi!

I have a problem with sharp edges. Which parameters should I change to get a better mesh? As you can see the object is not mesh very well even If I change the snapControls parameters.



Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      autoHexMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap                 true;
addLayers         false;

geometry
{
   
    cube.stl
    {
        type triSurfaceMesh;
	name cube;
    }
};


castellatedMeshControls
{


    maxLocalCells 1500000;

    maxGlobalCells 2000000;

    minRefinementCells 0;

    nCellsBetweenLevels 2;

    features
    (
        {file "cube.eMesh"; level 2;}
    );



    refinementSurfaces
    {
        cube
        {
            
            level (1 2);

        }
    }

    resolveFeatureAngle 0;


    refinementRegions
    {
    }

    locationInMesh (2 2 2);

    allowFreeStandingZoneFaces true;
}



snapControls
{
    
    nSmoothPatch 15;
    
    tolerance 0.1;

    nSolveIter 300;

    nRelaxIter 15;
}



addLayersControls
{
  
    relativeSizes true;

   
    layers
    {
        
    }

    
    expansionRatio 1.1;
   
    finalLayerThickness 0.7;
  
    minThickness 0.1;
    
    nGrow 1;

    featureAngle 60;

    nRelaxIter 5;

    nSmoothSurfaceNormals 1;

    nSmoothNormals 3;

    nSmoothThickness 10;
  
    maxFaceThicknessRatio 0.9;

    maxThicknessToMedialRatio 0.9;


    minMedianAxisAngle 130;

    nBufferCellsNoExtrude 0;


    nLayerIter 50;

    nRelaxedIter 20;
}


meshQualityControls
{

    maxNonOrtho 65;

    maxBoundarySkewness 20;

    maxInternalSkewness 4;

    maxConcave 80;

    minFlatness 0.5;

    minVol 1e-13;

    minTetQuality 1e-30;

    minArea -1;

    minTwist 0.05;

    minDeterminant 0.001;

    minFaceWeight 0.05;

    minVolRatio 0.01;

    minTriangleTwist -1;



    nSmoothScale 4;

    errorReduction 0.75;



    relaxed
    {

        maxNonOrtho 75;
    }
}



debug 0;


mergeTolerance 1E-6;


// ************************************************************************* //
Attached Images
File Type: jpg 2.jpg (51.5 KB, 31 views)
Tomashek 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] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 11 February 20, 2024 09:12
[snappyHexMesh] SnappyHexMesh running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 7 June 14, 2022 01:37
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 17:16
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 03:21
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


All times are GMT -4. The time now is 08:18.