CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Failed to add layers on my FSAE car :( (https://www.cfd-online.com/Forums/openfoam-meshing/237914-failed-add-layers-my-fsae-car.html)

aerobro August 12, 2021 04:05

Failed to add layers on my FSAE car :(
 
1 Attachment(s)
Hey guys! I'm using snappyHexMesh to mesh FSAE racecar. My problem comes in the layer addition process, so that the layers are created only on the ground but not over the car's surface.

I leave the addLayersControls code down here. Every help is welcomed!! :)

addLayersControls
{

relativeSizes false;

layers
{
ground { nSurfaceLayers 10; }
chassis { nSurfaceLayers 10; }
diffuser { nSurfaceLayers 10; }
FW { nSurfaceLayers 10; }
latVenturi { nSurfaceLayers 10; }
wheels { nSurfaceLayers 10; }
}

expansionRatio 1.46;
finalLayerThickness 0.00138;
minThickness 0.00001;
nGrow 0;
featureAngle 180;
slipFeatureAngle 75;
nRelaxIter 12;
nSmoothSurfaceNormals 1;
nSmoothNormals 5;
nSmoothThickness 10;
maxFaceThicknessRatio 0.55;
maxThicknessToMedialRatio 0.35;
minMedianAxisAngle 90;
nBufferCellsNoExtrude 0;
nLayerIter 40;

}

oryx August 29, 2021 03:25

Please include the full snappyHexMeshDict. Also, it might help if you included a full snapshot of the mesh, the picture you included is not indicating much.

aerobro August 29, 2021 08:38

1 Attachment(s)
This is the snappyHexMeshDict (+snapshot below of the front part of the car), as you can see the layers are not created on the car's surfaces but they are on the ground:


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

lowSurfRef (7 7);
stdSurfRef (7 7);
highSurfRef (7 7);

castellatedMesh true;
snap true;
addLayers true;

geometry
{
FS
{
type triSurfaceMesh;
file "FS.stl";

regions
{
chassis { name chassis; }
diffuser { name diffuser; }
FW { name FW; }
latVenturiMishimoto { name latVenturi; }
wheels { name wheels; }

}
}

refinementBoxLower
{
type searchableBox;
min (-1.5 -1.0 0.0);
max ( 5.5 1.0 0.65);
}

refinementBoxUpper
{
type searchableBox;
min (-0.15 -0.7 0.65);
max ( 5.0 0.7 1.7);
}
};

castellatedMeshControls
{

maxLocalCells 40000000;
maxGlobalCells 200000000;
minRefinementCells 10;
maxLoadUnbalance 0.20;
nCellsBetweenLevels 2;

features
(
{
file "FS.eMesh";
level 0;
}
);

refinementSurfaces
{
FS
{

level (2 2);

patchInfo
{
type wall;
inGroups (FSGroup);
}

regions
{
chassis { level $stdSurfRef; }
diffuser { level $highSurfRef; }
FW { level $highSurfRef; }
latVenturi { level $highSurfRef; }
wheels { level $highSurfRef; }
}

}
}

resolveFeatureAngle 30;

refinementRegions
{
refinementBoxLower
{
mode inside;
levels ((1E15 5));
}

refinementBoxUpper
{
mode inside;
levels ((1E15 $levelBoxRef));
}
}

locationInMesh (3.0001 3.0001 0.43);
allowFreeStandingZoneFaces true;

}

snapControls
{

nSmoothPatch 6;
tolerance 2.0;
nSolveIter 150;
nRelaxIter 8;

nFeatureSnapIter 10;
implicitFeatureSnap false;
explicitFeatureSnap true;
multiRegionFeatureSnap false;
}

addLayersControls
{

relativeSizes false;

layers
{

ground { nSurfaceLayers 10; }
chassis { nSurfaceLayers 10; }
diffuser { nSurfaceLayers 10; }
FW { nSurfaceLayers 10; }
latVenturi { nSurfaceLayers 10; }
wheels { nSurfaceLayers 10; }

}

expansionRatio 1.46;
finalLayerThickness 0.00138;
minThickness 0.00001;
nGrow 0;
featureAngle 180;
slipFeatureAngle 75;
nRelaxIter 12;
nSmoothSurfaceNormals 1;
nSmoothNormals 5;
nSmoothThickness 10;
maxFaceThicknessRatio 0.55;
maxThicknessToMedialRatio 0.35;
minMedianAxisAngle 90;
nBufferCellsNoExtrude 0;
nLayerIter 40;

}

meshQualityControls
{
#include "meshQualityDict"
nSmoothScale 4;
errorReduction 0.75;
}

writeFlags
(
scalarLevels
layerSets
layerFields
);

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


All times are GMT -4. The time now is 10:33.