From 84095ef63100e0685b17fbad9483db608ac290da Mon Sep 17 00:00:00 2001 From: sergio <s.ferraris@opencfd.co.uk> Date: Fri, 13 Dec 2019 16:40:32 -0800 Subject: [PATCH] ENH: Adding solarBeamWithTrees tutorial --- .../solarBeamWithTrees/0.orig/air/G | 62 ++++++++ .../solarBeamWithTrees/0.orig/air/IDefault | 62 ++++++++ .../solarBeamWithTrees/0.orig/air/T | 77 +++++++++ .../solarBeamWithTrees/0.orig/air/U | 74 +++++++++ .../solarBeamWithTrees/0.orig/air/alphat | 64 ++++++++ .../solarBeamWithTrees/0.orig/air/epsilon | 69 ++++++++ .../solarBeamWithTrees/0.orig/air/k | 69 ++++++++ .../solarBeamWithTrees/0.orig/air/nut | 68 ++++++++ .../solarBeamWithTrees/0.orig/air/p | 62 ++++++++ .../solarBeamWithTrees/0.orig/air/p_rgh | 62 ++++++++ .../solarBeamWithTrees/0.orig/air/qr | 62 ++++++++ .../solarBeamWithTrees/0.orig/floor/T | 84 ++++++++++ .../solarBeamWithTrees/0.orig/floor/p | 67 ++++++++ .../solarBeamWithTrees/0.orig/solid/T | 52 +++++++ .../solarBeamWithTrees/0.orig/solid/p | 42 +++++ .../solarBeamWithTrees/Allclean | 12 ++ .../solarBeamWithTrees/Allrun | 16 ++ .../solarBeamWithTrees/Allrun-parallel | 25 +++ .../solarBeamWithTrees/Allrun.pre | 32 ++++ .../constant/air/boundaryRadiationProperties | 52 +++++++ .../constant/air/radiationProperties | 104 +++++++++++++ .../constant/air/thermophysicalProperties | 47 ++++++ .../constant/air/turbulenceProperties | 26 ++++ .../constant/floor/radiationProperties | 35 +++++ .../constant/floor/thermophysicalProperties | 52 +++++++ .../solarBeamWithTrees/constant/g | 20 +++ .../constant/regionProperties | 24 +++ .../constant/solid/radiationProperties | 29 ++++ .../constant/solid/thermophysicalProperties | 52 +++++++ .../system/air/changeDictionaryDict | 147 ++++++++++++++++++ .../system/air/decomposeParDict | 1 + .../solarBeamWithTrees/system/air/fvSchemes | 59 +++++++ .../solarBeamWithTrees/system/air/fvSolution | 83 ++++++++++ .../solarBeamWithTrees/system/air/topoSetDict | 39 +++++ .../solarBeamWithTrees/system/blockMeshDict | 96 ++++++++++++ .../solarBeamWithTrees/system/controlDict | 56 +++++++ .../system/decomposeParDict | 30 ++++ .../system/extrudeToRegionMeshDict | 40 +++++ .../system/floor/changeDictionaryDict | 84 ++++++++++ .../system/floor/decomposeParDict | 1 + .../solarBeamWithTrees/system/floor/fvSchemes | 49 ++++++ .../system/floor/fvSolution | 44 ++++++ .../solarBeamWithTrees/system/fvSchemes | 42 +++++ .../solarBeamWithTrees/system/fvSolution | 21 +++ .../system/solid/changeDictionaryDict | 65 ++++++++ .../system/solid/decomposeParDict | 1 + .../solarBeamWithTrees/system/solid/fvSchemes | 49 ++++++ .../system/solid/fvSolution | 44 ++++++ .../solarBeamWithTrees/system/topoSetDict | 104 +++++++++++++ 49 files changed, 2557 insertions(+) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/G create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/IDefault create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/U create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/alphat create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/epsilon create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/k create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/nut create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p_rgh create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/qr create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/p create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/p create mode 100755 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allclean create mode 100755 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun create mode 100755 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun-parallel create mode 100755 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun.pre create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/boundaryRadiationProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/radiationProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/thermophysicalProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/turbulenceProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/radiationProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/thermophysicalProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/g create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/regionProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/radiationProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/thermophysicalProperties create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/changeDictionaryDict create mode 120000 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/decomposeParDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSchemes create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSolution create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/topoSetDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/blockMeshDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/controlDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/decomposeParDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/extrudeToRegionMeshDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/changeDictionaryDict create mode 120000 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/decomposeParDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSchemes create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSolution create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSchemes create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSolution create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/changeDictionaryDict create mode 120000 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/decomposeParDict create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSchemes create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSolution create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/topoSetDict diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/G b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/G new file mode 100644 index 00000000000..c6af56740ee --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/G @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object G; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 0 -3 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + maxY + { + type calculated; + value uniform 0; + } + minX + { + type calculated; + value uniform 0; + } + maxX + { + type calculated; + value uniform 0; + } + minY + { + type calculated; + value uniform 0; + } + maxZ + { + type calculated; + value uniform 0; + } + air_to_floor + { + type calculated; + value uniform 0; + } + air_to_solid + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/IDefault b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/IDefault new file mode 100644 index 00000000000..14ca932cec1 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/IDefault @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object IDefault; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 0 -3 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + maxY + { + type wideBandDiffusiveRadiation; + value uniform 0; + } + minX + { + type wideBandDiffusiveRadiation; + value uniform 0; + } + maxX + { + type wideBandDiffusiveRadiation; + value uniform 0; + } + minY + { + type wideBandDiffusiveRadiation; + value uniform 0; + } + maxZ + { + type wideBandDiffusiveRadiation; + value uniform 0; + } + air_to_floor + { + type wideBandDiffusiveRadiation; + value uniform 0; + } + air_to_solid + { + type wideBandDiffusiveRadiation; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/T b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/T new file mode 100644 index 00000000000..06ec8c3a4ef --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/T @@ -0,0 +1,77 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + maxY + { + type inletOutlet; + value uniform 300; + inletValue uniform 300; + } + minX + { + type inletOutlet; + value uniform 300; + inletValue uniform 300; + } + maxX + { + type inletOutlet; + value uniform 300; + inletValue uniform 300; + } + minY + { + type inletOutlet; + value uniform 300; + inletValue uniform 300; + } + maxZ + { + type inletOutlet; + value uniform 300; + inletValue uniform 300; + } + air_to_floor + { + type compressible::turbulentTemperatureRadCoupledMixed; + value uniform 350; + Tnbr T; + kappaMethod fluidThermo; + qrNbr none; + qr qr; + kappa none; + } + air_to_solid + { + type compressible::turbulentTemperatureRadCoupledMixed; + value uniform 350; + Tnbr T; + kappaMethod fluidThermo; + qrNbr none; + qr qr; + kappa none; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/U b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/U new file mode 100644 index 00000000000..90357f56bb2 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/U @@ -0,0 +1,74 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0/air"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 1 -1 0 0 0 0 ]; + +internalField uniform ( 0.1 0 0 ); + +boundaryField +{ + maxY + { + type pressureInletOutletVelocity; + value uniform ( 0 0 0 ); + phi phi; + } + minX + { + type pressureInletOutletVelocity; + value uniform ( 0 0 0 ); + phi phi; + } + maxX + { + type pressureInletOutletVelocity; + value uniform ( 0 0 0 ); + phi phi; + } + minY + { + type pressureInletOutletVelocity; + value uniform ( 0 0 0 ); + phi phi; + } + maxZ + { + type pressureInletOutletVelocity; + value uniform ( 0 0 0 ); + phi phi; + } + air_to_floor + { + type fixedValue; + value uniform ( 0 0 0 ); + phi phi; + } + air_to_solid + { + type fixedValue; + value uniform ( 0 0 0 ); + phi phi; + } + region0_to_floor_floor_zone + { + type fixedValue; + value uniform ( 0 0 0 ); + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/alphat b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/alphat new file mode 100644 index 00000000000..068430f16b1 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/alphat @@ -0,0 +1,64 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + maxY + { + type calculated; + value uniform 0; + } + minX + { + type calculated; + value uniform 0; + } + maxX + { + type calculated; + value uniform 0; + } + minY + { + type calculated; + value uniform 0; + } + maxZ + { + type calculated; + value uniform 0; + } + air_to_floor + { + type compressible::alphatWallFunction; + Prt 0.85; + value uniform 0; + } + air_to_solid + { + type compressible::alphatWallFunction; + Prt 0.85; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/epsilon new file mode 100644 index 00000000000..58a70887960 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/epsilon @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -3 0 0 0 0 ]; + +internalField uniform 0.01; + +boundaryField +{ + maxY + { + type inletOutlet; + value uniform 0.01; + inletValue uniform 0.01; + } + minX + { + type inletOutlet; + value uniform 0.01; + inletValue uniform 0.01; + } + maxX + { + type inletOutlet; + value uniform 0.01; + inletValue uniform 0.01; + } + minY + { + type inletOutlet; + value uniform 0.01; + inletValue uniform 0.01; + } + maxZ + { + type inletOutlet; + value uniform 0.01; + inletValue uniform 0.01; + } + air_to_floor + { + type epsilonWallFunction; + value uniform 0.01; + inletValue uniform 0.01; + } + air_to_solid + { + type epsilonWallFunction; + value uniform 0.01; + inletValue uniform 0.01; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/k b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/k new file mode 100644 index 00000000000..63d63a60a56 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/k @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; + +internalField uniform 0.1; + +boundaryField +{ + maxY + { + type inletOutlet; + value uniform 0.1; + inletValue uniform 0.1; + } + minX + { + type inletOutlet; + value uniform 0.1; + inletValue uniform 0.1; + } + maxX + { + type inletOutlet; + value uniform 0.1; + inletValue uniform 0.1; + } + minY + { + type inletOutlet; + value uniform 0.1; + inletValue uniform 0.1; + } + maxZ + { + type inletOutlet; + value uniform 0.1; + inletValue uniform 0.1; + } + air_to_floor + { + type kqRWallFunction; + value uniform 0.1; + inletValue uniform 0.1; + } + air_to_solid + { + type kqRWallFunction; + value uniform 0.1; + inletValue uniform 0.1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/nut b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/nut new file mode 100644 index 00000000000..9d82df4312e --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/nut @@ -0,0 +1,68 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + maxY + { + type calculated; + value uniform 0; + } + minX + { + type calculated; + value uniform 0; + } + maxX + { + type calculated; + value uniform 0; + } + minY + { + type calculated; + value uniform 0; + } + maxZ + { + type calculated; + value uniform 0; + } + air_to_floor + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } + air_to_solid + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p new file mode 100644 index 00000000000..e8a0cf937e7 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 -1 -2 0 0 0 0 ]; + +internalField uniform 100000; + +boundaryField +{ + maxY + { + type calculated; + value uniform 100000; + } + minX + { + type calculated; + value uniform 100000; + } + maxX + { + type calculated; + value uniform 100000; + } + minY + { + type calculated; + value uniform 100000; + } + maxZ + { + type calculated; + value uniform 100000; + } + air_to_floor + { + type calculated; + value uniform 100000; + } + air_to_solid + { + type calculated; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p_rgh new file mode 100644 index 00000000000..b641565959f --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/p_rgh @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 -1 -2 0 0 0 0 ]; + +internalField uniform 100000; + +boundaryField +{ + maxY + { + type totalPressure; + p0 $internalField; + } + minX + { + type totalPressure; + p0 $internalField; + } + maxX + { + type totalPressure; + p0 $internalField; + } + minY + { + type totalPressure; + p0 $internalField; + } + maxZ + { + type totalPressure; + p0 $internalField; + } + air_to_floor + { + type fixedFluxPressure; + p0 $internalField; + } + air_to_solid + { + type fixedFluxPressure; + p0 $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/qr b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/qr new file mode 100644 index 00000000000..66453c1bae2 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/air/qr @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/air"; + object qr; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 0 -3 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + maxY + { + type calculated; + value uniform 0; + } + minX + { + type calculated; + value uniform 0; + } + maxX + { + type calculated; + value uniform 0; + } + minY + { + type calculated; + value uniform 0; + } + maxZ + { + type calculated; + value uniform 0; + } + air_to_floor + { + type calculated; + value uniform 0; + } + air_to_solid + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/T b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/T new file mode 100644 index 00000000000..bf7d3330e41 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/T @@ -0,0 +1,84 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/floor"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + maxY + { + type zeroGradient; + value uniform 300; + } + minX + { + type zeroGradient; + value uniform 300; + } + maxX + { + type zeroGradient; + value uniform 300; + } + minY + { + type zeroGradient; + value uniform 300; + } + minZ + { + type externalWallHeatFluxTemperature; + mode coefficient; + Ta uniform 313; + h uniform 1000000; + thicknessLayers ( 1 2 ); + kappaLayers ( 100 200 ); + kappaMethod solidThermo; + kappa none; + value uniform 300; + } + floor_to_domain3 + { + type zeroGradient; + value uniform 300; + } + floor_to_air + { + type compressible::turbulentTemperatureRadCoupledMixed; + value uniform 300; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + kappa none; + } + floor_to_solid + { + type compressible::turbulentTemperatureRadCoupledMixed; + value uniform 300; + Tnbr T; + kappaMethod solidThermo; + qrNbr none; + qr none; + kappa none; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/p b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/p new file mode 100644 index 00000000000..8de433ec89e --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/floor/p @@ -0,0 +1,67 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/floor"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + maxY + { + type calculated; + value uniform 0; + } + minX + { + type calculated; + value uniform 0; + } + maxX + { + type calculated; + value uniform 0; + } + minY + { + type calculated; + value uniform 0; + } + minZ + { + type calculated; + value uniform 0; + } + floor_to_domain3 + { + type calculated; + value uniform 0; + } + floor_to_air + { + type calculated; + value uniform 0; + } + floor_to_solid + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/T b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/T new file mode 100644 index 00000000000..7960a5d5afa --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/T @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/solid"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 350; + +boundaryField +{ + solid_to_domain3 + { + type fixedValue; + value uniform 300; + } + solid_to_air + { + type compressible::turbulentTemperatureRadCoupledMixed; + value uniform 350; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + kappa none; + } + solid_to_floor + { + type compressible::turbulentTemperatureRadCoupledMixed; + value uniform 300; + Tnbr T; + kappaMethod solidThermo; + qrNbr none; + qr none; + kappa none; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/p b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/p new file mode 100644 index 00000000000..0c8b07495ca --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/0.orig/solid/p @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/solid"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + solid_to_domain3 + { + type calculated; + value uniform 0; + } + solid_to_air + { + type calculated; + value uniform 0; + } + solid_to_floor + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allclean new file mode 100755 index 00000000000..28963cad538 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allclean @@ -0,0 +1,12 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions + +cleanCase0 + +rm -rf constant/cellToRegion +rm -rf constant/*/polyMesh # region meshes + +rm -rf constant/triSurface + +#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun new file mode 100755 index 00000000000..512225721f1 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun @@ -0,0 +1,16 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions + +# Setup case +./Allrun.pre + +#-- Run on single processor + +runApplication $(getApplication) + +echo +echo "Use paraFoam -touch-all to create files for paraview post-processing" +echo + +#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun-parallel new file mode 100755 index 00000000000..c856b1fbc3b --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun-parallel @@ -0,0 +1,25 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions + +# Setup case +./Allrun.pre + +#-- Run in parallel + +# Decompose +runApplication decomposePar -allRegions -constant + +# Set the initial fields +restore0Dir + +runParallel $(getApplication) + +# Reconstruct +runApplication reconstructPar -allRegions + +echo +echo "Use paraFoam -touch-all to create files for paraview post-processing" +echo + +#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun.pre new file mode 100755 index 00000000000..89c3e4c9a9d --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/Allrun.pre @@ -0,0 +1,32 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions + +runApplication blockMesh +runApplication topoSet +runApplication splitMeshRegions -cellZones -overwrite + +# Remove unwanted region +rm -rf 0/domain3 constant/domain3 system/domain3 + +# Remove fluid fields from solid regions (important for post-processing) +for region in $(foamListRegions solid) +do + rm -f 0/$region/{rho,mut,alphat,epsilon,k,U,p_rgh,qr,G,IDefault} + rm -f processor*/0/$region/{rho,mut,alphat,epsilon,k,U,p_rgh,qr,G,IDefault} +done + +# Set the initial fields +restore0Dir + +for region in $(foamListRegions) +do + runApplication -s $region changeDictionary \ + -region $region -subDict dictionaryReplacement +done + +rm log.topoSet + +runApplication topoSet -region air + +#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/boundaryRadiationProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/boundaryRadiationProperties new file mode 100644 index 00000000000..553a318eec7 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/boundaryRadiationProperties @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object boundaryRadiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +".*" +{ + type transparent; + + wallAbsorptionEmissionModel + { + type multiBandAbsorption; + emissivity (1 1); + absorptivity (0 0); + } +} + +air_to_solid +{ + type opaqueDiffusive; + wallAbsorptionEmissionModel + { + type multiBandAbsorption; + absorptivity (0.3 0.7); + emissivity (0.3 0.7); + }; +} + +air_to_floor +{ + type opaqueDiffusive; + wallAbsorptionEmissionModel + { + type multiBandAbsorption; + absorptivity (0.3 0.7); + emissivity (0.3 0.7); + }; +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/radiationProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/radiationProperties new file mode 100644 index 00000000000..44a0cac8031 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/radiationProperties @@ -0,0 +1,104 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation on; + +radiationModel fvDOM; + +fvDOMCoeffs +{ + nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X) + nTheta 6; // polar angles in PI (from Z to X-Y plane) + maxIter 25; // maximum number of iterations + tolerance 2e-2; // convergence criteria for radiation iteration + + useSolarLoad false; + + useExternalBeam true; + + // Energy spectrum for the external beam + spectralDistribution (2 1); +} + +solarCalculatorCoeffs +{ + // (solar calculator) + sunDirectionModel sunDirTracking; //sunDirConstant + + // Time interval to update Sun position (sec) + sunTrackingUpdateInterval 800; + + //sunDirection (1 0 -1); + + localStandardMeridian 9; // GMT offset (hours) + startDay 204; // day of the year + startTime 15; // time of the day (hours decimal) + longitude 139.74; // longitude (degrees) + latitude 35.658; // latitude (degrees) + + + // Grid orientation + gridUp (0 0 1); + gridEast (1 0 0); + + // sunLoadConstant-sunLoadFairWeatherConditions-SunLoadTheoreticalMaximum; + sunLoadModel sunLoadFairWeatherConditions;//sunLoadConstant;//; + + // Sun load constant model + //directSolarRad 500; // [w/m2] + //diffuseSolarRad 0; // [w/m2] + + // Fair Weather Conditions Model Constants. + // Calculate beta from the Solar calculator or input + A 500; // Apparent solar irradiation at air mass m = 0 + B 0.142; // Atmospheric extinction coefficient + //beta 45; // Solar altitude (in degrees) above the horizontal + + // Theoretical maximum model constants + Setrn 10; + SunPrime 1; + + // Ground reflectivity + groundReflectivity 0.2; + + // Solar diffusivity constants + C 0.058; // Model constant + +} + +// Number of flow iterations per radiation iteration +solverFreq 10; + +absorptionEmissionModel multiBandZoneAbsorptionEmission; + +multiBandZoneAbsorptionEmissionCoeffs +{ + absorptivity (0.01 0.01); + emissivity (0.01 0.01); + + zones + { + absorptivity ("trees" (20 20)); + emissivity ("trees" (20 20)); + } +} + +scatterModel none; + +sootModel none; + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/thermophysicalProperties new file mode 100644 index 00000000000..e9256fed6d5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/thermophysicalProperties @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture pureMixture; + transport const; + thermo hConst; + equationOfState perfectGas; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + molWeight 28.9; + } + thermodynamics + { + Cp 1000; + Hf 0; + } + transport + { + mu 1.8e-05; + Pr 0.7; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/turbulenceProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/turbulenceProperties new file mode 100644 index 00000000000..592b645a94f --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/air/turbulenceProperties @@ -0,0 +1,26 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kEpsilon; + turbulence on; + printCoeffs on; +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/radiationProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/radiationProperties new file mode 100644 index 00000000000..3f8b93f484a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/radiationProperties @@ -0,0 +1,35 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none;//opaqueSolid; + +absorptionEmissionModel none; + +multiBandAbsorptionEmissionCoeffs +{ + absorptivity (0.3 0.7); + emissivity (0.3 0.7); +} + +scatterModel none; + +sootModel none; + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/thermophysicalProperties new file mode 100644 index 00000000000..571eb65398b --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/floor/thermophysicalProperties @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------* \ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ 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 12; + } + + transport + { + kappa 80; + } + + thermodynamics + { + Hf 0; + Cp 450; + } + + equationOfState + { + rho 8000; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/g b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/g new file mode 100644 index 00000000000..ade05696e3b --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 0 -9.81); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/regionProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/regionProperties new file mode 100644 index 00000000000..b575faa377a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/regionProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object regionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +regions +( + fluid (air ) + solid (solid floor) +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/radiationProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/radiationProperties new file mode 100644 index 00000000000..320c9cc4893 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/radiationProperties @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + +absorptionEmissionModel none; + +scatterModel none; + +sootModel none; + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/thermophysicalProperties new file mode 100644 index 00000000000..c2e84df72eb --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/constant/solid/thermophysicalProperties @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------* \ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ 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 12; + } + + transport + { + kappa 80; + } + + thermodynamics + { + Hf 0; + Cp 250; + } + + equationOfState + { + rho 5000; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/changeDictionaryDict new file mode 100644 index 00000000000..7ff31a85eb0 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/changeDictionaryDict @@ -0,0 +1,147 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dictionaryReplacement +{ + U + { + boundaryField + { + ".*" + { + type pressureInletOutletVelocity; + value uniform (0 0 0); + phi phi; + } + + region0_to_floor_floor_zone + { + type fixedValue; + value uniform (0 0 0); + } + "air.*" + { + type fixedValue; + value uniform (0 0 0); + } + } + } + + T + { + internalField uniform 300; + boundaryField + { + ".*" + { + type inletOutlet; + value uniform 300; + inletValue uniform 300; + } + + "air.*" + { + type compressible::turbulentTemperatureRadCoupledMixed; + Tnbr T; + kappaMethod fluidThermo; + qrNbr none; + qr qr; + kappa none; + thermalInertia true; + value uniform 300; + } + } + } + + epsilon + { + internalField uniform 0.01; + boundaryField + { + ".*" + { + type inletOutlet; + inletValue uniform 0.01; + value uniform 0.01; + } + + "air.*" + { + type epsilonWallFunction; + value uniform 0.01; + } + + } + } + + k + { + internalField uniform 0.1; + boundaryField + { + ".*" + { + type inletOutlet; + inletValue uniform 0.1; + value uniform 0.1; + } + + "air.*" + { + type kqRWallFunction; + value uniform 0.1; + } + + } + } + + p_rgh + { + internalField uniform 1e5; + boundaryField + { + ".*" + { + type totalPressure; + p0 $internalField; + } + + "air.*" + { + type fixedFluxPressure; + value uniform 1e5; + } + + } + } + + p + { + internalField uniform 1e5; + boundaryField + { + ".*" + { + type calculated; + value uniform 1e5; + } + } + } + + +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/decomposeParDict new file mode 120000 index 00000000000..46638e60f61 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSchemes new file mode 100644 index 00000000000..4fb4e0744a3 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSchemes @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ 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 upwind; + div(phi,h) Gauss upwind; + div(phi,k) Gauss upwind; + div(phi,K) Gauss upwind; + div(phi,epsilon) Gauss upwind; + div(phi,R) Gauss upwind; + div(R) Gauss linear; + div(Ji,Ii_h) Gauss linearUpwind grad(U); + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSolution new file mode 100644 index 00000000000..36da00985b7 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/fvSolution @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "rho.*" + { + solver PCG; + preconditioner DIC; + tolerance 0; + relTol 0; + } + + p_rgh + { + solver PCG; + preconditioner DIC; + tolerance 1e-7; + relTol 0.05; + } + + p_rghFinal + { + $p_rgh; + relTol 0; + } + + "(U|h|e|k|epsilon|R|)" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-6; + relTol 0.1; + } + + "(U|h|e|k|epsilon|R)Final" + { + $U; + relTol 0; + } + + Ii + { + solver GAMG; + tolerance 1e-4; + relTol 0.1; + smoother symGaussSeidel; + maxIter 10; + nPostSweeps 1; + } +} + +PIMPLE +{ + momentumPredictor no; + nOuterCorrectors 0; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/topoSetDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/topoSetDict new file mode 100644 index 00000000000..627885384a4 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/air/topoSetDict @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + + // solid + { + name trees; + type cellSet; + action new; + source boxToCell; + box (5 15.5 0)(10 24.5 2); + } + + { + name trees; + type cellZoneSet; + action new; + source setToCellZone; + set trees; // cellSet + } +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/blockMeshDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/blockMeshDict new file mode 100644 index 00000000000..a3396c56866 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/blockMeshDict @@ -0,0 +1,96 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 1; + +vertices +( + ( 0 0 -1) + ( 40 0 -1) + ( 40 40 -1) + ( 0 40 -1) + ( 0 0 60) + ( 40 0 60) + ( 40 40 60) + ( 0 40 60) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (30 30 45) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + maxY + { + type patch; + faces + ( + (3 7 6 2) + ); + } + minX + { + type patch; + faces + ( + (0 4 7 3) + ); + } + maxX + { + type patch; + faces + ( + (2 6 5 1) + ); + } + minY + { + type patch; + faces + ( + (1 5 4 0) + ); + } + minZ + { + type wall; + faces + ( + (0 3 2 1) + ); + } + maxZ + { + type patch; + faces + ( + (4 5 6 7) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/controlDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/controlDict new file mode 100644 index 00000000000..ad5c7a63cd8 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/controlDict @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application chtMultiRegionFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 12000; + +deltaT 1; + +writeControl adjustableRunTime; + +writeInterval 100; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 7; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + +adjustTimeStep yes; + +maxCo 15; + +maxDeltaT 10; + +maxDi 0.25; + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/decomposeParDict new file mode 100644 index 00000000000..deadbea228d --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/decomposeParDict @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method scotch; + +coeffs +{ + n (2 2 1); +} + +scotchCoeffs +{ +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/extrudeToRegionMeshDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/extrudeToRegionMeshDict new file mode 100644 index 00000000000..3f6c75f184a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/extrudeToRegionMeshDict @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object extrudeToRegionMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +region floor; + +faceZones (floor_zone); + +oneD false; + +sampleMode nearestPatchFace; + +oneDPolyPatchType empty; //wedge + +extrudeModel linearNormal; + +nLayers 5; + +expansionRatio 1; + +adaptMesh true; // mapped for both + +linearNormalCoeffs +{ + thickness 1; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/changeDictionaryDict new file mode 100644 index 00000000000..7e36227608d --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/changeDictionaryDict @@ -0,0 +1,84 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dictionaryReplacement +{ + boundary + { + floor_to_domain3 + { + type patch; + } + } + T + { + internalField uniform 300; + + boundaryField + { + ".*" + { + type zeroGradient; + value uniform 300; + } + + floor_to_solid + { + type compressible::turbulentTemperatureRadCoupledMixed; + Tnbr T; + kappaMethod solidThermo; + qrNbr none; + qr none; + kappa none; + thermalInertia true; + value uniform 300; + } + + floor_to_air + { + type compressible::turbulentTemperatureRadCoupledMixed; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + kappa none; + thermalInertia true; + value uniform 300; + } + + floor_to_domain3 + { + type zeroGradient; + value uniform 300; + } + + minZ + { + type externalWallHeatFluxTemperature; + mode coefficient; + Ta uniform 313.0; + h uniform 10e5; + kappaMethod solidThermo; + kappa none; + thicknessLayers (1 2); + kappaLayers (100 200); + value uniform 300.0; + } + } + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/decomposeParDict new file mode 120000 index 00000000000..46638e60f61 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSchemes new file mode 100644 index 00000000000..f2bd951211a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSchemes @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ 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/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSolution new file mode 100644 index 00000000000..69e260222f6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/floor/fvSolution @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "h.*" + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0; + } +} + +PIMPLE +{ + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + fields + { + } + equations + { + h 1; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSchemes new file mode 100644 index 00000000000..f71ea8fad7a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSchemes @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ +} + +gradSchemes +{ +} + +divSchemes +{ +} + +laplacianSchemes +{ +} + +interpolationSchemes +{ +} + +snGradSchemes +{ +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSolution new file mode 100644 index 00000000000..26c25b2fb5e --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/fvSolution @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +PIMPLE +{ + +} +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/changeDictionaryDict new file mode 100644 index 00000000000..63fe91bbf50 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/changeDictionaryDict @@ -0,0 +1,65 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dictionaryReplacement +{ + boundary + { + solid_to_domain3 + { + type patch; + } + } + T + { + internalField uniform 300; + + boundaryField + { + solid_to_air + { + type compressible::turbulentTemperatureRadCoupledMixed; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + kappa none; + thermalInertia true; + value uniform 300; + } + + solid_to_floor + { + type compressible::turbulentTemperatureRadCoupledMixed; + Tnbr T; + kappaMethod solidThermo; + qrNbr none; + qr none; + kappa none; + thermalInertia true; + value uniform 300; + } + + solid_to_domain3 + { + type fixedValue; + value uniform 300.0; + } + } + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/decomposeParDict new file mode 120000 index 00000000000..46638e60f61 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSchemes new file mode 100644 index 00000000000..aa4694dc390 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSchemes @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ 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/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSolution new file mode 100644 index 00000000000..e37f2636ccb --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/solid/fvSolution @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "h.*" + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0.; + } +} + +PIMPLE +{ + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + fields + { + } + equations + { + h 1; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/topoSetDict b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/topoSetDict new file mode 100644 index 00000000000..a3f304babe4 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/solarBeamWithTrees/system/topoSetDict @@ -0,0 +1,104 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1906 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + + // solid + { + name solid; + type cellSet; + action new; + source boxToCell; + box (15.5 15.5 0)(24.5 24.5 9); + } + + // floor + { + name floor; + type cellSet; + action new; + source boxToCell; + box (0 0 -2)(41 41 0); + } + + { + name floor; + type cellZoneSet; + action new; + source setToCellZone; + set floor; + } + + //air + { + name solid; + type cellSet; + action invert; + } + + { + name solid; + type cellSet; + action subtract; + source cellToCell; + set floor; + } + + { + name air; + type cellZoneSet; + action new; + source setToCellZone; + set solid; // cellSet + } + + { + name cavity; + type cellSet; + action new; + source boxToCell; + box (17 17 0)(23 23 7.5); + } + + //- Define again solid + { + name solidCells; + type cellSet; + action new; + source boxToCell; + box (15.5 15.5 0)(24.5 24.5 9); + } + + { + name solidCells; + type cellSet; + action subtract; + source cellToCell; + set cavity; + } + + { + name solid; + type cellZoneSet; + action new; + source setToCellZone; + set solidCells; // cellSet + } +); + +// ************************************************************************* // -- GitLab