Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration settings of some dictionaries, e.g. snappyHexMeshDict
for more convenient case setup
- Loading branch information
Chris Greenshields
committed
May 17, 2015
1 parent
cacf165
commit e60cdeb
Showing
7 changed files
with
304 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
etc/caseDicts/general/fvSolution/relaxationFactors/steadyState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 changes: 28 additions & 0 deletions
28
etc/caseDicts/general/fvSolution/relaxationFactors/transient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
|
||
// ************************************************************************* // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
// ************************************************************************* // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 changes: 40 additions & 0 deletions
40
etc/caseDicts/mesh/manipulation/refineRegion/refineMeshDict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
// ************************************************************************* // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
); | ||
|
||
// ************************************************************************* // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
// ************************************************************************* // |