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

How to refine the edges?

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

Reply
 
LinkBack Thread Tools 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, 18 views)
Tomashek 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
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 2 November 25, 2012 09:54
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
snappyHexMesh aborting Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 0 November 10, 2010 04:23
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43


All times are GMT -4. The time now is 09:39.