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

[snappyHexMesh] Facing challenges with snappyHexMeshDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2024, 04:48
Default Facing challenges with snappyHexMeshDict
  #1
New Member
 
Dereje Arijamo
Join Date: Apr 2024
Posts: 1
Rep Power: 0
t112a89403@ntut.org.tw is on a distinguished road
I hope you are all fine and doing well. I have one issue with meshing and it is stated below.

I am meshing NACA0015 using snappyHexMeshDict, but the wall (edge) of the airfoil edge becomes deformed once the mesh is refined. I am not that much an expert in snappyHexMesh, so I am looking for your help. As well as my snappyHexMeshDict code, I have attached the image that came from Paraview.


Thank you!!!

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


castellatedMesh true;
snap true;
addLayers true;


geometry
{
wing
{
type triSurfaceMesh;
file "wing.obj";
}

refinementBox
{
type searchableBox;
min (-1 -1 -0.1875);
max ( 3.5 1 0.1875);
}
}

castellatedMeshControls
{
maxLocalCells 250000000;

maxGlobalCells 500000000;

minRefinementCells 0;

nCellsBetweenLevels 8;

maxLoadUnbalance 0.1;

features
( );

resolveFeatureAngle 60;

refinementSurfaces
{
wing
{
// Surface-wise min and max refinement level
level (6 8);
}
}

locationInMesh (1.25 0.5 0.025);

refinementRegions
{
refinementBox
{
mode inside;
levels ((1e15 2));
}
}

allowFreeStandingZoneFaces true;
}


snapControls
{
nSmoothPatch 3;

tolerance 2.0;

nSolveIter 100;

nRelaxIter 5;

//nFeatureSnapIter 5;
}


addLayersControls
{
relativeSizes false;

layers
{
wing
{
nSurfaceLayers 4;
}
}

expansionRatio 1.3;

finalLayerThickness 0.003125;

minThickness 0.00000001;

nGrow 0;

featureAngle 60;

nRelaxIter 5;

nSmoothSurfaceNormals 1;

nSmoothNormals 3;

nSmoothThickness 8;

maxFaceThicknessRatio 0.5;

maxThicknessToMedialRatio 0.3;

minMedianAxisAngle 90;

nBufferCellsNoExtrude 0;

nLayerIter 50;
}


meshQualityControls
{
maxNonOrtho 65;

maxBoundarySkewness 20;

maxInternalSkewness 4;

maxConcave 80;

minVol 1E-13;

minTetQuality 1E-30;

minArea 1E-13;

minTwist 0.05;

minDeterminant 0.001;

minFaceWeight 0.05;

minVolRatio 0.01;

minTriangleTwist -1;


//Advanced
nSmoothScale 4;

errorReduction 0.8;
}


//Advanced
debug 0;

mergeTolerance 1E-06;


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Attached Images
File Type: png 3.PNG (112.9 KB, 4 views)
File Type: jpg 2.jpg (159.9 KB, 5 views)
File Type: png 1.PNG (21.6 KB, 4 views)
t112a89403@ntut.org.tw 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
Long simulation time (Backward Facing Step) nskelly OpenFOAM Running, Solving & CFD 3 March 6, 2018 11:59
facing problem with udf sachin61091 Fluent UDF and Scheme Programming 0 January 14, 2016 02:10
[snappyHexMesh] How to define the computational region with snappyHexMeshDict xurenyi OpenFOAM Meshing & Mesh Conversion 3 June 12, 2014 10:20
Fluent and backwards facing step Ben Sellars Main CFD Forum 2 February 3, 2007 13:36
backward facing step ryoga Main CFD Forum 1 March 9, 2003 03:52


All times are GMT -4. The time now is 02:51.