hello everyone, right now I am currently using snappyhexmesh to generate a mesh model for a chicken barn, but the front of my mesh is missing and I don’t know why, can someone please help me? it’s not letting me add pics but here are two error I have been getting when I ran snappy:
→ FOAM Warning : Displacement (4.4896073e-05 9.9061227e-08 1.2474743e-05) at mesh point 0 coord (-9.082301e-05 9984.0436 -94000) points through the surrounding patch faces
Smoothing displacement …
Iteration 0
Iteration 10
Iteration 20
Iteration 30
Iteration 40
Displacement smoothed in = 4.84 s
→ FOAM Warning :
From void Foam::snappySnapDriver::doSnap(const dictionary &, const dictionary &, const meshRefinement::FaceMergeType, const scalar, const scalar, const snapParameters &)
in file snappyHexMeshDriver/snappySnapDriver.C at line 2906
Did not successfully snap mesh. Continuing to snap to resolve easy
surfaces but the resulting mesh will not satisfy your quality constraints
also here’s my snappyhexmesh dict --------------------------------- C++ -----------------------------------
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 2312 |
| \ / A nd | Website: www.openfoam.com |
| \/ M anipulation | |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Which of the steps to run
castellatedMesh true;
snap true;
addLayers false;
// Geometry definitions
geometry
{
inlet.stl { type triSurfaceMesh; name inlet; }
outlet.stl { type triSurfaceMesh; name outlet; }
walls.stl { type triSurfaceMesh; name walls; }
volume.stl {type triSurfaceMesh; name volume;}
refinementBox
{
type searchableBox;
min (9 2 -95);
max (19 12 -75);
}
};
// Castellated mesh control settings
castellatedMeshControls
{
maxLocalCells 2000000;
maxGlobalCells 4000000;
minRefinementCells 10;
maxLoadUnbalance 0.10;
nCellsBetweenLevels 1;
features
(
{ file "inlet.eMesh"; level 3; }
{ file "outlet.eMesh"; level 3; }
{ file "walls.eMesh"; level 3; }
);
refinementSurfaces
{
inlet { level (0 0); }
outlet { level (0 0); }
walls { level (3 3); }
}
resolveFeatureAngle 80;
refinementRegions
{volume {mode distance; levels ((0.002 5) (0.01 4) (0.1 3));}} // was ((0.001 4) (0.003 3) (0.01 2))
levels ((0.002 5) (0.01 4) (0.1 3)
locationInMesh (15 8 -90);
allowFreeStandingZoneFaces true;
}
// Snapping settings
snapControls
{
nSmoothPatch 3;
tolerance 1.5;
nSolveIter 50;
nRelaxIter 5;
nFeatureSnapIter 50;
implicitFeatureSnap false;
explicitFeatureSnap true;
multiRegionFeatureSnap false;
}
// Layer addition settings
addLayersControls
{
relativeSizes false;
layers
{
walls { nSurfaceLayers 3; }
}
expansionRatio 1.3;
finalLayerThickness 0.00016;
minThickness 0.00008;
nGrow 0;
featureAngle 80;
nRelaxIter 3;
nSmoothSurfaceNormals 1;
nSmoothNormals 3;
nSmoothThickness 10;
maxFaceThicknessRatio 0.5;
maxThicknessToMedialRatio 0.3;
minMedialAxisAngle 130;
nBufferCellsNoExtrude 0;
nLayerIter 50;
}
// Mesh quality controls
meshQualityControls
{
maxNonOrtho 65;
maxBoundarySkewness 10;
maxInternalSkewness 2;
maxConcave 90;
minFlatness 0.5;
minVol 1e-13;
minTetQuality 1e-9;
minArea -1;
minTwist 0.02;
minDeterminant 0.001;
minFaceWeight 0.02;
minVolRatio 0.01;
minTriangleTwist -1;
nSmoothScale 4;
errorReduction 0.75;
}
debug 0;
mergeTolerance 1E-6;
// ************************************************************************* //
thank you!!!