Configuration settings of some dictionaries, e.g. snappyHexMeshDict
for more convenient case setup
This commit is contained in:
@ -0,0 +1,30 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object steadyState;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
fields
|
||||||
|
{
|
||||||
|
p 0.3;
|
||||||
|
}
|
||||||
|
equations
|
||||||
|
{
|
||||||
|
U 0.7;
|
||||||
|
".*" 0.7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/general/fvSolution/relaxationFactors/transient
Normal file
28
etc/caseDicts/general/fvSolution/relaxationFactors/transient
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object transient;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
fields
|
||||||
|
{
|
||||||
|
}
|
||||||
|
equations
|
||||||
|
{
|
||||||
|
".*" 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
59
etc/caseDicts/mesh/generation/meshQualityDict.cfg
Normal file
59
etc/caseDicts/mesh/generation/meshQualityDict.cfg
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object meshQualityDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
maxNonOrtho 65;
|
||||||
|
|
||||||
|
maxBoundarySkewness 20;
|
||||||
|
|
||||||
|
maxInternalSkewness 4;
|
||||||
|
|
||||||
|
maxConcave 80;
|
||||||
|
|
||||||
|
// Minimum cell pyramid volume; case dependent
|
||||||
|
minVol 1e-13;
|
||||||
|
|
||||||
|
// 1e-15 (small positive) to enable tracking
|
||||||
|
// -1e+30 (large negative) for best layer insertion
|
||||||
|
minTetQuality 1e-15;
|
||||||
|
|
||||||
|
// if >0 : preserve single cells with all points on the surface if the
|
||||||
|
// resulting volume after snapping (by approximation) is larger than
|
||||||
|
// minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
|
||||||
|
// If <0 : delete always.
|
||||||
|
//minVolCollapseRatio 0.5;
|
||||||
|
|
||||||
|
minArea -1;
|
||||||
|
|
||||||
|
minTwist 0.02;
|
||||||
|
|
||||||
|
minDeterminant 0.001;
|
||||||
|
|
||||||
|
minFaceWeight 0.05;
|
||||||
|
|
||||||
|
minVolRatio 0.01;
|
||||||
|
|
||||||
|
minTriangleTwist -1;
|
||||||
|
|
||||||
|
nSmoothScale 4;
|
||||||
|
|
||||||
|
errorReduction 0.75;
|
||||||
|
|
||||||
|
relaxed
|
||||||
|
{
|
||||||
|
maxNonOrtho 75;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
83
etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg
Normal file
83
etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object snappyHexMeshDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
castellatedMesh true;
|
||||||
|
snap true;
|
||||||
|
addLayers true;
|
||||||
|
|
||||||
|
castellatedMeshControls
|
||||||
|
{
|
||||||
|
maxLocalCells 100000;
|
||||||
|
maxGlobalCells 100000000;
|
||||||
|
minRefinementCells 10;
|
||||||
|
maxLoadUnbalance 0.10;
|
||||||
|
nCellsBetweenLevels 3;
|
||||||
|
resolveFeatureAngle 30;
|
||||||
|
allowFreeStandingZoneFaces true;
|
||||||
|
features
|
||||||
|
(
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
snapControls
|
||||||
|
{
|
||||||
|
nSmoothPatch 3;
|
||||||
|
tolerance 2.0;
|
||||||
|
nSolveIter 100;
|
||||||
|
nRelaxIter 5;
|
||||||
|
|
||||||
|
nFeatureSnapIter 10;
|
||||||
|
|
||||||
|
explicitFeatureSnap false;
|
||||||
|
multiRegionFeatureSnap false;
|
||||||
|
implicitFeatureSnap true;
|
||||||
|
}
|
||||||
|
|
||||||
|
addLayersControls
|
||||||
|
{
|
||||||
|
featureAngle 100;
|
||||||
|
slipFeatureAngle 30;
|
||||||
|
|
||||||
|
nLayerIter 50;
|
||||||
|
nRelaxedIter 20;
|
||||||
|
nRelaxIter 5;
|
||||||
|
|
||||||
|
nGrow 0;
|
||||||
|
|
||||||
|
nSmoothSurfaceNormals 1;
|
||||||
|
nSmoothNormals 3;
|
||||||
|
nSmoothThickness 10;
|
||||||
|
maxFaceThicknessRatio 0.5;
|
||||||
|
maxThicknessToMedialRatio 0.3;
|
||||||
|
|
||||||
|
minMedialAxisAngle 90;
|
||||||
|
nMedialAxisIter 10;
|
||||||
|
|
||||||
|
nBufferCellsNoExtrude 0;
|
||||||
|
additionalReporting false;
|
||||||
|
// nSmoothDisplacement 0;
|
||||||
|
// detectExtrusionIsland false;
|
||||||
|
}
|
||||||
|
|
||||||
|
meshQualityControls
|
||||||
|
{
|
||||||
|
#include "${FOAM_CASE}/system/meshQualityDict"
|
||||||
|
}
|
||||||
|
|
||||||
|
debug 0;
|
||||||
|
mergeTolerance 1e-6;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
40
etc/caseDicts/mesh/manipulation/refineRegion/refineMeshDict
Normal file
40
etc/caseDicts/mesh/manipulation/refineRegion/refineMeshDict
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object refineMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
set c0;
|
||||||
|
|
||||||
|
coordinateSystem global;
|
||||||
|
|
||||||
|
globalCoeffs
|
||||||
|
{
|
||||||
|
tan1 ( 1 0 0 );
|
||||||
|
tan2 ( 0 1 0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
directions // comment out as required
|
||||||
|
(
|
||||||
|
tan1
|
||||||
|
tan2
|
||||||
|
normal
|
||||||
|
);
|
||||||
|
|
||||||
|
useHexTopology no;
|
||||||
|
|
||||||
|
geometricCut yes;
|
||||||
|
|
||||||
|
writeMesh no;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
31
etc/caseDicts/mesh/manipulation/refineRegion/topoSetDict
Normal file
31
etc/caseDicts/mesh/manipulation/refineRegion/topoSetDict
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object topoSetDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
actions
|
||||||
|
(
|
||||||
|
{
|
||||||
|
name c0;
|
||||||
|
type cellSet;
|
||||||
|
action new;
|
||||||
|
source boxToCell;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
box (-1 -1 -1) (1 1 1); // Edit box bounds as required
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
33
etc/caseDicts/surface/surfaceFeatureExtractDict.cfg
Normal file
33
etc/caseDicts/surface/surfaceFeatureExtractDict.cfg
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object surfaceFeatureExtractDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
extractionMethod extractFromSurface;
|
||||||
|
|
||||||
|
extractFromSurfaceCoeffs
|
||||||
|
{
|
||||||
|
includedAngle 150;
|
||||||
|
geometricTestOnly no;
|
||||||
|
}
|
||||||
|
|
||||||
|
subsetFeatures
|
||||||
|
{
|
||||||
|
nonManifoldEdges yes;
|
||||||
|
openEdges yes;
|
||||||
|
}
|
||||||
|
|
||||||
|
writeObj yes;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
Reference in New Issue
Block a user