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

@ -48,4 +48,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -48,4 +48,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -0,0 +1,10 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase0
rm -f *.xy
#------------------------------------------------------------------------------

View File

@ -11,6 +11,7 @@ then
savePlots=true
fi
restore0Dir
runApplication blockMesh
@ -27,8 +28,9 @@ do
if [ "$savePlots" = true ]
then
# Save the line plot
mv postProcessing/sample1/100/line1_T.xy line1_T_"${schemeTag}".xy
mv -f postProcessing/sample1/100/line1_T.xy line1_T_"${schemeTag}".xy
fi
done < system/schemesToTest
#------------------------------------------------------------------------------

View File

@ -10,12 +10,11 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [0 2 -1 0 0] 0;
DT 0;
// ************************************************************************* //

View File

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

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -71,4 +70,5 @@ functions
}
}
// ************************************************************************* //

View File

@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
default none;
div(phi,T) Gauss limitedLinear 0.2;
div(phi,T) Gauss vanLeer;
}
laplacianSchemes

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,8 +18,6 @@ solvers
{
T
{
// solver smoothSolver;
// smoother symGaussSeidel;
solver PBiCG;
preconditioner DILU;
tolerance 1e-10;

View File

@ -27,4 +27,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -25,15 +25,18 @@ boundaryField
type fixedValue;
value uniform 1;
}
bottom
{
type fixedValue;
value uniform 0;
}
sideWalls
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -6,7 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
cleanCase0
rm -f *.png
rm -f system/controlDict system/fvSchemes
rm -f system/controlDict
rm -f system/fvSchemes
#------------------------------------------------------------------------------

View File

@ -9,6 +9,7 @@ cp -f system/controlDict.template system/controlDict
cp -f system/fvSchemes.template system/fvSchemes
runApplication blockMesh
runApplication setFields
# ----

View File

@ -10,11 +10,11 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT 0; //Not used
// ************************************************************************* //

View File

@ -39,7 +39,6 @@ plotTemperature() {
(x<=0)?fu(x):fo(x) w l lc 0 t 'analytical solution', \
"$graphDir/1/line_T.xy" u 1:2 w p pt 2 ps 2 lt rgb "red" t 'linear interpolation', \
"$graphDir/2/line_T.xy" u 1:2 w p pt 6 ps 2 lt rgb "green" t 'harmonic interpolation'
GNUPLOT
}
@ -82,6 +81,7 @@ then
}
plotTemperature
plotHeatFlux
fi

View File

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

View File

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

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

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,7 +24,7 @@ regions
cylinderToCell
{
p1 (0 0 -5);
p2 (0 0 .000);
p2 (0 0 0);
radius 1;
fieldValues
(

View File

@ -23,4 +23,5 @@ singleGraph
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
}
// ************************************************************************* //