snappyHexMeshを実行すると以下のエラーが出てコアダンプしてしまいます.
blockMeshまではエラーなくメッシュが切れました.
snappyHexMeshDictの記述に問題がありそうなのですが,
問題箇所が特定できずにおります.
どなたか解決法をご存知の方がいらっしゃいましたらご教授お願いします.
----------------------------------------------------------------------------------------------------------
Create time
Create mesh for time = 0
Read mesh in = 0.1 s
Overall mesh bounding box : (-0.4 0 -0.2) (0 0.15 0.2)
Relative tolerance : 1e-06
Absolute matching distance : 5.85235e-07
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 yyFlexLexer::yy_get_previous_state() in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libsurfMesh.so"
#4 STLLexer::lex() in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libtriSurface.so"
#5 Foam::triSurface::readSTLASCII(Foam::fileName const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libtriSurface.so"
#6 Foam::triSurface::readSTL(Foam::fileName const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libtriSurface.so"
#7 Foam::triSurface::read(Foam::fileName const&, Foam::word const&, bool) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libtriSurface.so"
#8 Foam::triSurface::triSurface(Foam::fileName const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libtriSurface.so"
#9 Foam::triSurfaceMesh::triSurfaceMesh(Foam::IOobject const&, Foam::dictionary const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#10 Foam::searchableSurface::adddictConstructorToTable<Foam::triSurfaceMesh>::New(Foam::IOobject const&, Foam::dictionary const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#11 Foam::searchableSurface::New(Foam::word const&, Foam::IOobject const&, Foam::dictionary const&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#12 Foam::searchableSurfaces::searchableSurfaces(Foam::IOobject const&, Foam::dictionary const&, bool) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libmeshTools.so"
#13
in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/snappyHexMesh"
#14 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#15
in "/opt/openfoam230/platforms/linux64GccDPOpt/bin/snappyHexMesh"
Segmentation fault (コアダンプ)
----------------------------------------------------------------------------------------------------------
以下はsnappyHexMeshの内容です.
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web:
www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
castellatedMesh true;
snap true;
addLayers false;
geometry
{
vortex_base2.stl
{
type triSurfaceMesh;
name vortex_base2;
}
/*refinementBox
{
type searchableBox;
min (-1.0 -0.7 0.0);
max ( 8.0 0.7 2.5);
}*/
};
castellatedMeshControls
{
maxLocalCells 100000;
maxGlobalCells 2000000;
minRefinementCells 0;
maxLoadUnbalance 0.10;
nCellsBetweenLevels 3;
features
(
/*{
file "motorBike.eMesh";
level 6;
}*/
);
refinementSurfaces
{
vortex_base2
{
level (1 1);
/*patchInfo
{
type wall;
inGroups (motorBikeGroup);
}*/
}
}
resolveFeatureAngle 30;
refinementRegions
{
/*refinementBox
{
mode inside;
levels ((1E15 4));
}*/
}
locationInMesh (0.001 0 0);
allowFreeStandingZoneFaces true;
}
snapControls
{
nSmoothPatch 3;
tolerance 2.0;
nSolveIter 30;
nRelaxIter 5;
nFeatureSnapIter 10;
implicitFeatureSnap false;
explicitFeatureSnap true;
multiRegionFeatureSnap false;
}
addLayersControls
{
relativeSizes true;
layers
{
"(lowerWall|vortex_base).*"
{
nSurfaceLayers 1;
}
}
expansionRatio 1.0;
finalLayerThickness 0.3;
minThickness 0.1;
nGrow 0;
featureAngle 360;
slipFeatureAngle 30;
nRelaxIter 3;
nSmoothSurfaceNormals 1;
nSmoothNormals 3;
// Smooth layer thickness over surface patches
nSmoothThickness 10;
maxFaceThicknessRatio 0.5;
maxThicknessToMedialRatio 0.3;
minMedianAxisAngle 90;
nBufferCellsNoExtrude 0;
nLayerIter 50;
}
meshQualityControls
{
maxNonOrtho 60;
maxBoundarySkewness 20;
maxInternalSkewness 4;
//maxConcave 80;
maxConcave 10;
minVol 1e-13;
minTetQuality 1e-30;
//minTetQuality -1e30;
minArea -1;
minTwist 0.02;
minDeterminant 0.001;
minFaceWeight 0.02;
minVolRatio 0.01;
minTriangleTwist -1;
nSmoothScale 4;
errorReduction 0.75;
}
/*{
#include "meshQualityDict"
// Advanced
//- Number of error distribution iterations
nSmoothScale 4;
//- amount to scale back displacement at error points
errorReduction 0.75;
}*/
// Advanced
// Write flags
writeFlags
(
layerFields // write volScalarField for layer coverage
);
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1e-6;