diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/T index 5b8e8a2251..83042fd51c 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/T @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - location "0/bottomAir"; + location "0/bottomWater"; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -39,7 +39,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "bottomWater_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/U b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/U index f139f48da2..8fa0f1e470 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/U @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volVectorField; - location "0/bottomAir"; + location "0/bottomWater"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/alphat b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/alphat index bc648de419..690cac056d 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/alphat +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/alphat @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - location "0/bottomAir"; + location "0/bottomWater"; object alphat; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/epsilon index 7883fda47e..c9fb4f9846 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/epsilon +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/epsilon @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - location "0/bottomAir"; + location "0/bottomWater"; object epsilon; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -39,7 +39,7 @@ boundaryField type epsilonWallFunction; value $internalField; } - ".*_to_.*" + "bottomWater_to_.*" { type epsilonWallFunction; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/k b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/k index a426f5e3a7..0a987c1a0d 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/k +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/k @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - location "0/bottomAir"; + location "0/bottomWater"; object k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -39,7 +39,7 @@ boundaryField type kqRWallFunction; value $internalField; } - ".*_to_.*" + "bottomWater_to_.*" { type kqRWallFunction; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p index 5d553447c5..a3f07bfcad 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - location "0/bottomAir"; + location "0/bottomWater"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p_rgh index ccccc34dbc..c28838fc74 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p_rgh +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/p_rgh @@ -10,7 +10,7 @@ FoamFile version 2.0; format ascii; class volScalarField; - location "0/bottomAir"; + location "0/bottomWater"; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -38,7 +38,7 @@ boundaryField type fixedFluxPressure; value $internalField; } - ".*_to_.*" + "bottomWater_to_.*" { type fixedFluxPressure; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/T index e38a222e27..dc323920d0 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/T @@ -28,7 +28,7 @@ boundaryField type fixedValue; value uniform 500; } - ".*_to_.*" + "heater_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/p index 23c3a7e0fc..025265bff9 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/heater/p @@ -28,7 +28,7 @@ boundaryField type calculated; value $internalField; } - ".*_to_.*" + "heater_to_.*" { type calculated; value uniform 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/T index ee1890dbf1..ea3e51cf15 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/T @@ -28,7 +28,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "leftSolid_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/p index 0f2d23fcb0..735c48d0db 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/leftSolid/p @@ -28,7 +28,7 @@ boundaryField type calculated; value $internalField; } - ".*_to_.*" + "leftSolid_to_.*" { type calculated; value uniform 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/T index f6df00f1fc..2afe8b3907 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/T @@ -28,7 +28,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "rightSolid_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/p index caf5eac4d7..0dc6d4fd2e 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rightSolid/p @@ -28,7 +28,7 @@ boundaryField type calculated; value $internalField; } - ".*_to_.*" + "rightSolid_to_.*" { type calculated; value uniform 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/T index 5f2bf163db..226ecff3a1 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/T @@ -39,7 +39,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/U b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/U index ca9e448383..fd8f3e73c5 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/U @@ -37,7 +37,7 @@ boundaryField { type noSlip; } - ".*_to_.*" + "topAir_to_.*" { type noSlip; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/epsilon index 26baa3ef52..7098373645 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/epsilon +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/epsilon @@ -39,7 +39,7 @@ boundaryField type epsilonWallFunction; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type epsilonWallFunction; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/k b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/k index 55dbb28014..90c71698c8 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/k +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/k @@ -39,7 +39,7 @@ boundaryField type kqRWallFunction; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type kqRWallFunction; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/p_rgh index 394b9e56b4..53684e3ce0 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/p_rgh +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/topAir/p_rgh @@ -38,7 +38,7 @@ boundaryField type fixedFluxPressure; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type fixedFluxPressure; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/G b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/G new file mode 100644 index 0000000000..1bcd3f6920 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/G @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/bottomAir"; + object G; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 0 -3 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + "(min|max)(X|Y|Z)" + { + type MarshakRadiation; + value $internalField; + emissivityMode lookup; + emissivity uniform 1; + } + "bottomAir_to_.*" + { + type MarshakRadiation; + value $internalField; + emissivityMode solidRadiation; + emissivity uniform 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/IDefault b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/IDefault new file mode 100644 index 0000000000..321b07a5e3 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/IDefault @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/bottomAir"; + object IDefault; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 0 -3 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + "(min|max)(X|Y|Z)" + { + type greyDiffusiveRadiation; + value $internalField; + emissivityMode lookup; + emissivity uniform 1; + } + "bottomAir_to_.*" + { + type greyDiffusiveRadiation; + value $internalField; + emissivityMode solidRadiation; + emissivity uniform 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/T new file mode 100644 index 0000000000..f2d2df5b84 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/T @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/bottomAir"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(min|max)(X|Y|Z)" + { + type zeroGradient; + value $internalField; + } + "bottomAir_to_.*" + { + type compressible::turbulentTemperatureRadCoupledMixed; + value $internalField; + Tnbr T; + kappaMethod fluidThermo; + qrNbr none; + qr qr; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/U b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/U similarity index 82% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/U rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/U index bc788b73e0..47b1607dab 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/U @@ -10,21 +10,24 @@ FoamFile version 2.0; format ascii; class volVectorField; + location "0/bottomAir"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 1 -1 0 0 0 0]; +dimensions [ 0 1 -1 0 0 0 0 ]; -internalField uniform (0.1 0 0); +internalField uniform (0.01 0 0); boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { - type calculated; - value $internalField; + type noSlip; } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/IDefault b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/alphat similarity index 87% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/IDefault rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/alphat index 2f3ab23fee..bc648de419 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/IDefault +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/alphat @@ -10,16 +10,19 @@ FoamFile version 2.0; format ascii; class volScalarField; - object IDefault; + location "0/bottomAir"; + object alphat; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [1 0 -3 0 0 0 0]; +dimensions [1 -1 -1 0 0 0 0]; internalField uniform 0; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { type calculated; @@ -27,4 +30,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/epsilon similarity index 85% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/epsilon rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/epsilon index 7c2600136e..c12c7ab843 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/epsilon +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/epsilon @@ -10,19 +10,22 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0/bottomAir"; object epsilon; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -3 0 0 0 0]; +dimensions [ 0 2 -3 0 0 0 0 ]; internalField uniform 0.01; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { - type calculated; + type epsilonWallFunction; value $internalField; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/k b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/k similarity index 85% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/k rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/k index fe2c7fec89..0c4d1d5b59 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/k +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/k @@ -10,19 +10,22 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0/bottomAir"; object k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -2 0 0 0 0]; +dimensions [ 0 2 -2 0 0 0 0 ]; internalField uniform 0.1; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { - type calculated; + type kqRWallFunction; value $internalField; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/p similarity index 84% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/T rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/p index ac5fefc72f..03f9e4f289 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/p @@ -10,16 +10,19 @@ FoamFile version 2.0; format ascii; class volScalarField; - object T; + location "0/bottomAir"; + object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 0 0 1 0 0 0]; +dimensions [ 1 -1 -2 0 0 0 0 ]; -internalField uniform 300; +internalField uniform 100000; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { type calculated; @@ -27,4 +30,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/p_rgh similarity index 82% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/p_rgh rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/p_rgh index 82a99f3e40..e7974200f8 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/p_rgh +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/p_rgh @@ -10,21 +10,25 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0/bottomAir"; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [1 -1 -2 0 0 0 0]; +dimensions [ 1 -1 -2 0 0 0 0 ]; -internalField uniform 1e5; +internalField uniform 100000; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { - type calculated; + type fixedFluxPressure; value $internalField; } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/qr b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/qr new file mode 100644 index 0000000000..310f08bbd5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/qr @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/bottomAir"; + object qr; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 0 -3 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + "(min|max)(X|Y|Z)" + { + type greyDiffusiveRadiationViewFactor; + value $internalField; + emissivityMode lookup; + qro uniform 0; + emissivity uniform 1; + } + "bottomAir_to_.*" + { + type greyDiffusiveRadiationViewFactor; + value $internalField; + emissivityMode solidRadiation; + qro uniform 0; + emissivity uniform 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/T new file mode 100644 index 0000000000..c266a46ab9 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/T @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/heater"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + minY + { + type fixedValue; + value uniform 500; + } + "(min|max)(X|Z)" + { + type zeroGradient; + value uniform 300; + } + "heater_to_.*Air" + { + type compressible::turbulentTemperatureRadCoupledMixed; + value $internalField; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + } + "heater_to_.*Solid" + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value $internalField; + Tnbr T; + kappaMethod solidThermo; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/p new file mode 100644 index 0000000000..025265bff9 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/p @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/heater"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(min|max)(X|Y|Z)" + { + type calculated; + value $internalField; + } + "heater_to_.*" + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/T new file mode 100644 index 0000000000..8134d3a917 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/T @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/leftSolid"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(min|max)(X|Y|Z)" + { + type zeroGradient; + value $internalField; + } + "leftSolid_to_.*Air" + { + type compressible::turbulentTemperatureRadCoupledMixed; + value $internalField; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + } + leftSolid_to_heater + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value $internalField; + Tnbr T; + kappaMethod solidThermo; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/p new file mode 100644 index 0000000000..735c48d0db --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/p @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/leftSolid"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(min|max)(X|Y|Z)" + { + type calculated; + value $internalField; + } + "leftSolid_to_.*" + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/T new file mode 100644 index 0000000000..dad439b913 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/T @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/rightSolid"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(min|max)(X|Y|Z)" + { + type zeroGradient; + value $internalField; + } + "rightSolid_to_.*Air" + { + type compressible::turbulentTemperatureRadCoupledMixed; + value $internalField; + Tnbr T; + kappaMethod solidThermo; + qrNbr qr; + qr none; + } + rightSolid_to_heater + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value $internalField; + Tnbr T; + kappaMethod solidThermo; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/p new file mode 100644 index 0000000000..0dc6d4fd2e --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/p @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/rightSolid"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(min|max)(X|Y|Z)" + { + type calculated; + value $internalField; + } + "rightSolid_to_.*" + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/qr b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/G similarity index 69% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/qr rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/G index b7ec516043..89cb769d66 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/qr +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/G @@ -10,21 +10,32 @@ FoamFile version 2.0; format ascii; class volScalarField; - object qr; + location "0/topAir"; + object G; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [1 0 -3 0 0 0 0]; +dimensions [ 1 0 -3 0 0 0 0 ]; internalField uniform 0; boundaryField { - ".*" + "(min|max)(X|Y|Z)" { - type calculated; + type MarshakRadiation; value $internalField; + emissivityMode lookup; + emissivity uniform 1; + } + "topAir_to_.*" + { + type MarshakRadiation; + value $internalField; + emissivityMode solidRadiation; + emissivity uniform 1; } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/IDefault b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/IDefault new file mode 100644 index 0000000000..c768d169eb --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/IDefault @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/topAir"; + object IDefault; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 0 -3 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + "(min|max)(X|Y|Z)" + { + type greyDiffusiveRadiation; + value $internalField; + emissivityMode lookup; + emissivity uniform 1; + } + "topAir_to_.*" + { + type greyDiffusiveRadiation; + value $internalField; + emissivityMode solidRadiation; + emissivity uniform 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/T new file mode 100644 index 0000000000..c4bebc06a7 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/T @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/topAir"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 1 0 0 0 ]; + +internalField uniform 300; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type inletOutlet; + value $internalField; + inletValue $internalField; + } + "(min|max)(Y|Z)" + { + type zeroGradient; + value $internalField; + } + "topAir_to_.*" + { + type compressible::turbulentTemperatureRadCoupledMixed; + value $internalField; + Tnbr T; + kappaMethod fluidThermo; + qrNbr none; + qr qr; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/U b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/U new file mode 100644 index 0000000000..fd8f3e73c5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/U @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0/topAir"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 1 -1 0 0 0 0 ]; + +internalField uniform (0.1 0 0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type pressureInletOutletVelocity; + value $internalField; + } + "(min|max)(Y|Z)" + { + type noSlip; + } + "topAir_to_.*" + { + type noSlip; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/G b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/alphat similarity index 87% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/G rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/alphat index f444e87283..6f5552d08d 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/G +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/alphat @@ -10,16 +10,19 @@ FoamFile version 2.0; format ascii; class volScalarField; - object G; + location "0/topAir"; + object alphat; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [1 0 -3 0 0 0 0]; +dimensions [1 -1 -1 0 0 0 0]; internalField uniform 0; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { type calculated; @@ -27,4 +30,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/epsilon new file mode 100644 index 0000000000..7098373645 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/epsilon @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/topAir"; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -3 0 0 0 0 ]; + +internalField uniform 0.01; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type inletOutlet; + value $internalField; + inletValue $internalField; + } + "(min|max)(Y|Z)" + { + type epsilonWallFunction; + value $internalField; + } + "topAir_to_.*" + { + type epsilonWallFunction; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/k b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/k new file mode 100644 index 0000000000..90c71698c8 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/k @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/topAir"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; + +internalField uniform 0.1; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + minX + { + type fixedValue; + value $internalField; + } + maxX + { + type inletOutlet; + value $internalField; + inletValue $internalField; + } + "(min|max)(Y|Z)" + { + type kqRWallFunction; + value $internalField; + } + "topAir_to_.*" + { + type kqRWallFunction; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p similarity index 86% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/p rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p index cbd69c4464..48b9debbb7 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p @@ -10,16 +10,19 @@ FoamFile version 2.0; format ascii; class volScalarField; + location "0/topAir"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [1 -1 -2 0 0 0 0]; +dimensions [ 1 -1 -2 0 0 0 0 ]; -internalField uniform 1e5; +internalField uniform 100000; boundaryField { + #includeEtc "caseDicts/setConstraintTypes" + ".*" { type calculated; @@ -27,4 +30,5 @@ boundaryField } } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p_rgh new file mode 100644 index 0000000000..53684e3ce0 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p_rgh @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/topAir"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 -1 -2 0 0 0 0 ]; + +internalField uniform 100000; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + minX + { + type fixedFluxPressure; + value $internalField; + } + maxX + { + type fixedValue; + value $internalField; + } + "(min|max)(Y|Z)" + { + type fixedFluxPressure; + value $internalField; + } + "topAir_to_.*" + { + type fixedFluxPressure; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/qr b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/qr new file mode 100644 index 0000000000..019d000e57 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/qr @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0/topAir"; + object qr; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 1 0 -3 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + "(min|max)(X|Y|Z)" + { + type greyDiffusiveRadiationViewFactor; + value $internalField; + emissivityMode lookup; + qro uniform 0; + emissivity uniform 1; + } + "topAir_to_.*" + { + type greyDiffusiveRadiationViewFactor; + value $internalField; + emissivityMode solidRadiation; + qro uniform 0; + emissivity uniform 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allclean index b23f6388c4..b59e197166 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allclean @@ -5,31 +5,16 @@ cd ${0%/*} || exit 1 # Run from this directory . $WM_PROJECT_DIR/bin/tools/CleanFunctions cleanCase -rm -rf VTK -rm -rf constant/cellToRegion constant/polyMesh/sets -rm -rf 0/bottomAir -rm -rf 0/topAir -rm -rf 0/heater -rm -rf 0/leftSolid -rm -rf 0/rightSolid -rm -f 0/cellToRegion - -rm -rf constant/bottomAir/polyMesh -rm -rf constant/topAir/polyMesh -rm -rf constant/heater/polyMesh -rm -rf constant/leftSolid/polyMesh -rm -rf constant/rightSolid/polyMesh - -rm -f constant/bottomAir/F -rm -f constant/bottomAir/constructMap* -rm -f constant/bottomAir/finalAgglom -rm -f constant/bottomAir/globalFaceFaces -rm -f constant/bottomAir/subMap - -rm -f constant/topAir/F -rm -f constant/topAir/constructMap* -rm -f constant/topAir/finalAgglom -rm -f constant/topAir/globalFaceFaces -rm -f constant/topAir/subMap +rm -rf \ + 0/cellToRegion \ + 0/*/cellToRegion \ + 0/*/facesAgglomeration \ + 0/*/viewFactorField \ + constant/*/F \ + constant/*/construct* \ + constant/*/finalAgglom \ + constant/*/globalFaceFaces \ + constant/*/polyMesh \ + constant/*/subMap #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun index 8224dffa9c..5523cefbdf 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun @@ -1,38 +1,23 @@ #!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +runApplication blockMesh +runApplication topoSet +runApplication splitMeshRegions -cellZones -overwrite -# Setup case -./Allrun.pre - - -#-- Run on single processor - -# Agglomerate patch faces +# Agglomerate patch faces and generate view factors for i in bottomAir topAir do - runApplication -s $i \ - faceAgglomerate -region $i -dict constant/viewFactorsDict -done - -# Generate view factors -for i in bottomAir topAir -do - runApplication -s $i \ - viewFactorsGen -region $i + runApplication -s $i faceAgglomerate -region $i -dict \ + constant/viewFactorsDict + runApplication -s $i viewFactorsGen -region $i done runApplication $(getApplication) - - -echo -echo "creating files for paraview post-processing" -echo paraFoam -touchAll #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun-parallel deleted file mode 100755 index 919b7d0b75..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun-parallel +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions - - -# Setup case -./Allrun.pre - - -#-- Run in parallel - -# Decompose -runApplication decomposePar -allRegions - -# Agglomerate patch faces -for i in bottomAir topAir -do - runParallel -s $i -np 4 \ - faceAgglomerate -region $i -dict constant/viewFactorsDict -done - -# Generate view factors -for i in bottomAir topAir -do - runParallel -s $i -np 4 \ - viewFactorsGen -region $i -done - -# Run -runParallel $(getApplication) - -# Reconstruct -runApplication reconstructPar -allRegions - - - -echo -echo "creating files for paraview post-processing" -echo -paraFoam -touchAll - -#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun.pre deleted file mode 100755 index e2f33a7785..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun.pre +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions - -runApplication blockMesh -runApplication topoSet -runApplication splitMeshRegions -cellZones -overwrite - -# remove fluid fields from solid regions (important for post-processing) -for i in heater leftSolid rightSolid -do - rm -f 0*/$i/{rho,nut,alphat,epsilon,k,U,p_rgh,qr,G,IDefault} -done - -for i in bottomAir topAir heater leftSolid rightSolid -do - runApplication -s $i changeDictionary -region $i -done - - -#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict index 79882275de..9dbf6adf37 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/constant/topAir/viewFactorsDict @@ -14,7 +14,6 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - writeViewFactorMatrix true; writeFacesAgglomeration true; writePatchViewFactors false; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict deleted file mode 100644 index 7be44a3a52..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict +++ /dev/null @@ -1,184 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object changeDictionaryDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -boundary -{ - minX - { - type wall; - } - maxX - { - type wall; - } -} - -U -{ - internalField uniform (0.01 0 0); - boundaryField - { - ".*" - { - type fixedValue; - value uniform (0 0 0); - } - } -} - -T -{ - internalField uniform 300; - boundaryField - { - ".*" - { - type zeroGradient; - } - - "bottomAir_to_.*" - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod fluidThermo; - qrNbr none; - qr qr; - value uniform 300; - } - } -} - -epsilon -{ - internalField uniform 0.01; - boundaryField - { - ".*" - { - type epsilonWallFunction; - value uniform 0.01; - } - } -} - -k -{ - internalField uniform 0.1; - boundaryField - { - ".*" - { - type kqRWallFunction; - value uniform 0.1; - } - } -} - -p_rgh -{ - internalField uniform 1e5; - boundaryField - { - ".*" - { - type fixedFluxPressure; - value uniform 1e5; - } - } -} - -p -{ - internalField uniform 1e5; - boundaryField - { - ".*" - { - type calculated; - value uniform 1e5; - } - } -} - -qr -{ - internalField uniform 0; - boundaryField - { - ".*" - { - type greyDiffusiveRadiationViewFactor; - emissivityMode lookup; - qro uniform 0; - emissivity uniform 1.0; - value uniform 0; - } - - "bottomAir_to_.*" - { - type greyDiffusiveRadiationViewFactor; - emissivityMode solidRadiation; - qro uniform 0; - value uniform 0; - } - } -} - -G -{ - internalField uniform 0; - boundaryField - { - ".*" - { - type MarshakRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } - - "bottomAir_to_.*" - { - type MarshakRadiation; - emissivityMode solidRadiation; - value uniform 0; - } - } -} - -IDefault -{ - internalField uniform 0; - boundaryField - { - ".*" - { - type greyDiffusiveRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } - - "bottomAir_to_.*" - { - type greyDiffusiveRadiation; - emissivityMode solidRadiation; - value uniform 0; - } - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict deleted file mode 100644 index f051e7b79a..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - note "mesh decomposition control dictionary"; - location "system"; - object decomposeParDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 4; - -method scotch; - -simpleCoeffs -{ - n (2 2 1); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (2 2 1); - delta 0.001; - order xyz; -} - - -manualCoeffs -{ - dataFile "decompositionData"; -} - - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict new file mode 120000 index 0000000000..46638e60f6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/decomposeParDict index e028e1c2a5..c063349c2f 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/decomposeParDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/decomposeParDict @@ -19,54 +19,7 @@ FoamFile numberOfSubdomains 4; -//- Keep owner and neighbour on same processor for faces in zones: -// preserveFaceZones (heater solid1 solid3); - method scotch; -// method hierarchical; -// method simple; -// method manual; - -simpleCoeffs -{ - n (2 2 1); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (2 2 1); - delta 0.001; - order xyz; -} - -scotchCoeffs -{ - // processorWeights - //( - // 1 - // 1 - // 1 - // 1 - //); - // writeGraph true; - // strategy "b"; -} - -manualCoeffs -{ - dataFile "decompositionData"; -} - - -//// Is the case distributed -//distributed yes; -//// Per slave (so nProcs-1 entries) the directory above the case. -//roots -//( -// "/tmp" -// "/tmp" -//); // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/changeDictionaryDict deleted file mode 100644 index d27d0cbf24..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/changeDictionaryDict +++ /dev/null @@ -1,80 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object changeDictionaryDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -boundary -{ - minY - { - type patch; - } - minZ - { - type patch; - } - maxZ - { - type patch; - } -} - -T -{ - internalField uniform 300; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 300; - } - - heater_to_topAir - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod solidThermo; - qrNbr qr; - qr none; - value uniform 300; - } - - heater_to_bottomAir - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod solidThermo; - qrNbr qr; - qr none; - value uniform 300; - } - - "heater_to_.*" - { - type compressible::turbulentTemperatureCoupledBaffleMixed; - Tnbr T; - kappaMethod solidThermo; - value uniform 300; - } - minY - { - type fixedValue; - value uniform 500; - } - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict deleted file mode 100644 index fd8f4413c3..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict +++ /dev/null @@ -1,46 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - note "mesh decomposition control dictionary"; - location "system"; - object decomposeParDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 4; - - -method scotch; - -simpleCoeffs -{ - n (2 2 1); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (2 2 1); - delta 0.001; - order xyz; -} - - -manualCoeffs -{ - dataFile "decompositionData"; -} - - - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict new file mode 120000 index 0000000000..46638e60f6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/changeDictionaryDict deleted file mode 100644 index a22671d9cd..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/changeDictionaryDict +++ /dev/null @@ -1,71 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object changeDictionaryDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -boundary -{ - minZ - { - type patch; - } - maxZ - { - type patch; - } -} - -T -{ - internalField uniform 300; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 300; - } - - leftSolid_to_topAir - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod solidThermo; - qrNbr qr; - qr none; - value uniform 300; - } - - leftSolid_to_bottomAir - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod solidThermo; - qrNbr qr; - qr none; - value uniform 300; - } - - "leftSolid_to_.*" - { - type compressible::turbulentTemperatureCoupledBaffleMixed; - Tnbr T; - kappaMethod solidThermo; - value uniform 300; - } - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict deleted file mode 100644 index fd8f4413c3..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict +++ /dev/null @@ -1,46 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - note "mesh decomposition control dictionary"; - location "system"; - object decomposeParDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 4; - - -method scotch; - -simpleCoeffs -{ - n (2 2 1); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (2 2 1); - delta 0.001; - order xyz; -} - - -manualCoeffs -{ - dataFile "decompositionData"; -} - - - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict new file mode 120000 index 0000000000..46638e60f6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution deleted file mode 100644 index 611693d331..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - "h.*" - { - solver PCG; - preconditioner DIC; - tolerance 1e-06; - relTol 0.1; - } -} - -PIMPLE -{ - nNonOrthogonalCorrectors 0; -} - -relaxationFactors -{ - equations - { - "h.*" 0.7; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution new file mode 120000 index 0000000000..0bde0fc62f --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution @@ -0,0 +1 @@ +../heater/fvSolution \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/changeDictionaryDict deleted file mode 100644 index 039be56e01..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/changeDictionaryDict +++ /dev/null @@ -1,71 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object changeDictionaryDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -boundary -{ - minZ - { - type patch; - } - maxZ - { - type patch; - } -} - -T -{ - internalField uniform 300; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 300; - } - - rightSolid_to_topAir - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod solidThermo; - qrNbr qr; - qr none; - value uniform 300; - } - - rightSolid_to_bottomAir - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod solidThermo; - qrNbr qr; - qr none; - value uniform 300; - } - - "rightSolid_to_.*" - { - type compressible::turbulentTemperatureCoupledBaffleMixed; - Tnbr T; - kappaMethod solidThermo; - value uniform 300; - } - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict deleted file mode 100644 index fd8f4413c3..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict +++ /dev/null @@ -1,46 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - note "mesh decomposition control dictionary"; - location "system"; - object decomposeParDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 4; - - -method scotch; - -simpleCoeffs -{ - n (2 2 1); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (2 2 1); - delta 0.001; - order xyz; -} - - -manualCoeffs -{ - dataFile "decompositionData"; -} - - - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict new file mode 120000 index 0000000000..46638e60f6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution deleted file mode 100644 index 611693d331..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - "h.*" - { - solver PCG; - preconditioner DIC; - tolerance 1e-06; - relTol 0.1; - } -} - -PIMPLE -{ - nNonOrthogonalCorrectors 0; -} - -relaxationFactors -{ - equations - { - "h.*" 0.7; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution new file mode 120000 index 0000000000..0bde0fc62f --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution @@ -0,0 +1 @@ +../heater/fvSolution \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict deleted file mode 100644 index 81ef8f2f7e..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict +++ /dev/null @@ -1,231 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object changeDictionaryDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -U -{ - internalField uniform (0.1 0 0); - boundaryField - { - ".*" - { - type fixedValue; - value uniform (0 0 0); - } - minX - { - type fixedValue; - value uniform (0.1 0 0); - } - maxX - { - type inletOutlet; - inletValue uniform (0 0 0); - value uniform (0.1 0 0); - } - } -} - -T -{ - internalField uniform 300; - boundaryField - { - ".*" - { - type zeroGradient; - } - - minX - { - type fixedValue; - value uniform 300; - } - maxX - { - type inletOutlet; - inletValue uniform 300; - value uniform 300; - } - - "topAir_to_.*" - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - kappaMethod fluidThermo; - qrNbr none; - qr qr; - value uniform 300; - } - } -} - -epsilon -{ - internalField uniform 0.01; - boundaryField - { - ".*" - { - type epsilonWallFunction; - value uniform 0.01; - } - - minX - { - type fixedValue; - value uniform 0.01; - } - maxX - { - type inletOutlet; - inletValue uniform 0.01; - value uniform 0.01; - } - } -} - -k -{ - internalField uniform 0.1; - boundaryField - { - ".*" - { - type kqRWallFunction; - value uniform 0.1; - } - - minX - { - type fixedValue; - value uniform 0.1; - } - maxX - { - type inletOutlet; - inletValue uniform 0.1; - value uniform 0.1; - } - } -} - -p_rgh -{ - internalField uniform 1e5; - boundaryField - { - ".*" - { - type fixedFluxPressure; - value uniform 1e5; - } - - maxX - { - type fixedValue; - value uniform 1e5; - } - } -} - -p -{ - internalField uniform 1e5; - boundaryField - { - ".*" - { - type calculated; - value uniform 1e5; - } - - maxX - { - type calculated; - value uniform 1e5; - } - } -} - -qr -{ - internalField uniform 0; - boundaryField - { - ".*" - { - type greyDiffusiveRadiationViewFactor; - emissivityMode lookup; - qro uniform 0; - emissivity uniform 1.0; - value uniform 0; - } - - "topAir_to_.*" - { - type greyDiffusiveRadiationViewFactor; - emissivityMode solidRadiation; - qro uniform 0; - value uniform 0; - } - } -} - -G -{ - internalField uniform 0; - boundaryField - { - ".*" - { - type MarshakRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } - - "topAir_to_.*" - { - type MarshakRadiation; - emissivityMode solidRadiation; - value uniform 0; - } - } -} - -IDefault -{ - internalField uniform 0; - boundaryField - { - ".*" - { - type greyDiffusiveRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } - - "topAir_to_.*" - { - type greyDiffusiveRadiation; - emissivityMode solidRadiation; - value uniform 0; - } - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict deleted file mode 100644 index f051e7b79a..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - note "mesh decomposition control dictionary"; - location "system"; - object decomposeParDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 4; - -method scotch; - -simpleCoeffs -{ - n (2 2 1); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (2 2 1); - delta 0.001; - order xyz; -} - - -manualCoeffs -{ - dataFile "decompositionData"; -} - - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict new file mode 120000 index 0000000000..46638e60f6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict @@ -0,0 +1 @@ +../decomposeParDict \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution deleted file mode 100644 index 432878de1d..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution +++ /dev/null @@ -1,62 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - "p_rgh.*" - { - solver GAMG; - tolerance 1e-7; - relTol 0.01; - - smoother GaussSeidel; - - } - - "(U|h|k|epsilon).*" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-7; - relTol 0.1; - } -} - -PIMPLE -{ - momentumPredictor yes; - nNonOrthogonalCorrectors 0; - pRefCell 0; - pRefValue 100000; -} - -relaxationFactors -{ - fields - { - "rho.*" 1.0; - "p_rgh.*" 0.7; - } - equations - { - "U.*" 0.3; - "h.*" 0.7; - "(k|epsilon|omega).*" 0.7; - "qr.*" 0.7; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution new file mode 120000 index 0000000000..745b2bcfe4 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution @@ -0,0 +1 @@ +../bottomAir/fvSolution \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/bottomAir/T b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/bottomAir/T index 1f93c8f30b..3cf54e0a7e 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/bottomAir/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/bottomAir/T @@ -28,7 +28,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "bottomAir_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/T b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/T index e38a222e27..dc323920d0 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/T @@ -28,7 +28,7 @@ boundaryField type fixedValue; value uniform 500; } - ".*_to_.*" + "heater_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/p b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/p index 23c3a7e0fc..025265bff9 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/heater/p @@ -28,7 +28,7 @@ boundaryField type calculated; value $internalField; } - ".*_to_.*" + "heater_to_.*" { type calculated; value uniform 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/T b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/T index ee1890dbf1..ea3e51cf15 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/T @@ -28,7 +28,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "leftSolid_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/p b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/p index 0f2d23fcb0..735c48d0db 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/leftSolid/p @@ -28,7 +28,7 @@ boundaryField type calculated; value $internalField; } - ".*_to_.*" + "leftSolid_to_.*" { type calculated; value uniform 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/T b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/T index f6df00f1fc..2afe8b3907 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/T @@ -28,7 +28,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "rightSolid_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/p b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/p index caf5eac4d7..0dc6d4fd2e 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/rightSolid/p @@ -28,7 +28,7 @@ boundaryField type calculated; value $internalField; } - ".*_to_.*" + "rightSolid_to_.*" { type calculated; value uniform 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/T b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/T index 5f2bf163db..226ecff3a1 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/T @@ -39,7 +39,7 @@ boundaryField type zeroGradient; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type compressible::turbulentTemperatureCoupledBaffleMixed; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/U b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/U index ca9e448383..fd8f3e73c5 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/U @@ -37,7 +37,7 @@ boundaryField { type noSlip; } - ".*_to_.*" + "topAir_to_.*" { type noSlip; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/epsilon index 26baa3ef52..7098373645 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/epsilon +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/epsilon @@ -39,7 +39,7 @@ boundaryField type epsilonWallFunction; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type epsilonWallFunction; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/k b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/k index 55dbb28014..90c71698c8 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/k +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/k @@ -39,7 +39,7 @@ boundaryField type kqRWallFunction; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type kqRWallFunction; value $internalField; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/p_rgh index 394b9e56b4..53684e3ce0 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/p_rgh +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/0/topAir/p_rgh @@ -38,7 +38,7 @@ boundaryField type fixedFluxPressure; value $internalField; } - ".*_to_.*" + "topAir_to_.*" { type fixedFluxPressure; value $internalField;