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 0000000000000000000000000000000000000000..c6af56740ee2a710002815260480e112fc3faa0a --- /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 0000000000000000000000000000000000000000..14ca932cec1a3ece0f36b6c153e66b3c6886e364 --- /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 0000000000000000000000000000000000000000..06ec8c3a4ef05a22f854cf3fea826e9e05d60373 --- /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 0000000000000000000000000000000000000000..90357f56bb2cf04efc3d772fea2419dc2f573431 --- /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 0000000000000000000000000000000000000000..068430f16b1fecc192ef3bc39bd3e9e826e2fb2d --- /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 0000000000000000000000000000000000000000..58a7088796016c935aa8a060ed790b6553b20b01 --- /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 0000000000000000000000000000000000000000..63d63a60a5637ba9af4e754a792339c6a5a25607 --- /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 0000000000000000000000000000000000000000..9d82df4312e73859ed62eab73fd83091a4dab201 --- /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 0000000000000000000000000000000000000000..e8a0cf937e7a2a6a6af150abe0e5eb9e1aaa30fd --- /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 0000000000000000000000000000000000000000..b641565959f5808122c12266a1ab2640e77d65d9 --- /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 0000000000000000000000000000000000000000..66453c1bae2622eeb032d0eacba0ff25469ed0e6 --- /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 0000000000000000000000000000000000000000..bf7d3330e41cf7f9ef8ef80a94042a22038ded62 --- /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 0000000000000000000000000000000000000000..8de433ec89ec9371e82a5a24ad73823e090db4cf --- /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 0000000000000000000000000000000000000000..7960a5d5afa112462ccdc311c79d41d4e55eae94 --- /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 0000000000000000000000000000000000000000..0c8b07495cadadd763eb363fa55e2d3238c4e13d --- /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 0000000000000000000000000000000000000000..28963cad53851f17aef929fc0d3ce443d7155748 --- /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 0000000000000000000000000000000000000000..512225721f14ecec2ba9ac276ba511037f0aa6df --- /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 0000000000000000000000000000000000000000..c856b1fbc3b73a93b8f5c47dcecc6c54aab786a6 --- /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 0000000000000000000000000000000000000000..89c3e4c9a9d3d9fed4a84f84e3ac2afff414a1c8 --- /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 0000000000000000000000000000000000000000..553a318eec7225812077a4aa6534b260726b84a1 --- /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 0000000000000000000000000000000000000000..44a0cac803147506fd3c309de8d55db23816b9a4 --- /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 0000000000000000000000000000000000000000..e9256fed6d53c4335ea2aa1c49ea457d0be1bf53 --- /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 0000000000000000000000000000000000000000..592b645a94f0be7a0746ab9e1e08d5f40a0dd0a1 --- /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 0000000000000000000000000000000000000000..3f8b93f484ac368305314a770f87c70c0d1a514c --- /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 0000000000000000000000000000000000000000..571eb65398b435c181221ecc938ea05a0b42d445 --- /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 0000000000000000000000000000000000000000..ade05696e3b0d00dcd4ef22fab389cb4ed7a108b --- /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 0000000000000000000000000000000000000000..b575faa377a482557a8aad03f7175d11861b6526 --- /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 0000000000000000000000000000000000000000..320c9cc4893b660ccd43185e1a47ec8fe28f2c88 --- /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 0000000000000000000000000000000000000000..c2e84df72eb3972b4ad48e06e0246590392534b3 --- /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 0000000000000000000000000000000000000000..7ff31a85eb0d4f429f9a972cb62c7b6444b7f4b5 --- /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 0000000000000000000000000000000000000000..46638e60f61f453fde97c51772ad6111792db0f6 --- /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 0000000000000000000000000000000000000000..4fb4e0744a32ea9d41a50e54b22cc50fd86418bb --- /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 0000000000000000000000000000000000000000..36da00985b7b1b9acb898062a4239f139e0c383e --- /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 0000000000000000000000000000000000000000..627885384a441dfa36a6a118768000e5b8da5f18 --- /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 0000000000000000000000000000000000000000..a3396c56866cbeb83f2006c56ffcf4bcb0de5638 --- /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 0000000000000000000000000000000000000000..ad5c7a63cd83df9be15a283119fe90ad58e213a0 --- /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 0000000000000000000000000000000000000000..deadbea228de76c2f69ea85241b54b1cefe337e7 --- /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 0000000000000000000000000000000000000000..3f6c75f184a1a0c9b5efa81b059a7a57f3590bfe --- /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 0000000000000000000000000000000000000000..7e36227608ded51d0f67bfaa5e4e4c58a8344b85 --- /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 0000000000000000000000000000000000000000..46638e60f61f453fde97c51772ad6111792db0f6 --- /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 0000000000000000000000000000000000000000..f2bd951211a1ccd385fa092a345c27aca7a4bde1 --- /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 0000000000000000000000000000000000000000..69e260222f69223d466956a41b95ea969f120210 --- /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 0000000000000000000000000000000000000000..f71ea8fad7aaa7b35b7228a797a4f63942f90b6d --- /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 0000000000000000000000000000000000000000..26c25b2fb5e5a5eb258559c29a28a8dc6cc39da9 --- /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 0000000000000000000000000000000000000000..63fe91bbf50787568e0813ff607875f94e02f9e5 --- /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 0000000000000000000000000000000000000000..46638e60f61f453fde97c51772ad6111792db0f6 --- /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 0000000000000000000000000000000000000000..aa4694dc39011a09087961cddecbe7cd052bbdd8 --- /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 0000000000000000000000000000000000000000..e37f2636ccbc4ee3aa76cc2684b1fa2ef144a9ba --- /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 0000000000000000000000000000000000000000..a3f304babe49faae517b92592b5f4d2cc3b3fa4b --- /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 + } +); + +// ************************************************************************* //