From 03be183a02024e33dd02b3015c07422f79c10dd2 Mon Sep 17 00:00:00 2001 From: jtoumey Date: Tue, 16 Mar 2021 16:32:14 -0400 Subject: [PATCH] Added 03 free convection case setup. --- validationCases/03_freeConvection/0/T | 38 +++++ validationCases/03_freeConvection/0/U | 38 +++++ validationCases/03_freeConvection/0/p | 38 +++++ validationCases/03_freeConvection/0/p_rgh | 38 +++++ validationCases/03_freeConvection/Allclean | 18 +++ validationCases/03_freeConvection/Allrun | 43 ++++++ validationCases/03_freeConvection/README.md | 6 + .../03_freeConvection/constant/bottomAir/g | 20 +++ .../constant/bottomAir/radiationProperties | 22 +++ .../bottomAir/thermophysicalProperties | 47 ++++++ .../constant/bottomAir/turbulenceProperties | 19 +++ .../constant/regionProperties | 24 ++++ .../constant/solid/thermophysicalProperties | 52 +++++++ .../03_freeConvection/constant/topAir/g | 20 +++ .../constant/topAir/radiationProperties | 22 +++ .../constant/topAir/thermophysicalProperties | 47 ++++++ .../constant/topAir/turbulenceProperties | 19 +++ .../03_freeConvection/system/README | 3 + .../03_freeConvection/system/blockMeshDict | 105 ++++++++++++++ .../system/bottomAir/changeDictionaryDict | 136 ++++++++++++++++++ .../system/bottomAir/decomposeParDict | 72 ++++++++++ .../system/bottomAir/fvSchemes | 56 ++++++++ .../system/bottomAir/fvSolution | 84 +++++++++++ .../03_freeConvection/system/controlDict | 59 ++++++++ .../03_freeConvection/system/decomposeParDict | 43 ++++++ .../03_freeConvection/system/fvSchemes | 42 ++++++ .../03_freeConvection/system/fvSolution | 22 +++ .../03_freeConvection/system/patchProbe1o2 | 29 ++++ .../03_freeConvection/system/singleGraph3 | 32 +++++ .../system/solid/changeDictionaryDict | 45 ++++++ .../system/solid/decomposeParDict | 44 ++++++ .../03_freeConvection/system/solid/fvSchemes | 49 +++++++ .../03_freeConvection/system/solid/fvSolution | 40 ++++++ .../system/topAir/changeDictionaryDict | 123 ++++++++++++++++ .../system/topAir/decomposeParDict | 72 ++++++++++ .../03_freeConvection/system/topAir/fvSchemes | 56 ++++++++ .../system/topAir/fvSolution | 83 +++++++++++ .../system/topAir/singleGraph2 | 32 +++++ .../03_freeConvection/system/topAirGraphU | 32 +++++ .../03_freeConvection/system/topoSetDict | 104 ++++++++++++++ 40 files changed, 1874 insertions(+) create mode 100644 validationCases/03_freeConvection/0/T create mode 100644 validationCases/03_freeConvection/0/U create mode 100644 validationCases/03_freeConvection/0/p create mode 100644 validationCases/03_freeConvection/0/p_rgh create mode 100755 validationCases/03_freeConvection/Allclean create mode 100755 validationCases/03_freeConvection/Allrun create mode 100644 validationCases/03_freeConvection/README.md create mode 100644 validationCases/03_freeConvection/constant/bottomAir/g create mode 100644 validationCases/03_freeConvection/constant/bottomAir/radiationProperties create mode 100644 validationCases/03_freeConvection/constant/bottomAir/thermophysicalProperties create mode 100644 validationCases/03_freeConvection/constant/bottomAir/turbulenceProperties create mode 100644 validationCases/03_freeConvection/constant/regionProperties create mode 100644 validationCases/03_freeConvection/constant/solid/thermophysicalProperties create mode 100644 validationCases/03_freeConvection/constant/topAir/g create mode 100644 validationCases/03_freeConvection/constant/topAir/radiationProperties create mode 100644 validationCases/03_freeConvection/constant/topAir/thermophysicalProperties create mode 100644 validationCases/03_freeConvection/constant/topAir/turbulenceProperties create mode 100644 validationCases/03_freeConvection/system/README create mode 100644 validationCases/03_freeConvection/system/blockMeshDict create mode 100644 validationCases/03_freeConvection/system/bottomAir/changeDictionaryDict create mode 100644 validationCases/03_freeConvection/system/bottomAir/decomposeParDict create mode 100644 validationCases/03_freeConvection/system/bottomAir/fvSchemes create mode 100644 validationCases/03_freeConvection/system/bottomAir/fvSolution create mode 100644 validationCases/03_freeConvection/system/controlDict create mode 100644 validationCases/03_freeConvection/system/decomposeParDict create mode 100644 validationCases/03_freeConvection/system/fvSchemes create mode 100644 validationCases/03_freeConvection/system/fvSolution create mode 100644 validationCases/03_freeConvection/system/patchProbe1o2 create mode 100644 validationCases/03_freeConvection/system/singleGraph3 create mode 100644 validationCases/03_freeConvection/system/solid/changeDictionaryDict create mode 100644 validationCases/03_freeConvection/system/solid/decomposeParDict create mode 100644 validationCases/03_freeConvection/system/solid/fvSchemes create mode 100644 validationCases/03_freeConvection/system/solid/fvSolution create mode 100644 validationCases/03_freeConvection/system/topAir/changeDictionaryDict create mode 100644 validationCases/03_freeConvection/system/topAir/decomposeParDict create mode 100644 validationCases/03_freeConvection/system/topAir/fvSchemes create mode 100644 validationCases/03_freeConvection/system/topAir/fvSolution create mode 100644 validationCases/03_freeConvection/system/topAir/singleGraph2 create mode 100644 validationCases/03_freeConvection/system/topAirGraphU create mode 100644 validationCases/03_freeConvection/system/topoSetDict diff --git a/validationCases/03_freeConvection/0/T b/validationCases/03_freeConvection/0/T new file mode 100644 index 0000000..6148218 --- /dev/null +++ b/validationCases/03_freeConvection/0/T @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/0/U b/validationCases/03_freeConvection/0/U new file mode 100644 index 0000000..3eb26d4 --- /dev/null +++ b/validationCases/03_freeConvection/0/U @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0.01 0 0); + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/0/p b/validationCases/03_freeConvection/0/p new file mode 100644 index 0000000..9ee3ae8 --- /dev/null +++ b/validationCases/03_freeConvection/0/p @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/0/p_rgh b/validationCases/03_freeConvection/0/p_rgh new file mode 100644 index 0000000..8671532 --- /dev/null +++ b/validationCases/03_freeConvection/0/p_rgh @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/Allclean b/validationCases/03_freeConvection/Allclean new file mode 100755 index 0000000..0d9d138 --- /dev/null +++ b/validationCases/03_freeConvection/Allclean @@ -0,0 +1,18 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanCase +rm -rf VTK +rm -rf constant/cellToRegion constant/polyMesh/sets +rm -rf 0/bottomAir +rm -rf 0/solid +rm -rf 0/topAir +rm -f 0/cellToRegion +rm -rf constant/bottomAir/polyMesh +rm -rf constant/topAir/polyMesh +rm -rf constant/solid/polyMesh + +#------------------------------------------------------------------------------ diff --git a/validationCases/03_freeConvection/Allrun b/validationCases/03_freeConvection/Allrun new file mode 100755 index 0000000..d1f8168 --- /dev/null +++ b/validationCases/03_freeConvection/Allrun @@ -0,0 +1,43 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh +runApplication topoSet +runApplication splitMeshRegions -cellZones -overwrite + +# remove fluid fields from solid regions (important for post-processing) +for i in solid +do + rm -f 0*/$i/{nut,alphat,epsilon,k,U,p_rgh} +done + + +for i in topAir bottomAir solid +do + runApplication -s $i changeDictionary -region $i +done + + +#-- Run on single processor +runApplication `getApplication` + +# Decompose +#runApplication decomposePar -allRegions + +# Run +#runParallel `getApplication` + +# Reconstruct +#runApplication reconstructPar -allRegions + + +echo +echo "creating files for paraview post-processing" +echo +paraFoam -touchAll + +#------------------------------------------------------------------------------ diff --git a/validationCases/03_freeConvection/README.md b/validationCases/03_freeConvection/README.md new file mode 100644 index 0000000..c8b3596 --- /dev/null +++ b/validationCases/03_freeConvection/README.md @@ -0,0 +1,6 @@ +# 3. Free Convection + +Two parallel, laminar gas flows split by a stainless steel plate. +Initially, hot gas (top) stream is at 1800 K, cold gas (bottom) is at 300 K, and plate is at 800 K. + + diff --git a/validationCases/03_freeConvection/constant/bottomAir/g b/validationCases/03_freeConvection/constant/bottomAir/g new file mode 100644 index 0000000..45f9c5c --- /dev/null +++ b/validationCases/03_freeConvection/constant/bottomAir/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0.0 0.0 0.0); + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/bottomAir/radiationProperties b/validationCases/03_freeConvection/constant/bottomAir/radiationProperties new file mode 100644 index 0000000..db5f2cd --- /dev/null +++ b/validationCases/03_freeConvection/constant/bottomAir/radiationProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/bottomAir/thermophysicalProperties b/validationCases/03_freeConvection/constant/bottomAir/thermophysicalProperties new file mode 100644 index 0000000..27114bc --- /dev/null +++ b/validationCases/03_freeConvection/constant/bottomAir/thermophysicalProperties @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "bottomAir/thermophysicalProperties"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture pureMixture; + transport const; + thermo hConst; + equationOfState perfectGas; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + molWeight 28.9; + } + thermodynamics + { + Cp 1006; + Hf 0; + } + transport + { + mu 1.845e-05; + Pr 0.7; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/bottomAir/turbulenceProperties b/validationCases/03_freeConvection/constant/bottomAir/turbulenceProperties new file mode 100644 index 0000000..57cb8c6 --- /dev/null +++ b/validationCases/03_freeConvection/constant/bottomAir/turbulenceProperties @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/regionProperties b/validationCases/03_freeConvection/constant/regionProperties new file mode 100644 index 0000000..3b453af --- /dev/null +++ b/validationCases/03_freeConvection/constant/regionProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object regionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +regions +( + fluid (bottomAir topAir) + solid (solid) +); + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/solid/thermophysicalProperties b/validationCases/03_freeConvection/constant/solid/thermophysicalProperties new file mode 100644 index 0000000..8436d67 --- /dev/null +++ b/validationCases/03_freeConvection/constant/solid/thermophysicalProperties @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heSolidThermo; + mixture pureMixture; + transport constIso; + thermo hConst; + equationOfState rhoConst; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + molWeight 50; + } + + transport + { + kappa 80; + } + + thermodynamics + { + Hf 0; + Cp 450; + } + + equationOfState + { + rho 8000; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/topAir/g b/validationCases/03_freeConvection/constant/topAir/g new file mode 100644 index 0000000..45f9c5c --- /dev/null +++ b/validationCases/03_freeConvection/constant/topAir/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0.0 0.0 0.0); + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/topAir/radiationProperties b/validationCases/03_freeConvection/constant/topAir/radiationProperties new file mode 100644 index 0000000..db5f2cd --- /dev/null +++ b/validationCases/03_freeConvection/constant/topAir/radiationProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/topAir/thermophysicalProperties b/validationCases/03_freeConvection/constant/topAir/thermophysicalProperties new file mode 100644 index 0000000..bc1503b --- /dev/null +++ b/validationCases/03_freeConvection/constant/topAir/thermophysicalProperties @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant/topAir"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture pureMixture; + transport const; + thermo hConst; + equationOfState perfectGas; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + molWeight 28.9; + } + thermodynamics + { + Cp 1235; + Hf 0; + } + transport + { + mu 5.831e-05; + Pr 0.7; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/constant/topAir/turbulenceProperties b/validationCases/03_freeConvection/constant/topAir/turbulenceProperties new file mode 100644 index 0000000..57cb8c6 --- /dev/null +++ b/validationCases/03_freeConvection/constant/topAir/turbulenceProperties @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/README b/validationCases/03_freeConvection/system/README new file mode 100644 index 0000000..5a81b9a --- /dev/null +++ b/validationCases/03_freeConvection/system/README @@ -0,0 +1,3 @@ +fvSolution is used for outer correctors specification. +fvSchemes is only so that pre-processing activities can proceed + diff --git a/validationCases/03_freeConvection/system/blockMeshDict b/validationCases/03_freeConvection/system/blockMeshDict new file mode 100644 index 0000000..aa49d82 --- /dev/null +++ b/validationCases/03_freeConvection/system/blockMeshDict @@ -0,0 +1,105 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +xMin 0.0; +xMax 0.2; + +yMin 0.0; +yMax 0.105; + +zMin 0.0; +zMax 0.001; + +vertices +( + ($xMin $yMin $zMin) + ($xMax $yMin $zMin) + ($xMax $yMax $zMin) + ($xMin $yMax $zMin) + ($xMin $yMin $zMax) + ($xMax $yMin $zMax) + ($xMax $yMax $zMax) + ($xMin $yMax $zMax) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (72 210 1) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + minX + { + type patch; + faces + ( + (0 4 7 3) + ); + } + maxX + { + type patch; + faces + ( + (2 6 5 1) + ); + } + minY + { + type wall; + faces + ( + (1 5 4 0) + ); + } + maxY + { + type wall; + faces + ( + (3 7 6 2) + ); + } + minZ + { + type empty; + faces + ( + (0 3 2 1) + ); + } + maxZ + { + type empty; + faces + ( + (4 5 6 7) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/bottomAir/changeDictionaryDict b/validationCases/03_freeConvection/system/bottomAir/changeDictionaryDict new file mode 100644 index 0000000..69d077c --- /dev/null +++ b/validationCases/03_freeConvection/system/bottomAir/changeDictionaryDict @@ -0,0 +1,136 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +U +{ + internalField uniform (0.0392 0 0); + + boundaryField + { + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type zeroGradient; + } + minY + { + type zeroGradient; + } + "bottomAir_to.*" + { + type noSlip; + } + } +} + +T +{ + internalField uniform 300; + + boundaryField + { + ".*" + { + type zeroGradient; + } + + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type zeroGradient; + } + minY + { + type zeroGradient; + } + "bottomAir_to_.*" + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value $internalField; + Tnbr T; + kappaMethod fluidThermo; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } + } +} + +p_rgh +{ + internalField uniform 1e5; + + boundaryField + { + minX + { + type fixedFluxPressure; + value $internalField; + } + maxX + { + type fixedValue; + value uniform 1e5; + } + minY + { + type fixedFluxPressure; + value $internalField; + } + "bottomAir_to_.*" + { + type fixedFluxPressure; + value $internalField; + } + } +} + +p +{ + internalField uniform 1e5; + + boundaryField + { + ".*" + { + type calculated; + value $internalField; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/bottomAir/decomposeParDict b/validationCases/03_freeConvection/system/bottomAir/decomposeParDict new file mode 100644 index 0000000..ddbfe76 --- /dev/null +++ b/validationCases/03_freeConvection/system/bottomAir/decomposeParDict @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + note "mesh decomposition control dictionary"; + location "system"; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 6; + +//- Keep owner and neighbour on same processor for faces in zones: +// preserveFaceZones (heater solid1 solid3); + +// method scotch; +// method hierarchical; +// method simple; +// method manual; + +simpleCoeffs +{ + n (3 2 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (2 2 1); + delta 0.001; + order xyz; +} + +scotchCoeffs +{ + //processorWeights + //( + // 1 + // 1 + // 1 + // 1 + //); + //writeGraph true; + //strategy "b"; +} + +manualCoeffs +{ + dataFile "decompositionData"; +} + + +//// Is the case distributed +//distributed yes; +//// Per slave (so nProcs-1 entries) the directory above the case. +//roots +//( +// "/tmp" +// "/tmp" +//); + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/bottomAir/fvSchemes b/validationCases/03_freeConvection/system/bottomAir/fvSchemes new file mode 100644 index 0000000..35665e0 --- /dev/null +++ b/validationCases/03_freeConvection/system/bottomAir/fvSchemes @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +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; + div(R) Gauss linear; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/bottomAir/fvSolution b/validationCases/03_freeConvection/system/bottomAir/fvSolution new file mode 100644 index 0000000..2e7f73d --- /dev/null +++ b/validationCases/03_freeConvection/system/bottomAir/fvSolution @@ -0,0 +1,84 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + rho + { + solver PCG; + preconditioner DIC; + tolerance 1e-7; + relTol 0.1; + } + + rhoFinal + { + $rho; + tolerance 1e-7; + relTol 0; + } + + p_rgh + { + solver GAMG; + //nCellsInCoarsestLevel 120; + tolerance 1e-9; + relTol 0.01; + + smoother GaussSeidel; + + } + + p_rghFinal + { + $p_rgh; + tolerance 1e-9; + relTol 0; + } + + "(U|h|k|epsilon|R)" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-7; + relTol 0.1; + } + + "(U|h|k|epsilon|R)Final" + { + $U; + tolerance 1e-7; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + nCorrectors 10; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + "h.*" 1; + "U.*" 1; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/controlDict b/validationCases/03_freeConvection/system/controlDict new file mode 100644 index 0000000..46a81dc --- /dev/null +++ b/validationCases/03_freeConvection/system/controlDict @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application chtMultiRegionDecoupleFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 3500; + +deltaT 0.001; + +writeControl adjustableRunTime; + +writeInterval 10; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 8; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable no; + +maxCo 0.6; + +// Maximum diffusion number +maxDi 10.0; + +adjustTimeStep no; + +functions +{ +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/decomposeParDict b/validationCases/03_freeConvection/system/decomposeParDict new file mode 100644 index 0000000..1cc64c5 --- /dev/null +++ b/validationCases/03_freeConvection/system/decomposeParDict @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + note "mesh decomposition control dictionary"; + location "system"; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 8; + +//- Keep owner and neighbour on same processor for faces in zones: +// preserveFaceZones (heater solid1 solid3); + +method simple; + +simpleCoeffs +{ + n (4 2 1); + delta 0.001; +} + +//// Is the case distributed +//distributed yes; +//// Per slave (so nProcs-1 entries) the directory above the case. +//roots +//( +// "/tmp" +// "/tmp" +//); + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/fvSchemes b/validationCases/03_freeConvection/system/fvSchemes new file mode 100644 index 0000000..71e1741 --- /dev/null +++ b/validationCases/03_freeConvection/system/fvSchemes @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ +} + +gradSchemes +{ +} + +divSchemes +{ +} + +laplacianSchemes +{ +} + +interpolationSchemes +{ +} + +snGradSchemes +{ +} + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/fvSolution b/validationCases/03_freeConvection/system/fvSolution new file mode 100644 index 0000000..f594493 --- /dev/null +++ b/validationCases/03_freeConvection/system/fvSolution @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +PIMPLE +{ + nOuterCorrectors 1; +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/patchProbe1o2 b/validationCases/03_freeConvection/system/patchProbe1o2 new file mode 100644 index 0000000..53dbf10 --- /dev/null +++ b/validationCases/03_freeConvection/system/patchProbe1o2 @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 5 + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes out values of fields from cells nearest to specified locations. + +\*---------------------------------------------------------------------------*/ + + type probe; //obes; + libs ("libsampling.so"); + writeControl writeTime; + writeInterval 1; + region topAir; + patchName topAir_toSolid; //your patch name. + + fields + ( + T //self explanatory + ); + + probeLocations //where you pretend to acquire the field values (e.g. coordinates of a solid contour) + ( + ( 0.1 0.1 0.05) + ); +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/singleGraph3 b/validationCases/03_freeConvection/system/singleGraph3 new file mode 100644 index 0000000..e1638f1 --- /dev/null +++ b/validationCases/03_freeConvection/system/singleGraph3 @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start + and end points. + +\*---------------------------------------------------------------------------*/ + +region bottomAir; +start (0.1 0.00001 0.05); +end (0.1 0.04999 0.05); +fields (T); + +// Sampling and I/O settings +#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" + +// Override settings here, e.g. +setConfig +{ + type midPoint; + axis y; +} + +// Must be last entry +#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/solid/changeDictionaryDict b/validationCases/03_freeConvection/system/solid/changeDictionaryDict new file mode 100644 index 0000000..956e12f --- /dev/null +++ b/validationCases/03_freeConvection/system/solid/changeDictionaryDict @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +T +{ + internalField uniform 800; + + boundaryField + { + ".*" + { + type zeroGradient; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } + "solid_to_.*" + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + Tnbr T; + kappaMethod solidThermo; + value uniform 800; + } + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/solid/decomposeParDict b/validationCases/03_freeConvection/system/solid/decomposeParDict new file mode 100644 index 0000000..8199d85 --- /dev/null +++ b/validationCases/03_freeConvection/system/solid/decomposeParDict @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method scotch; + +simpleCoeffs +{ + n (2 2 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (2 2 1); + delta 0.001; + order xyz; +} + +scotchCoeffs +{ +} + +manualCoeffs +{ + dataFile "decompositionData"; +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/solid/fvSchemes b/validationCases/03_freeConvection/system/solid/fvSchemes new file mode 100644 index 0000000..e5250d7 --- /dev/null +++ b/validationCases/03_freeConvection/system/solid/fvSchemes @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + default none; +} + +laplacianSchemes +{ + default none; + laplacian(alpha,h) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/solid/fvSolution b/validationCases/03_freeConvection/system/solid/fvSolution new file mode 100644 index 0000000..7f1b176 --- /dev/null +++ b/validationCases/03_freeConvection/system/solid/fvSolution @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + h + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0.1; + } + + hFinal + { + $h; + tolerance 1e-06; + relTol 0; + } +} + +PIMPLE +{ + nNonOrthogonalCorrectors 0; +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topAir/changeDictionaryDict b/validationCases/03_freeConvection/system/topAir/changeDictionaryDict new file mode 100644 index 0000000..74d15bd --- /dev/null +++ b/validationCases/03_freeConvection/system/topAir/changeDictionaryDict @@ -0,0 +1,123 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +U +{ + internalField uniform (0.7432 0 0); + + boundaryField + { + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type zeroGradient; + } + maxY + { + type zeroGradient; + } + "topAir_to_.*" + { + type noSlip; + } + } +} + +T +{ + internalField uniform 1800; + + boundaryField + { + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type zeroGradient; + } + maxY + { + type zeroGradient; + } + "topAir_to_.*" + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value $internalField; + Tnbr T; + kappaMethod fluidThermo; + } + } +} + +p_rgh +{ + internalField uniform 1e5; + + boundaryField + { + minX + { + type fixedFluxPressure; + value $internalField; + } + maxX + { + type fixedValue; + value uniform 1e5; + } + maxY + { + type fixedFluxPressure; + value $internalField; + } + "topAir_to_.*" + { + type fixedFluxPressure; + value $internalField; + } + } +} + +p +{ + internalField uniform 1e5; + + boundaryField + { + ".*" + { + type calculated; + value $internalField; + } + minZ + { + type empty; + } + maxZ + { + type empty; + } + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topAir/decomposeParDict b/validationCases/03_freeConvection/system/topAir/decomposeParDict new file mode 100644 index 0000000..8dc738b --- /dev/null +++ b/validationCases/03_freeConvection/system/topAir/decomposeParDict @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + note "mesh decomposition control dictionary"; + location "system"; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 6; + +//- Keep owner and neighbour on same processor for faces in zones: +// preserveFaceZones (heater solid1 solid3); + +// method scotch; +// method hierarchical; +method simple; +// method manual; + +simpleCoeffs +{ + n (3 2 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (2 2 1); + delta 0.001; + order xyz; +} + +scotchCoeffs +{ + //processorWeights + //( + // 1 + // 1 + // 1 + // 1 + //); + //writeGraph true; + //strategy "b"; +} + +manualCoeffs +{ + dataFile "decompositionData"; +} + + +//// Is the case distributed +//distributed yes; +//// Per slave (so nProcs-1 entries) the directory above the case. +//roots +//( +// "/tmp" +// "/tmp" +//); + + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topAir/fvSchemes b/validationCases/03_freeConvection/system/topAir/fvSchemes new file mode 100644 index 0000000..35665e0 --- /dev/null +++ b/validationCases/03_freeConvection/system/topAir/fvSchemes @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +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; + div(R) Gauss linear; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topAir/fvSolution b/validationCases/03_freeConvection/system/topAir/fvSolution new file mode 100644 index 0000000..00a9878 --- /dev/null +++ b/validationCases/03_freeConvection/system/topAir/fvSolution @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + rho + { + solver PCG; + preconditioner DIC; + tolerance 1e-7; + relTol 0.1; + } + + rhoFinal + { + $rho; + tolerance 1e-7; + relTol 0; + } + + p_rgh + { + solver GAMG; + tolerance 1e-9; + relTol 0.01; + + smoother GaussSeidel; + + } + + p_rghFinal + { + $p_rgh; + tolerance 1e-9; + relTol 0; + } + + "(U|h|k|epsilon|R)" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-7; + relTol 0.1; + } + + "(U|h|k|epsilon|R)Final" + { + $U; + tolerance 1e-7; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + nCorrectors 5; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + "h.*" 1; + "U.*" 1; + } +} + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topAir/singleGraph2 b/validationCases/03_freeConvection/system/topAir/singleGraph2 new file mode 100644 index 0000000..8e2c3dc --- /dev/null +++ b/validationCases/03_freeConvection/system/topAir/singleGraph2 @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start + and end points. + +\*---------------------------------------------------------------------------*/ + +region topAir; +start ( 0.1 0.055 0.0); +end ( 0.1 0.105 0.0); +fields (U.component(0)); + +// Sampling and I/O settings +#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" + +// Override settings here, e.g. +setConfig +{ + type midPoint; + axis y; +} + +// Must be last entry +#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topAirGraphU b/validationCases/03_freeConvection/system/topAirGraphU new file mode 100644 index 0000000..5bbbb94 --- /dev/null +++ b/validationCases/03_freeConvection/system/topAirGraphU @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start + and end points. + +\*---------------------------------------------------------------------------*/ + +region topAir; +start ( 0.195 0.055 0.0005 ); +end ( 0.195 0.105 0.0005 ); +fields (U); + +// Sampling and I/O settings +#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" + +// Override settings here, e.g. +setConfig +{ + type midPoint; + axis y; +} + +// Must be last entry +#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" + +// ************************************************************************* // diff --git a/validationCases/03_freeConvection/system/topoSetDict b/validationCases/03_freeConvection/system/topoSetDict new file mode 100644 index 0000000..244193f --- /dev/null +++ b/validationCases/03_freeConvection/system/topoSetDict @@ -0,0 +1,104 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + // solid + { + name solidCellSet; + type cellSet; + action new; + source boxToCell; + sourceInfo + { + box (-100 0.05001 -100 )(100 0.05499 100); + } + } + { + name solid; + type cellZoneSet; + action new; + source setToCellZone; + sourceInfo + { + set solidCellSet; + } + } + + // topAir + { + name topAirCellSet; + type cellSet; + action new; + source boxToCell; + sourceInfo + { + box (-100 0.05501 -100 )(100 100 100); + } + } + { + name topAir; + type cellZoneSet; + action new; + source setToCellZone; + sourceInfo + { + set topAirCellSet; + } + } + + + // bottomAir is all the other cells + { + name bottomAirCellSet; + type cellSet; + action new; + source cellToCell; + sourceInfo + { + set solidCellSet; + } + } + { + name bottomAirCellSet; + type cellSet; + action add; + source cellToCell; + sourceInfo + { + set topAirCellSet; + } + } + { + name bottomAirCellSet; + type cellSet; + action invert; + } + { + name bottomAir; + type cellZoneSet; + action new; + source setToCellZone; + sourceInfo + { + set bottomAirCellSet; + } + } +); + + +// ************************************************************************* //