TUT: basic, IO, preProcessing, VV: clean up tutorials

- TUT: mesh: add missing SnakeRiverCanyon files
- TUT: mesh: add missing cp source in a foamyHexMesh tutorial
This commit is contained in:
Kutalmis Bercin
2021-06-02 12:44:21 +01:00
parent 48cdf5523b
commit 3384d37a9a
840 changed files with 14574 additions and 41272 deletions

View File

@ -4,7 +4,9 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
runApplication blockMesh
runApplication createZeroDirectory
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -72,4 +72,5 @@ mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -23,7 +22,6 @@ startTime 0;
stopAt endTime;
//endTime 0.5;
endTime 0.005;
deltaT 0.005;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -6,8 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
cleanCase0
# Remove surface and features
rm -f constant/triSurface/motorBike.obj.gz
rm -f constant/triSurface/motorBike.eMesh
rm -rf constant/triSurface
rm -rf constant/extendedFeatureEdgeMesh
#------------------------------------------------------------------------------

View File

@ -3,22 +3,30 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# copy motorbike surface from resources folder
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
mkdir -p constant/triSurface
cp -f \
"$FOAM_TUTORIALS"/resources/geometry/motorBike.obj.gz \
constant/triSurface/
runApplication surfaceFeatureExtract
runApplication blockMesh
runApplication decomposePar
runParallel snappyHexMesh -overwrite
runParallel createZeroDirectory
runParallel patchSummary
runParallel potentialFoam -noFunctionObjects -writephi
runParallel $(getApplication)
runApplication reconstructParMesh -constant
runApplication reconstructPar -latestTime
#------------------------------------------------------------------------------

View File

@ -18,4 +18,5 @@ transportModel Newtonian;
nu 1.5e-05;
// ************************************************************************* //

View File

@ -1,4 +0,0 @@
Folder to house tri-surfaces
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
folder

View File

@ -14,15 +14,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
simulationType RAS;
RAS
{
RASModel kOmegaSST;
RASModel kOmegaSST;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1;
@ -83,4 +82,5 @@ boundary
}
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -19,11 +19,11 @@ libs (incompressibleTurbulenceModels);
application simpleFoam;
startFrom startTime; // latestTime;
startFrom startTime;
startTime 0;
stopAt writeNow; //endTime;
stopAt writeNow;
endTime 500;

View File

@ -12,13 +12,11 @@ FoamFile
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 6;
method hierarchical;
// method ptscotch;
coeffs
{

View File

@ -28,9 +28,12 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) bounded Gauss linearUpwindV grad(U);
div(phi,k) bounded Gauss upwind;
div(phi,omega) bounded Gauss upwind;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
@ -51,7 +54,7 @@ snGradSchemes
wallDist
{
method meshWave;
method meshWave;
}

View File

@ -89,4 +89,5 @@ cache
grad(U);
}
// ************************************************************************* //

View File

@ -6,7 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
cleanCase0
rm -rf constant/extendedFeatureEdgeMesh
rm -f constant/triSurface/*.eMesh
rm -rf constant/triSurface
rm -rf VTK
rm -rf constant/bottomAir/polyMesh

View File

@ -3,31 +3,32 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
rm -rf constant/polyMesh/sets
cp -rf \
"$FOAM_TUTORIALS"/resources/geometry/snappyMultiRegionHeater \
constant/triSurface
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh -overwrite
runApplication splitMeshRegions -cellZones -overwrite
for i in bottomAir topAir heater leftSolid rightSolid
do
runApplication -s $i changeDictionary -region $i -subDict dictionaryReplacement
runApplication -s $i \
changeDictionary -region $i -subDict dictionaryReplacement
done
runApplication decomposePar -allRegions
runParallel createZeroDirectory
#-- Run in parallel
runParallel $(getApplication)
# Reconstruct
runApplication reconstructPar -allRegions
echo
echo "creating files for paraview post-processing"
echo

View File

@ -17,4 +17,5 @@ FoamFile
dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant/bottomAir";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -16,4 +16,5 @@ FoamFile
simulationType laminar;
// ************************************************************************* //

View File

@ -17,4 +17,5 @@ FoamFile
dimensions [0 1 -2 0 0 0 0];
value (0 0 -9.81);
// ************************************************************************* //

View File

@ -5,13 +5,11 @@
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -31,4 +29,5 @@ scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -31,22 +31,20 @@ mixture
{
molWeight 12;
}
transport
{
kappa 80;
}
thermodynamics
{
Hf 0;
Cp 450;
}
equationOfState
{
rho 8000;
}
}
// ************************************************************************* //

View File

@ -5,13 +5,11 @@
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -31,4 +29,5 @@ scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object regionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -5,13 +5,11 @@
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -31,4 +29,5 @@ scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,4 +17,5 @@ FoamFile
dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant/topAir";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -16,4 +16,5 @@ FoamFile
simulationType laminar;
// ************************************************************************* //

View File

@ -93,4 +93,5 @@ mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -29,4 +29,5 @@ dictionaryReplacement
}
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
@ -27,13 +27,18 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) Gauss upwind;
div(phi,K) Gauss linear;
div(phi,h) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
turbulence Gauss upwind;
div(phi,k) $turbulence;
div(phi,epsilon) $turbulence;
div(phi,R) $turbulence;
div(R) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -29,14 +29,11 @@ solvers
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
maxIter 100;
}
@ -84,4 +81,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,7 +20,7 @@ startFrom latestTime;
startTime 0.001;
stopAt writeNow; //endTime;
stopAt writeNow;
endTime 75;
@ -51,4 +50,5 @@ maxDi 10.0;
adjustTimeStep yes;
// ************************************************************************* //

View File

@ -46,4 +46,5 @@ constraints
}
*/
// ************************************************************************* //

View File

@ -19,4 +19,5 @@ PIMPLE
nOuterCorrectors 1;
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -33,4 +33,5 @@ dictionaryReplacement
}
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
@ -31,7 +31,7 @@ divSchemes
laplacianSchemes
{
default none;
default none;
laplacian(alpha,h) Gauss linear limited corrected 0.333;
}

View File

@ -37,4 +37,5 @@ PIMPLE
nNonOrthogonalCorrectors 1;
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -29,4 +29,5 @@ dictionaryReplacement
}
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
@ -31,7 +31,7 @@ divSchemes
laplacianSchemes
{
default none;
default none;
laplacian(alpha,h) Gauss linear limited corrected 0.333;
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -29,4 +29,5 @@ dictionaryReplacement
}
}
// ************************************************************************* //

View File

@ -46,4 +46,5 @@ constraints
}
*/
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
@ -31,7 +31,7 @@ divSchemes
laplacianSchemes
{
default none;
default none;
laplacian(alpha,h) Gauss linear limited corrected 0.333;
}

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Which of the steps to run

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object caseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -18,4 +18,5 @@ dictionaryReplacement
{
}
// ************************************************************************* //

View File

@ -46,4 +46,5 @@ constraints
}
*/
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
@ -27,13 +27,18 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) Gauss upwind;
div(phi,K) Gauss linear;
div(phi,h) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
turbulence Gauss upwind;
div(phi,k) $turbulence;
div(phi,epsilon) $turbulence;
div(phi,R) $turbulence;
div(R) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -29,14 +29,11 @@ solvers
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
maxIter 100;
}
@ -84,4 +81,5 @@ relaxationFactors
}
}
// ************************************************************************* //