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

[snappyHexMesh] Failed to add layers on my FSAE car :(

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2021, 05:05
Default Failed to add layers on my FSAE car :(
  #1
New Member
 
Pablo
Join Date: Aug 2021
Posts: 3
Rep Power: 2
aerobro is on a distinguished road
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;

}
Attached Images
File Type: jpg car.JPG (45.4 KB, 8 views)
aerobro is offline   Reply With Quote

Old   August 29, 2021, 04:25
Default
  #2
New Member
 
Join Date: Aug 2021
Posts: 6
Rep Power: 2
oryx is on a distinguished road
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.
oryx is offline   Reply With Quote

Old   August 29, 2021, 09:38
Default
  #3
New Member
 
Pablo
Join Date: Aug 2021
Posts: 3
Rep Power: 2
aerobro is on a distinguished road
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
);

// ************************************************** *********************** //
Attached Images
File Type: jpg mesh.JPG (86.6 KB, 6 views)
aerobro is offline   Reply With Quote

Reply

Tags
boundarylayer, layers, meshing, openfoam, snappyhesmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Add Layers in snappyHexMesh shchepan OpenFOAM Meshing & Mesh Conversion 24 May 14, 2020 13:29
[snappyHexMesh] Add Layers around a submarine rubenparedes OpenFOAM Meshing & Mesh Conversion 0 July 16, 2019 10:27
GAMG crash fxzf OpenFOAM Running, Solving & CFD 6 June 5, 2018 06:09
Add layers on the whole surface Emanueledes OpenFOAM 10 December 19, 2017 15:40
[snappyHexMesh] I wonder, how do I mesh a car? MadsR OpenFOAM Meshing & Mesh Conversion 0 May 2, 2011 16:39


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