TUT: heatTransfer: clean up tutorials

This commit is contained in:
Kutalmis Bercin
2021-05-25 12:53:27 +01:00
committed by Andrew Heather
parent ad75af0e50
commit f62a599eef
720 changed files with 1843 additions and 56321 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,6 +4,7 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
runApplication blockMesh
runApplication topoSet
# Restore initial fields
@ -14,13 +15,13 @@ runApplication splitMeshRegions -cellZones -overwrite
# Remove fluid fields from solid regions (important for post-processing)
for region in $(foamListRegions solid)
do
rm -f 0/$region/{nut,alphat,epsilon,k,U,p_rgh}
rm -f processor*/0/$region/{nut,alphat,epsilon,k,U,p_rgh}
rm -f 0/"$region"/{nut,alphat,epsilon,k,U,p_rgh}
rm -f processor*/0/"$region"/{nut,alphat,epsilon,k,U,p_rgh}
done
for region in $(foamListRegions)
do
runApplication -s $region changeDictionary -region $region
runApplication -s "$region" changeDictionary -region "$region"
done
# Create coupling geometry

View File

@ -47,4 +47,5 @@ mixture
}
}
// ************************************************************************* //

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 -9.81 0);
// ************************************************************************* //

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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,4 +18,5 @@ radiation off;
radiationModel none;
// ************************************************************************* //

View File

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

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object regionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,4 +20,5 @@ regions
solid (heater leftSolid rightSolid)
);
// ************************************************************************* //

View File

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

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default steadyState;
default steadyState;
}
gradSchemes
@ -29,13 +29,17 @@ divSchemes
default none;
div(phi,U) bounded Gauss upwind;
div(phi,K) bounded Gauss upwind;
div(phi,h) bounded Gauss upwind;
div(phi,k) bounded Gauss upwind;
div(phi,K) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(phi,R) bounded Gauss upwind;
energy bounded Gauss upwind;
div(phi,K) $energy;
div(phi,h) $energy;
turbulence bounded Gauss upwind;
div(phi,k) $turbulence;
div(phi,epsilon) $turbulence;
div(phi,R) $turbulence;
div(R) Gauss linear;
div(Ji,Ii_h) Gauss linearUpwind grad(U);
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
@ -55,4 +59,5 @@ snGradSchemes
default uncorrected;
}
// ************************************************************************* //

View File

@ -29,9 +29,7 @@ solvers
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
}
"(U|h|k|epsilon|G|Ii)"
@ -78,4 +76,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -166,4 +166,5 @@ p
}
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
@ -29,12 +29,16 @@ 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

@ -36,7 +36,6 @@ solvers
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
}
@ -84,4 +83,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

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

View File

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

View File

@ -14,7 +14,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
SIMPLE
{
energyCoupling

View File

@ -68,4 +68,5 @@ T
}
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes
{
default steadyState;
default steadyState;
}
gradSchemes

View File

@ -38,4 +38,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -57,4 +57,5 @@ T
}
}
// ************************************************************************* //

View File

@ -38,4 +38,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -47,4 +47,5 @@ T
}
}
// ************************************************************************* //

View File

@ -38,4 +38,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -172,4 +172,5 @@ p
}
}
// ************************************************************************* //

View File

@ -29,9 +29,7 @@ solvers
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
}
"(U|h|k|epsilon|G|Ii)"
@ -78,4 +76,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions