Skip to content

Commit 1235a48

Browse files
author
Chris Greenshields
committed
Configuration settings of some dictionaries, e.g. snappyHexMeshDict
for more convenient case setup
1 parent d2a038a commit 1235a48

7 files changed

Lines changed: 304 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object steadyState;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
relaxationFactors
18+
{
19+
fields
20+
{
21+
p 0.3;
22+
}
23+
equations
24+
{
25+
U 0.7;
26+
".*" 0.7;
27+
}
28+
}
29+
30+
// ************************************************************************* //
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object transient;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
relaxationFactors
18+
{
19+
fields
20+
{
21+
}
22+
equations
23+
{
24+
".*" 1;
25+
}
26+
}
27+
28+
// ************************************************************************* //
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object meshQualityDict.cfg;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
maxNonOrtho 65;
18+
19+
maxBoundarySkewness 20;
20+
21+
maxInternalSkewness 4;
22+
23+
maxConcave 80;
24+
25+
// Minimum cell pyramid volume; case dependent
26+
minVol 1e-13;
27+
28+
// 1e-15 (small positive) to enable tracking
29+
// -1e+30 (large negative) for best layer insertion
30+
minTetQuality 1e-15;
31+
32+
// if >0 : preserve single cells with all points on the surface if the
33+
// resulting volume after snapping (by approximation) is larger than
34+
// minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
35+
// If <0 : delete always.
36+
//minVolCollapseRatio 0.5;
37+
38+
minArea -1;
39+
40+
minTwist 0.02;
41+
42+
minDeterminant 0.001;
43+
44+
minFaceWeight 0.05;
45+
46+
minVolRatio 0.01;
47+
48+
minTriangleTwist -1;
49+
50+
nSmoothScale 4;
51+
52+
errorReduction 0.75;
53+
54+
relaxed
55+
{
56+
maxNonOrtho 75;
57+
}
58+
59+
// ************************************************************************* //
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object snappyHexMeshDict.cfg;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
castellatedMesh true;
18+
snap true;
19+
addLayers true;
20+
21+
castellatedMeshControls
22+
{
23+
maxLocalCells 100000;
24+
maxGlobalCells 100000000;
25+
minRefinementCells 10;
26+
maxLoadUnbalance 0.10;
27+
nCellsBetweenLevels 3;
28+
resolveFeatureAngle 30;
29+
allowFreeStandingZoneFaces true;
30+
features
31+
(
32+
);
33+
}
34+
35+
snapControls
36+
{
37+
nSmoothPatch 3;
38+
tolerance 2.0;
39+
nSolveIter 100;
40+
nRelaxIter 5;
41+
42+
nFeatureSnapIter 10;
43+
44+
explicitFeatureSnap false;
45+
multiRegionFeatureSnap false;
46+
implicitFeatureSnap true;
47+
}
48+
49+
addLayersControls
50+
{
51+
featureAngle 100;
52+
slipFeatureAngle 30;
53+
54+
nLayerIter 50;
55+
nRelaxedIter 20;
56+
nRelaxIter 5;
57+
58+
nGrow 0;
59+
60+
nSmoothSurfaceNormals 1;
61+
nSmoothNormals 3;
62+
nSmoothThickness 10;
63+
maxFaceThicknessRatio 0.5;
64+
maxThicknessToMedialRatio 0.3;
65+
66+
minMedialAxisAngle 90;
67+
nMedialAxisIter 10;
68+
69+
nBufferCellsNoExtrude 0;
70+
additionalReporting false;
71+
// nSmoothDisplacement 0;
72+
// detectExtrusionIsland false;
73+
}
74+
75+
meshQualityControls
76+
{
77+
#include "${FOAM_CASE}/system/meshQualityDict"
78+
}
79+
80+
debug 0;
81+
mergeTolerance 1e-6;
82+
83+
// ************************************************************************* //
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object refineMeshDict;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
set c0;
18+
19+
coordinateSystem global;
20+
21+
globalCoeffs
22+
{
23+
tan1 ( 1 0 0 );
24+
tan2 ( 0 1 0 );
25+
}
26+
27+
directions // comment out as required
28+
(
29+
tan1
30+
tan2
31+
normal
32+
);
33+
34+
useHexTopology no;
35+
36+
geometricCut yes;
37+
38+
writeMesh no;
39+
40+
// ************************************************************************* //
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object topoSetDict;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
actions
18+
(
19+
{
20+
name c0;
21+
type cellSet;
22+
action new;
23+
source boxToCell;
24+
sourceInfo
25+
{
26+
box (-1 -1 -1) (1 1 1); // Edit box bounds as required
27+
}
28+
}
29+
);
30+
31+
// ************************************************************************* //
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
object surfaceFeatureExtractDict.cfg;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
extractionMethod extractFromSurface;
18+
19+
extractFromSurfaceCoeffs
20+
{
21+
includedAngle 150;
22+
geometricTestOnly no;
23+
}
24+
25+
subsetFeatures
26+
{
27+
nonManifoldEdges yes;
28+
openEdges yes;
29+
}
30+
31+
writeObj yes;
32+
33+
// ************************************************************************* //

0 commit comments

Comments
 (0)