From 081193b2776abdb28f99d7a34ce1ddef9ff5b2d0 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 31 May 2018 10:47:53 +0100 Subject: [PATCH 1/4] chtMultiRegionFoam: Simplified multiRegionHeaterRadiation tutorial Same changes as commit a963f82d, but for the radiation variant --- .../multiRegionHeater/0/bottomWater/T | 4 +- .../multiRegionHeater/0/bottomWater/U | 2 +- .../multiRegionHeater/0/bottomWater/alphat | 2 +- .../multiRegionHeater/0/bottomWater/epsilon | 4 +- .../multiRegionHeater/0/bottomWater/k | 4 +- .../multiRegionHeater/0/bottomWater/p | 2 +- .../multiRegionHeater/0/bottomWater/p_rgh | 4 +- .../multiRegionHeater/0/heater/T | 2 +- .../multiRegionHeater/0/heater/p | 2 +- .../multiRegionHeater/0/leftSolid/T | 2 +- .../multiRegionHeater/0/leftSolid/p | 2 +- .../multiRegionHeater/0/rightSolid/T | 2 +- .../multiRegionHeater/0/rightSolid/p | 2 +- .../multiRegionHeater/0/topAir/T | 2 +- .../multiRegionHeater/0/topAir/U | 2 +- .../multiRegionHeater/0/topAir/epsilon | 2 +- .../multiRegionHeater/0/topAir/k | 2 +- .../multiRegionHeater/0/topAir/p_rgh | 2 +- .../multiRegionHeaterRadiation/0/bottomAir/G | 41 ++++ .../0/bottomAir/IDefault | 41 ++++ .../multiRegionHeaterRadiation/0/bottomAir/T | 43 ++++ .../0/{ => bottomAir}/U | 11 +- .../0/{IDefault => bottomAir/alphat} | 8 +- .../0/{ => bottomAir}/epsilon | 7 +- .../0/{ => bottomAir}/k | 7 +- .../0/{T => bottomAir/p} | 10 +- .../0/{ => bottomAir}/p_rgh | 10 +- .../multiRegionHeaterRadiation/0/bottomAir/qr | 43 ++++ .../multiRegionHeaterRadiation/0/heater/T | 55 +++++ .../multiRegionHeaterRadiation/0/heater/p | 39 +++ .../multiRegionHeaterRadiation/0/leftSolid/T | 50 ++++ .../multiRegionHeaterRadiation/0/leftSolid/p | 39 +++ .../multiRegionHeaterRadiation/0/rightSolid/T | 50 ++++ .../multiRegionHeaterRadiation/0/rightSolid/p | 39 +++ .../0/{qr => topAir/G} | 19 +- .../0/topAir/IDefault | 41 ++++ .../multiRegionHeaterRadiation/0/topAir/T | 54 ++++ .../multiRegionHeaterRadiation/0/topAir/U | 47 ++++ .../0/{G => topAir/alphat} | 8 +- .../0/topAir/epsilon | 50 ++++ .../multiRegionHeaterRadiation/0/topAir/k | 50 ++++ .../0/{ => topAir}/p | 8 +- .../multiRegionHeaterRadiation/0/topAir/p_rgh | 49 ++++ .../multiRegionHeaterRadiation/0/topAir/qr | 43 ++++ .../multiRegionHeaterRadiation/Allclean | 37 +-- .../multiRegionHeaterRadiation/Allrun | 31 +-- .../Allrun-parallel | 45 ---- .../multiRegionHeaterRadiation/Allrun.pre | 24 -- .../constant/topAir/viewFactorsDict | 1 - .../system/bottomAir/changeDictionaryDict | 184 -------------- .../system/bottomAir/decomposeParDict | 45 +--- .../system/decomposeParDict | 47 ---- .../system/heater/changeDictionaryDict | 80 ------ .../system/heater/decomposeParDict | 47 +--- .../system/leftSolid/changeDictionaryDict | 71 ------ .../system/leftSolid/decomposeParDict | 47 +--- .../system/leftSolid/fvSolution | 42 +--- .../system/rightSolid/changeDictionaryDict | 71 ------ .../system/rightSolid/decomposeParDict | 47 +--- .../system/rightSolid/fvSolution | 42 +--- .../system/topAir/changeDictionaryDict | 231 ------------------ .../system/topAir/decomposeParDict | 45 +--- .../system/topAir/fvSolution | 63 +---- .../snappyMultiRegionHeater/0/bottomAir/T | 2 +- .../snappyMultiRegionHeater/0/heater/T | 2 +- .../snappyMultiRegionHeater/0/heater/p | 2 +- .../snappyMultiRegionHeater/0/leftSolid/T | 2 +- .../snappyMultiRegionHeater/0/leftSolid/p | 2 +- .../snappyMultiRegionHeater/0/rightSolid/T | 2 +- .../snappyMultiRegionHeater/0/rightSolid/p | 2 +- .../snappyMultiRegionHeater/0/topAir/T | 2 +- .../snappyMultiRegionHeater/0/topAir/U | 2 +- .../snappyMultiRegionHeater/0/topAir/epsilon | 2 +- .../snappyMultiRegionHeater/0/topAir/k | 2 +- .../snappyMultiRegionHeater/0/topAir/p_rgh | 2 +- 75 files changed, 899 insertions(+), 1231 deletions(-) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/G create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/IDefault create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/T rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{ => bottomAir}/U (82%) rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{IDefault => bottomAir/alphat} (87%) rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{ => bottomAir}/epsilon (85%) rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{ => bottomAir}/k (85%) rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{T => bottomAir/p} (84%) rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{ => bottomAir}/p_rgh (82%) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/bottomAir/qr create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/heater/p create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/leftSolid/p create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/rightSolid/p rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{qr => topAir/G} (69%) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/IDefault create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/T create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/U rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{G => topAir/alphat} (87%) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/epsilon create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/k rename tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/{ => topAir}/p (86%) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/p_rgh create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/0/topAir/qr delete mode 100755 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun-parallel delete mode 100755 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun.pre delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/changeDictionaryDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/bottomAir/decomposeParDict delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/changeDictionaryDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/heater/decomposeParDict delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/changeDictionaryDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/decomposeParDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/leftSolid/fvSolution delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/changeDictionaryDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/decomposeParDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/rightSolid/fvSolution delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/changeDictionaryDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/decomposeParDict mode change 100644 => 120000 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/system/topAir/fvSolution diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/bottomWater/T index 5b8e8a225..83042fd51 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 f139f48da..8fa0f1e47 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 bc648de41..690cac056 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 7883fda47..c9fb4f984 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 a426f5e3a..0a987c1a0 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 5d553447c..a3f07bfca 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 ccccc34db..c28838fc7 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 e38a222e2..dc323920d 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 23c3a7e0f..025265bff 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 ee1890dbf..ea3e51cf1 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 0f2d23fcb..735c48d0d 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 f6df00f1f..2afe8b390 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 caf5eac4d..0dc6d4fd2 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 5f2bf163d..226ecff3a 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 ca9e44838..fd8f3e73c 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 26baa3ef5..709837364 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 55dbb2801..90c71698c 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 394b9e56b..53684e3ce 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 000000000..1bcd3f692 --- /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 000000000..321b07a5e --- /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 000000000..f2d2df5b8 --- /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 bc788b73e..47b1607da 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 2f3ab23fe..bc648de41 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 7c2600136..c12c7ab84 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 fe2c7fec8..0c4d1d5b5 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 ac5fefc72..03f9e4f28 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 82a99f3e4..e7974200f 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 000000000..310f08bbd --- /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 000000000..c266a46ab --- /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 000000000..025265bff --- /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 000000000..8134d3a91 --- /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 000000000..735c48d0d --- /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 000000000..dad439b91 --- /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 000000000..0dc6d4fd2 --- /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 b7ec51604..89cb769d6 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 000000000..c768d169e --- /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 000000000..c4bebc06a --- /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 000000000..fd8f3e73c --- /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 f444e8728..6f5552d08 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 000000000..709837364 --- /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 000000000..90c71698c --- /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 cbd69c446..48b9debbb 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 000000000..53684e3ce --- /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 000000000..019d000e5 --- /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 b23f6388c..b59e19716 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 8224dffa9..5523cefbd 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 919b7d0b7..000000000 --- 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 e2f33a778..000000000 --- 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 79882275d..9dbf6adf3 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 7be44a3a5..000000000 --- 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 f051e7b79..000000000 --- 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 000000000..46638e60f --- /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 e028e1c2a..c063349c2 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 d27d0cbf2..000000000 --- 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 fd8f4413c..000000000 --- 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 000000000..46638e60f --- /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 a22671d9c..000000000 --- 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 fd8f4413c..000000000 --- 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 000000000..46638e60f --- /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 611693d33..000000000 --- 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 000000000..0bde0fc62 --- /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 039be56e0..000000000 --- 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 fd8f4413c..000000000 --- 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 000000000..46638e60f --- /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 611693d33..000000000 --- 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 000000000..0bde0fc62 --- /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 81ef8f2f7..000000000 --- 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 f051e7b79..000000000 --- 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 000000000..46638e60f --- /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 432878de1..000000000 --- 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 000000000..745b2bcfe --- /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 1f93c8f30..3cf54e0a7 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 e38a222e2..dc323920d 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 23c3a7e0f..025265bff 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 ee1890dbf..ea3e51cf1 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 0f2d23fcb..735c48d0d 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 f6df00f1f..2afe8b390 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 caf5eac4d..0dc6d4fd2 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 5f2bf163d..226ecff3a 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 ca9e44838..fd8f3e73c 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 26baa3ef5..709837364 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 55dbb2801..90c71698c 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 394b9e56b..53684e3ce 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; From 9841f9aafbc0a9e88ef54927878ccd236f34807c Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 31 May 2018 10:55:26 +0100 Subject: [PATCH 2/4] tutorials: Removed unused changeDictionaryDict files --- .../filter/system/changeDictionaryDict | 194 ------------------ .../system/changeDictionaryDict | 44 ---- 2 files changed, 238 deletions(-) delete mode 100644 tutorials/lagrangian/reactingParcelFoam/filter/system/changeDictionaryDict delete mode 100644 tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/changeDictionaryDict diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/system/changeDictionaryDict b/tutorials/lagrangian/reactingParcelFoam/filter/system/changeDictionaryDict deleted file mode 100644 index 4f313de95..000000000 --- a/tutorials/lagrangian/reactingParcelFoam/filter/system/changeDictionaryDict +++ /dev/null @@ -1,194 +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; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -alphat -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -epsilon -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -G -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -H2O -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -k -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -nut -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -N2 -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -O2 -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -p -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -T -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform 0; - } - cycRight - { - type cyclic; - value uniform 0; - } - } -} -U -{ - boundaryField - { - cycLeft - { - type cyclic; - value uniform (0 0 0); - } - cycRight - { - type cyclic; - value uniform (0 0 0); - } - } -} - -// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/changeDictionaryDict b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/changeDictionaryDict deleted file mode 100644 index bbd62e5d8..000000000 --- a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/changeDictionaryDict +++ /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; - object changeDictionaryDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -p_rgh -{ - boundaryField - { - porous_half0 - { - type porousBafflePressure; - patchType cyclic; - D 700; - I 500; - length 1.05; - jump uniform 0; - value uniform 0; - } - porous_half1 - { - type porousBafflePressure; - patchType cyclic; - D 700; - I 500; - length 1.05; - jump uniform 0; - value uniform 0; - } - } -} - -// ************************************************************************* // From 2b07f4377a3ce1a963898d5254bb3e66619a5d7e Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Thu, 31 May 2018 13:55:09 +0100 Subject: [PATCH 3/4] coolingSphere: removed redundant entries in fvSolution --- .../coolingSphere/templates/system/fluid/fvSolution | 10 +--------- .../coolingSphere/templates/system/solid/fvSolution | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/fluid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/fluid/fvSolution index 65124155e..e84e8c691 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/fluid/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/fluid/fvSolution @@ -57,22 +57,14 @@ solvers } } -"(PIMPLE|PISO)" +PIMPLE { - nOuterCorrectors 1; nCorrectors 2; nNonOrthogonalCorrectors 1; pRefCell 0; pRefValue 0; } -SIMPLE -{ - nNonOrthogonalCorrectors 0; - rhoMax 2; - rhoMin 1; -} - relaxationFactors { equations diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/solid/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/solid/fvSolution index ecbfbcb31..bc6886514 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/solid/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/system/solid/fvSolution @@ -31,7 +31,7 @@ solvers } } -"(SIMPLE|PIMPLE|PISO)" +PIMPLE { nNonOrthogonalCorrectors 0; } From b989b81d16cab40bf958bc10f03020ead2339a18 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 31 May 2018 14:23:15 +0100 Subject: [PATCH 4/4] VectorSpace, Vector: Added findMin, findMax and perpendicular functions The functions findMin and findMax return the index of the minimum or maximum component, consistently with the functions in ListOps.H. The perpendicular function returns an arbitrary vector perpendicular to the supplied vector, with the same magnitude. --- src/OpenFOAM/primitives/Vector/VectorI.H | 13 +++++++++- .../primitives/VectorSpace/VectorSpaceI.H | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/primitives/Vector/VectorI.H b/src/OpenFOAM/primitives/Vector/VectorI.H index 518a398dc..7cde6e3b0 100644 --- a/src/OpenFOAM/primitives/Vector/VectorI.H +++ b/src/OpenFOAM/primitives/Vector/VectorI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -160,6 +160,17 @@ inline Vector operator^(const Vector& v1, const Vector& v2) } +// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * // + +template +inline Vector perpendicular(const Vector& v) +{ + Vector u(Zero); + u[findMin(cmptMag(v))] = 1; + return u ^ v; +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam diff --git a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H index afd654cd3..fb30cb0ef 100644 --- a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H +++ b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H @@ -620,6 +620,30 @@ inline typename innerProduct::type dot } +template +inline direction findMax(const VectorSpace& vs) +{ + direction index = 0; + for (direction i=1; i vs[i] ? index : i; + } + return index; +} + + +template +inline direction findMin(const VectorSpace& vs) +{ + direction index = 0; + for (direction i=1; i