CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

snappyHexMesh boundary layer collapsing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2024, 03:22
Default snappyHexMesh boundary layer collapsing
  #1
New Member
 
Join Date: Sep 2023
Posts: 1
Rep Power: 0
lolagony is on a distinguished road
Im investigating a T-Junction. Trying to resolve the boundary layer i get weird behaviour of the layers around the edges. Does anyone have a suggestion which parameters of the snappyHexMeshDict i should play with? Or does anyone see another way of meshing opensourcewise (mesh needs to be compatible with OpenFOAM)?



/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Which of the steps to run
castellatedMesh true;
snap true;
addLayers true;

// Geometry. Definition of all surfaces. All surfaces are of class
// searchableSurface.
geometry
{
miniChannelWand.stl
{
type triSurfaceMesh;
name miniChannelWand;
}

miniChannelUnten.stl
{
type triSurfaceMesh;
name miniChannelUnten;
}

manifoldLinks.stl
{
type triSurfaceMesh;
name manifoldLinks;
}

manifoldRechts.stl
{
type triSurfaceMesh;
name manifoldRechts;
}

manifoldLinksWand.stl
{
type triSurfaceMesh;
name manifoldLinksWand;
}

manifoldRechtsWand.stl
{
type triSurfaceMesh;
name manifoldRechtsWand;
}
}

// Settings for the castellatedMesh generation.
castellatedMeshControls
{
maxLocalCells 100000000;
maxGlobalCells 200000000;
minRefinementCells 10;
maxLoadUnbalance 0.10;
nCellsBetweenLevels 10;

features
(
{
file "miniChannelWand.eMesh";
level 0;
}
{
file "miniChannelUnten.eMesh";
level 0;
}
{
file "manifoldLinks.eMesh";
level 0;
}
{
file "manifoldRechts.eMesh";
level 0;
}
{
file "manifoldLinksWand.eMesh";
level 0;
}
{
file "manifoldRechtsWand.eMesh";
level 0;
}
);

refinementSurfaces
{
miniChannelWand
{
level (2 2);
}

miniChannelUnten
{
level (0 0);
}

manifoldLinks
{
level (0 0);
}

manifoldRechts
{
level (0 0);
}
manifoldLinksWand
{
level (2 2);
}
manifoldRechtsWand
{
level (2 2);
}
}

resolveFeatureAngle 30;
planarAngle 30;

refinementRegions
{
}

locationInMesh (0.25 0 0);
allowFreeStandingZoneFaces true;
extendedRefinementSpan true;
}

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

addLayersControls
{
relativeSizes false;
expansionRatio 1.2;
firstLayerThickness 0.000005;
//thickness 0.0005;
minThickness 0.000001;

layers
{
miniChannelWand
{
nSurfaceLayers 20;
}
manifoldLinksWand
{
nSurfaceLayers 20;
}
manifoldRechtsWand
{
nSurfaceLayers 20;
}
}

nGrow 0;
featureAngle 130;
maxFaceThicknessRatio 0.5;
nSmoothSurfaceNormals 1;
nSmoothThickness 10;
minMedialAxisAngle 90;
maxThicknessToMedialRatio 0.3;
nSmoothNormals 3;
slipFeatureAngle 30;
nRelaxIter 5;
nBufferCellsNoExtrude 0;
nLayerIter 50;
nRelaxedIter 20;
}

meshQualityControls
{
#include "meshQualityDict"

relaxed
{
maxNonOrtho 75;
}
}

mergeTolerance 1e-6;
Attached Images
File Type: jpg T1.jpg (151.8 KB, 2 views)
File Type: jpg T2.jpg (132.5 KB, 2 views)
lolagony 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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
Radiation interface hinca CFX 15 January 26, 2014 17:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
[snappyHexMesh] Boundary layer in a pipe Clementhuon OpenFOAM Meshing & Mesh Conversion 6 March 12, 2012 12:41
errors Fahad Main CFD Forum 0 March 23, 2004 13:20


All times are GMT -4. The time now is 20:28.