mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -48,4 +48,5 @@ boundaryField
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -48,4 +48,5 @@ boundaryField
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
10
tutorials/verificationAndValidation/schemes/divergenceExample/Allclean
Executable file
10
tutorials/verificationAndValidation/schemes/divergenceExample/Allclean
Executable 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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -86,4 +86,5 @@ mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -71,4 +70,5 @@ functions
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -28,7 +28,7 @@ gradSchemes
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,T) Gauss limitedLinear 0.2;
|
||||
div(phi,T) Gauss vanLeer;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -27,4 +27,5 @@ boundaryField
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -25,15 +25,18 @@ boundaryField
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
sideWalls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -9,6 +9,7 @@ cp -f system/controlDict.template system/controlDict
|
||||
cp -f system/fvSchemes.template system/fvSchemes
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication setFields
|
||||
|
||||
# ----
|
||||
|
||||
@ -10,11 +10,11 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object transportProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
DT 0; //Not used
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -65,4 +65,5 @@ mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -10,7 +10,6 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
@ -23,4 +23,5 @@ singleGraph
|
||||
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user