Hallo zusammen,
ich versuche einen Schiffstank mit snappyhexmesh zu vernetzen.
Die boundery box habe ich angebeben, einen Punkt innerhalb der Geometrie auch. Die Vernetzung läuft ohne Fehlermeldung durch. Das Problem ist, dass die Zellen ausserhalb der Geometrie nicht wegfallen. Nach dem snappyhexmesh durchegelaufen ist, habe meine boundery box gleichmäßig vernetzt.
Kennt jemand das Problem?
Als Input dient ein STL, was aus einem 3D-DXF erstellt wurde. Mit Rhino habe ich einmal Flächen aus dem Linien erzeugt, in einem 2. Versuch habe ich noch ein Polygonnetz drüber gelegt. In beiden Fällen tritt das gleiche Problem auf.
Ich hoffe, jemand kennt eine Antwort.
Gruß
Benjamin
===========================================
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "/home/penfold/mattijs/foam/mattijs2.1/run/icoFoam";
case "cavity";
instance "system";
local "";
class dictionary;
object autoHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
castellatedMesh true;
snap true;
addLayers true;
geometry
{
cross01.stl
{
type triSurfaceMesh;
name cross01;
}
refinementBox
{
type searchableBox;
min (126.058 -19.830 0);
max (133.617 9.830 11.500);
}
};
castellatedMeshControls
{
maxLocalCells 10000000;
maxGlobalCells 50000000;
minRefinementCells 10;
nCellsBetweenLevels 2;
features
(
);
refinementSurfaces
{
cross01
{
level (2 2);
faceZone cross01;
cellZone cross01;
zoneInside true;
}
}
resolveFeatureAngle 60;
refinementRegions
{
refinementBox
{
mode inside;
levels ((1.0e9 2));
}
}
locationInMesh (127.000.000 -4.970 1.000);
}
snapControls
{
nSmoothPatch 3;
tolerance 4.0;
nSolveIter 30;
nRelaxIter 5;
}
addLayersControls
{
relativeSizes true;
layers
{
//flowAirDuctReagent_flowAirDuctReagent
//{
// nSurfaceLayers 1;
//}
//flowAirDuctReagent_inlet1
//{
// nSurfaceLayers 1;
//}
//flowAirDuctReagent_inlet2
//{
// nSurfaceLayers 1;
//}
}
expansionRatio 1.0;
finalLayerThickness 0.3;
minThickness 0.1;
nGrow 0;
featureAngle 30;
nRelaxIter 3;
nSmoothSurfaceNormals 1;
nSmoothNormals 3;
nSmoothThickness 10;
maxFaceThicknessRatio 0.5;
maxThicknessToMedialRatio 0.3;
minMedianAxisAngle 130;
nBufferCellsNoExtrude 0;
}
meshQualityControls
{
maxNonOrtho 65;
maxBoundarySkewness 20;
maxInternalSkewness 4;
maxConcave 80;
minFlatness 0.5;
minVol 0;
minArea -1;
minTwist 0.02;
minDeterminant 0.001;
minFaceWeight 0.02;
minVolRatio 0.01;
minTriangleTwist -1;
nSmoothScale 4;
errorReduction 0.75;
}
// Advanced
// Flags for optional output
// 0 : only write final meshes
// 1 : write intermediate meshes
// 2 : write volScalarField with cellLevel for postprocessing
// 4 : write current intersections as .obj files
debug 0;
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1E-6;
// ************************************************************************* //
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP