TUT: mesh: clean up tutorials

This commit is contained in:
Kutalmis Bercin
2021-06-04 10:19:30 +01:00
committed by Andrew Heather
parent 6120e13d29
commit 3a858ac682
413 changed files with 623 additions and 1608672 deletions

View File

@ -4,6 +4,8 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
cleanCase0
rm -rf constant/extendedFeatureEdgeMesh
mv -f system/fvSchemes.bck system/fvSchemes
rm -rf constant
#------------------------------------------------------------------------------

View File

@ -3,19 +3,28 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
mkdir -p constant/triSurface
cp -f \
"$FOAM_TUTORIALS"/resources/geometry/airfoilWithLayers/*.gz \
constant/triSurface
runApplication blockMesh
runApplication surfaceFeatureExtract
mkdir -p 0
cp -f system/fvSchemes system/fvSchemes.bck
# Run with basic
foamDictionary -entry geometry.type -set basic system/fvSchemes
foamDictionary system/fvSchemes -entry geometry.type -set basic
runApplication -s basic snappyHexMesh
runApplication -s basic checkMesh -writeAllFields
foamListTimes -rm
# Run with highAspectRatio
foamDictionary -entry geometry.type -set highAspectRatio system/fvSchemes
foamDictionary system/fvSchemes -entry geometry.type -set highAspectRatio
runApplication -s highAspectRatio snappyHexMesh
runApplication -s highAspectRatio checkMesh -writeAllFields

View File

@ -1,32 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Air temperature at standard atmospheric pressure = 540 R = 300 K
// See README.md
// c = 347.336 [m/s]
// Ma = UInf/c = 0.15
// UInf = 52.1004 [m/s]
// ReChord = 6e6 (per chord)
// Chord = 1 [m]
// ReChord = UInf*Chord/nuFluid
// nuFluid = UInf*Chord/ReChord = 8.6834e-06 [m2/s]
transportModel Newtonian;
nu 8.6834e-06;
// ************************************************************************* //

View File

@ -1,72 +0,0 @@
solid PART_6
facet normal -0.000000000e+00 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 2.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 1.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 1.000000125e+00 0.000000000e+00 -1.714383303e-06
endloop
endfacet
facet normal -2.117582368e-22 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 1.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 2.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 2.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
facet normal -0.000000000e+00 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 3.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 2.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 2.000000125e+00 0.000000000e+00 -1.714383303e-06
endloop
endfacet
facet normal 2.117582368e-22 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 2.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 3.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 3.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
facet normal -0.000000000e+00 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 4.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 3.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 3.000000125e+00 0.000000000e+00 -1.714383303e-06
endloop
endfacet
facet normal 0.000000000e+00 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 3.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 4.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 4.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
facet normal 2.117582368e-22 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 5.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 6.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 6.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
facet normal 0.000000000e+00 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 5.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 6.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 5.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
facet normal -2.117582368e-22 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 4.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 5.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 5.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
facet normal 0.000000000e+00 -1.767905329e-06 -1.000000000e+00
outer loop
vertex 4.000000000e+00 -1.000000000e+00 5.352202629e-08
vertex 4.000000125e+00 0.000000000e+00 -1.714383303e-06
vertex 5.000000000e+00 -1.000000000e+00 5.352202629e-08
endloop
endfacet
endsolid

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1;

View File

@ -1,65 +1,45 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / O peration | Version: com |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
FoamFile
{
version 2;
format ascii;
class dictionary;
object fvSchemes;
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
unlimitedGrad(U) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) bounded Gauss linearUpwindV unlimitedGrad(U);
turbulence bounded Gauss limitedLinear 1;
div(phi,k) bounded Gauss limitedLinear 1;
div(phi,omega) bounded Gauss limitedLinear 1;
div(phi,nuTilda) bounded Gauss limitedLinear 1;
div(phi,epsilon) bounded Gauss limitedLinear 1;
div(phi,phit) bounded Gauss limitedLinear 1;
div(phi,f) bounded Gauss limitedLinear 1;
div(phi,gammaInt) bounded Gauss linearUpwind grad;
div(phi,ReThetat) bounded Gauss linearUpwind grad;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear limited corrected 0.33;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default limited corrected 0.33;
}
wallDist
{
method meshWave;
}
geometry

View File

@ -16,55 +16,6 @@ FoamFile
solvers
{
p
{
solver GAMG;
smoother GaussSeidel;
tolerance 1e-06;
relTol 0.1;
}
"(U|k|omega|nuTilda|gammaInt|ReThetat)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-08;
relTol 0.1;
maxIter 50;
}
"(epsilon|phit)"
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-8;
relTol 0;
}
f
{
solver PBiCGStab;
preconditioner DIC;
tolerance 1e-8;
relTol 0;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
consistent true;
}
relaxationFactors
{
equations
{
".*" 0.9;
"(gammaInt|ReThetat|k|nuTilda)" 0.8;
"(phit|f)" 0.7;
epsilon 0.5;
}
}