From 3c6befa36096fff1e6b9450d6e28c2ade1d915c0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 7 Dec 2009 17:03:32 +0000 Subject: [PATCH] updated tutorial for wildcards in changeDictionaryDict --- .../chtMultiRegionFoam/multiRegionHeater/0/K | 26 +-- .../chtMultiRegionFoam/multiRegionHeater/0/T | 27 +-- .../chtMultiRegionFoam/multiRegionHeater/0/U | 32 +-- .../chtMultiRegionFoam/multiRegionHeater/0/cp | 26 +-- .../multiRegionHeater/0/epsilon | 41 +--- .../chtMultiRegionFoam/multiRegionHeater/0/k | 41 +--- .../chtMultiRegionFoam/multiRegionHeater/0/p | 31 +-- .../multiRegionHeater/0/rho | 26 +-- .../multiRegionHeater/Allrun | 12 +- .../multiRegionHeater/README.txt | 2 + .../constant/bottomAir/RASProperties | 4 +- .../multiRegionHeater/constant/bottomAir/g | 4 +- .../constant/topAir/RASProperties | 4 +- .../multiRegionHeater/constant/topAir/g | 4 +- .../system/bottomAir/changeDictionaryDict | 188 ++------------- .../system/heater/changeDictionaryDict | 135 ++--------- .../system/leftSolid/changeDictionaryDict | 98 +------- .../system/rightSolid/changeDictionaryDict | 97 +------- .../system/topAir/changeDictionaryDict | 216 +++++------------- 19 files changed, 148 insertions(+), 866 deletions(-) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/README.txt diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/K b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/K index 616d95b930..4068676987 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/K +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/K @@ -20,31 +20,9 @@ internalField uniform 80; boundaryField { - minX + ".*" { - type zeroGradient; - } - maxX - { - type zeroGradient; - } - - minY - { - type zeroGradient; - } - maxY - { - type zeroGradient; - } - - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/T index ee0abdd820..c6ae16042a 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/T @@ -20,32 +20,9 @@ internalField uniform 300; boundaryField { - minX + ".*" { - type fixedValue; - value uniform 300; - } - maxX - { - type zeroGradient; - } - - minY - { - type zeroGradient; - } - maxY - { - type zeroGradient; - } - - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/U b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/U index a5f54b27c9..42ab6a0a09 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/U @@ -20,37 +20,9 @@ internalField uniform (0.01 0 0); boundaryField { - minX + ".*" { - type fixedValue; - value uniform (0.01 0 0); - } - maxX - { - type inletOutlet; - inletValue uniform (0 0 0); - } - - minY - { - type fixedValue; - value uniform (0 0 0); - } - maxY - { - type fixedValue; - value uniform (0 0 0); - } - - minZ - { - type fixedValue; - value uniform (0 0 0); - } - maxZ - { - type fixedValue; - value uniform (0 0 0); + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/cp b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/cp index 2063a72da1..84aab72ae1 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/cp +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/cp @@ -20,31 +20,9 @@ internalField uniform 450; boundaryField { - minX + ".*" { - type zeroGradient; - } - maxX - { - type zeroGradient; - } - - minY - { - type zeroGradient; - } - maxY - { - type zeroGradient; - } - - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/epsilon index 57562641df..f5dfd4cc55 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/epsilon +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/epsilon @@ -21,46 +21,9 @@ internalField uniform 0.01; boundaryField { - minY + ".*" { - type epsilonWallFunction; - value uniform 0.01; - } - maxY - { - type epsilonWallFunction; - value uniform 0.01; - } - minX - { - type fixedValue; - value uniform 0.01; - } - maxX - { - type zeroGradient; - } - minZ - { - type epsilonWallFunction; - value uniform 0.01; - } - maxZ - { - type epsilonWallFunction; - value uniform 0.01; - } - topAir_to_leftSolid - { - type zeroGradient; - } - topAir_to_heater - { - type zeroGradient; - } - topAir_to_rightSolid - { - type zeroGradient; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/k b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/k index 0e7864568a..f8bfda5d8e 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/k +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/k @@ -21,46 +21,9 @@ internalField uniform 0.1; boundaryField { - minY + ".*" { - type kqRWallFunction; - value uniform 0.1; - } - maxY - { - type kqRWallFunction; - value uniform 0.1; - } - minX - { - type fixedValue; - value uniform 0.1; - } - maxX - { - type zeroGradient; - } - minZ - { - type kqRWallFunction; - value uniform 0.1; - } - maxZ - { - type kqRWallFunction; - value uniform 0.1; - } - topAir_to_leftSolid - { - type zeroGradient; - } - topAir_to_heater - { - type zeroGradient; - } - topAir_to_rightSolid - { - type zeroGradient; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/p index ebcfec8fb0..0233591ba3 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/p @@ -20,36 +20,9 @@ internalField uniform 1e5; boundaryField { - minX + ".*" { - type buoyantPressure; - value 1e5; - } - maxX - { - type buoyantPressure; - value 1e5; - } - - minY - { - type buoyantPressure; - value 1e5; - } - maxY - { - type buoyantPressure; - value 1e5; - } - minZ - { - type buoyantPressure; - value 1e5; - } - maxZ - { - type buoyantPressure; - value 1e5; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rho b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rho index 54a5dd19b5..e8c31261f1 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rho +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0/rho @@ -20,31 +20,9 @@ internalField uniform 8000; boundaryField { - minX + ".*" { - type zeroGradient; - } - maxX - { - type zeroGradient; - } - - minY - { - type zeroGradient; - } - maxY - { - type zeroGradient; - } - - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; + type calculated; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun index 9acc76c443..56cc2a348c 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun @@ -13,11 +13,6 @@ rm -f constant/polyMesh/sets/*_old runApplication setsToZones -noFlipMap runApplication splitMeshRegions -cellZones -for i in bottomAir topAir heater leftSolid rightSolid -do - changeDictionary -region $i >& log.changeDictionary.$i -done - # remove fluid fields from solid regions (important for post-processing) for i in heater leftSolid rightSolid do @@ -27,7 +22,12 @@ done # remove solid fields from fluid regions (important for post-processing) for i in bottomAir topAir do - rm -f 0*/$i/{cp,K} + rm -f 0*/$i/{cp,K,rho} +done + +for i in bottomAir topAir heater leftSolid rightSolid +do + changeDictionary -region $i >& log.changeDictionary.$i done diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/README.txt b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/README.txt new file mode 100644 index 0000000000..647f11981d --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/README.txt @@ -0,0 +1,2 @@ +The 0/ field files contain nonsense patchFields. All interesting +work is done using the changeDictionaryDicts. diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/RASProperties b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/RASProperties index 7af714ce80..0d135f28e9 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/RASProperties +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/RASProperties @@ -14,9 +14,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -RASModel kEpsilon; +RASModel laminar; -turbulence off; +turbulence on; printCoeffs on; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/g b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/g index 27d4d32488..af6459f97c 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/g +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/bottomAir/g @@ -10,13 +10,11 @@ FoamFile version 2.0; format ascii; class uniformDimensionedVectorField; - location "constant"; object g; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -2 0 0 0 0]; -value ( 0 -9.81 0 ); - +value (0 -9.81 0); // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/RASProperties b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/RASProperties index 7af714ce80..0d135f28e9 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/RASProperties +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/RASProperties @@ -14,9 +14,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -RASModel kEpsilon; +RASModel laminar; -turbulence off; +turbulence on; printCoeffs on; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/g b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/g index 27d4d32488..af6459f97c 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/g +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/constant/topAir/g @@ -10,13 +10,11 @@ FoamFile version 2.0; format ascii; class uniformDimensionedVectorField; - location "constant"; object g; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -2 0 0 0 0]; -value ( 0 -9.81 0 ); - +value (0 -9.81 0); // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict index da7c7d77e5..dbca8b9f3a 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict @@ -18,6 +18,10 @@ dictionaryReplacement { boundary { + ".*" + { + type wall; + } bottomAir_to_leftSolid { offset ( 0 0 0 ); @@ -43,32 +47,11 @@ dictionaryReplacement U { - internalField uniform (0 0 0); + internalField uniform (0.01 0 0); + boundaryField { - minX - { - type fixedValue; - value uniform (0 0 0); - } - maxX - { - type fixedValue; - value uniform (0 0 0); - } - - bottomAir_to_leftSolid - { - type fixedValue; - value uniform (0 0 0); - - } - bottomAir_to_heater - { - type fixedValue; - value uniform (0 0 0); - } - bottomAir_to_rightSolid + ".*" { type fixedValue; value uniform (0 0 0); @@ -78,28 +61,16 @@ dictionaryReplacement T { + internalField uniform 300; + boundaryField { - minX + ".*" { type zeroGradient; } - bottomAir_to_leftSolid - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } - bottomAir_to_heater - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } - bottomAir_to_rightSolid + "bottomAir_to_.*" { type compressible::turbulentTemperatureCoupledBaffle; neighbourFieldName T; @@ -111,58 +82,13 @@ dictionaryReplacement epsilon { - // Set the value on all bc to non-zero. Not used in simulation - // since zeroGradient; only used in initialisation. internalField uniform 0.01; boundaryField { - minX + ".*" { - type zeroGradient; - value uniform 0.01; - } - maxX - { - type zeroGradient; - value uniform 0.01; - } - - minY - { - type zeroGradient; - value uniform 0.01; - } - maxY - { - type zeroGradient; - value uniform 0.01; - } - - minZ - { - type zeroGradient; - value uniform 0.01; - } - maxZ - { - type zeroGradient; - value uniform 0.01; - } - - bottomAir_to_leftSolid - { - type zeroGradient; - value uniform 0.01; - } - bottomAir_to_heater - { - type zeroGradient; - value uniform 0.01; - } - bottomAir_to_rightSolid - { - type zeroGradient; + type compressible::epsilonWallFunction; value uniform 0.01; } } @@ -171,54 +97,12 @@ dictionaryReplacement k { internalField uniform 0.1; + boundaryField { - minX + ".*" { - type zeroGradient; - value uniform 0.1; - } - maxX - { - type zeroGradient; - value uniform 0.1; - } - - minY - { - type zeroGradient; - value uniform 0.1; - } - maxY - { - type zeroGradient; - value uniform 0.1; - } - - minZ - { - type zeroGradient; - value uniform 0.1; - } - maxZ - { - type zeroGradient; - value uniform 0.1; - } - - bottomAir_to_leftSolid - { - type zeroGradient; - value uniform 0.1; - } - bottomAir_to_heater - { - type zeroGradient; - value uniform 0.1; - } - bottomAir_to_rightSolid - { - type zeroGradient; + type compressible::kqRWallFunction; value uniform 0.1; } } @@ -226,53 +110,17 @@ dictionaryReplacement p { - internalField uniform 1E5; + internalField uniform 100000; boundaryField { - minX - { - type buoyantPressure; - value 1e5; - } - maxX - { - type buoyantPressure; - value 1e5; - } - minY - { - type buoyantPressure; - value 1e5; - } - minZ - { - type buoyantPressure; - value 1e5; - } - maxZ - { - type buoyantPressure; - value 1e5; - } - bottomAir_to_leftSolid - { - type buoyantPressure; - value 1e5; - } - bottomAir_to_heater - { - type buoyantPressure; - value 1e5; - } - bottomAir_to_rightSolid + ".*" { type buoyantPressure; value 1e5; } } } - } // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict index ab50e9946c..aed0c335cf 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict @@ -18,6 +18,10 @@ dictionaryReplacement { boundary { + ".*" + { + type patch; + } heater_to_bottomAir { offset ( 0 0 0 ); @@ -54,50 +58,23 @@ dictionaryReplacement boundaryField { + ".*" + { + type zeroGradient; + value uniform 300; + } + "heater_to_.*" + { + type compressible::turbulentTemperatureCoupledBaffle; + neighbourFieldName T; + K K; + value uniform 300; + } minY { type fixedValue; value uniform 500; } - - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - - heater_to_bottomAir - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - - } - heater_to_leftSolid - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } - heater_to_rightSolid - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } - heater_to_topAir - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } } } @@ -107,33 +84,9 @@ dictionaryReplacement boundaryField { - minY + ".*" { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - heater_to_bottomAir - { - type zeroGradient; - } - heater_to_leftSolid - { - type zeroGradient; - } - heater_to_rightSolid - { - type zeroGradient; - } - heater_to_topAir - { - type zeroGradient; + type calculated; } } } @@ -144,31 +97,7 @@ dictionaryReplacement boundaryField { - minY - { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - heater_to_bottomAir - { - type zeroGradient; - } - heater_to_leftSolid - { - type zeroGradient; - } - heater_to_rightSolid - { - type zeroGradient; - } - heater_to_topAir + ".*" { type zeroGradient; } @@ -181,31 +110,7 @@ dictionaryReplacement boundaryField { - minY - { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - heater_to_bottomAir - { - type zeroGradient; - } - heater_to_leftSolid - { - type zeroGradient; - } - heater_to_rightSolid - { - type zeroGradient; - } - heater_to_topAir + ".*" { type zeroGradient; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict index 6e31fefd3e..edb0132b0a 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict @@ -18,6 +18,10 @@ dictionaryReplacement { boundary { + ".*" + { + type patch; + } leftSolid_to_bottomAir { offset ( 0 0 0 ); @@ -47,34 +51,12 @@ dictionaryReplacement boundaryField { - minX + ".*" { type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - leftSolid_to_bottomAir - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - - } - leftSolid_to_heater - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; value uniform 300; } - leftSolid_to_topAir + "leftSolid_to_.*" { type compressible::turbulentTemperatureCoupledBaffle; neighbourFieldName T; @@ -90,29 +72,9 @@ dictionaryReplacement boundaryField { - minX + ".*" { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - leftSolid_to_bottomAir - { - type zeroGradient; - } - leftSolid_to_heater - { - type zeroGradient; - } - leftSolid_to_topAir - { - type zeroGradient; + type calculated; } } } @@ -123,27 +85,7 @@ dictionaryReplacement boundaryField { - minX - { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - leftSolid_to_bottomAir - { - type zeroGradient; - } - leftSolid_to_heater - { - type zeroGradient; - } - leftSolid_to_topAir + ".*" { type zeroGradient; } @@ -156,27 +98,7 @@ dictionaryReplacement boundaryField { - minX - { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - leftSolid_to_bottomAir - { - type zeroGradient; - } - leftSolid_to_heater - { - type zeroGradient; - } - leftSolid_to_topAir + ".*" { type zeroGradient; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict index 01590a2df9..acaa826db7 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict @@ -18,6 +18,10 @@ dictionaryReplacement { boundary { + ".*" + { + type patch; + } rightSolid_to_heater { offset ( 0 0 0 ); @@ -47,33 +51,12 @@ dictionaryReplacement boundaryField { - maxX + ".*" { type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - rightSolid_to_heater - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; value uniform 300; } - rightSolid_to_bottomAir - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } - rightSolid_to_topAir + "rightSolid_to_.*" { type compressible::turbulentTemperatureCoupledBaffle; neighbourFieldName T; @@ -89,29 +72,9 @@ dictionaryReplacement boundaryField { - maxX + ".*" { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - rightSolid_to_bottomAir - { - type zeroGradient; - } - rightSolid_to_heater - { - type zeroGradient; - } - rightSolid_to_topAir - { - type zeroGradient; + type calculated; } } } @@ -122,27 +85,7 @@ dictionaryReplacement boundaryField { - maxX - { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - rightSolid_to_bottomAir - { - type zeroGradient; - } - rightSolid_to_heater - { - type zeroGradient; - } - rightSolid_to_topAir + ".*" { type zeroGradient; } @@ -155,27 +98,7 @@ dictionaryReplacement boundaryField { - maxX - { - type zeroGradient; - } - minZ - { - type zeroGradient; - } - maxZ - { - type zeroGradient; - } - rightSolid_to_bottomAir - { - type zeroGradient; - } - rightSolid_to_heater - { - type zeroGradient; - } - rightSolid_to_topAir + ".*" { type zeroGradient; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict index 8c8d615878..f2c982a692 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict @@ -18,6 +18,18 @@ dictionaryReplacement { boundary { + ".*" + { + type wall; + } + minX + { + type patch; + } + maxX + { + type patch; + } topAir_to_leftSolid { offset ( 0 0 0 ); @@ -43,64 +55,53 @@ dictionaryReplacement U { - internalField uniform ( 0.01 0 0 ); + internalField uniform (0.01 0 0); + boundaryField { + ".*" + { + type fixedValue; + value uniform (0 0 0); + } minX { type fixedValue; - value uniform (0.01 0 0); + value uniform ( 0.01 0 0 ); } maxX { type inletOutlet; - inletValue uniform (0 0 0); - } - - topAir_to_leftSolid - { - type fixedValue; - value uniform (0 0 0); - - } - topAir_to_heater - { - type fixedValue; - value uniform (0 0 0); - } - topAir_to_rightSolid - { - type fixedValue; - value uniform (0 0 0); + inletValue uniform ( 0 0 0 ); + value uniform ( 0 0 0 ); } } } T { + internalField uniform 300; + boundaryField { + ".*" + { + type zeroGradient; + } + minX { type fixedValue; value uniform 300; } - topAir_to_leftSolid + maxX { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; + type inletOutlet; + inletValue uniform 300; value uniform 300; + } - } - topAir_to_heater - { - type compressible::turbulentTemperatureCoupledBaffle; - neighbourFieldName T; - K K; - value uniform 300; - } - topAir_to_rightSolid + "topAir_to_.*" { type compressible::turbulentTemperatureCoupledBaffle; neighbourFieldName T; @@ -112,10 +113,16 @@ dictionaryReplacement epsilon { - // Set the value on all bc to non-zero. Not used in simulation - // since zeroGradient; only used in initialisation. + internalField uniform 0.01; + boundaryField { + ".*" + { + type compressible::epsilonWallFunction; + value uniform 0.01; + } + minX { type fixedValue; @@ -123,44 +130,8 @@ dictionaryReplacement } maxX { - type zeroGradient; - value uniform 0.01; - } - - minY - { - type zeroGradient; - value uniform 0.01; - } - maxY - { - type zeroGradient; - value uniform 0.01; - } - - minZ - { - type zeroGradient; - value uniform 0.01; - } - maxZ - { - type zeroGradient; - value uniform 0.01; - } - topAir_to_leftSolid - { - type zeroGradient; - value uniform 0.01; - } - topAir_to_heater - { - type zeroGradient; - value uniform 0.01; - } - topAir_to_rightSolid - { - type zeroGradient; + type inletOutlet; + inletValue uniform 0.01; value uniform 0.01; } } @@ -169,55 +140,24 @@ dictionaryReplacement k { internalField uniform 0.1; + boundaryField { + ".*" + { + type compressible::kqRWallFunction; + value uniform 0.1; + } + minX { type fixedValue; value uniform 0.1; } - maxX { - type zeroGradient; - value uniform 0.1; - } - - minY - { - type zeroGradient; - value uniform 0.1; - } - maxY - { - type zeroGradient; - value uniform 0.1; - } - - minZ - { - type zeroGradient; - value uniform 0.1; - } - maxZ - { - type zeroGradient; - value uniform 0.1; - } - - topAir_to_leftSolid - { - type zeroGradient; - value uniform 0.1; - } - topAir_to_heater - { - type zeroGradient; - value uniform 0.1; - } - topAir_to_rightSolid - { - type zeroGradient; + type inletOutlet; + inletValue uniform 0.1; value uniform 0.1; } } @@ -225,59 +165,23 @@ dictionaryReplacement p { - internalField uniform 1E5; + internalField uniform 100000; boundaryField { - minX + ".*" { type buoyantPressure; value 1e5; } + maxX { type waveTransmissive; - //field p; - phi phi; - rho rho; - psi psi; - gamma 1.4; // cp/cv - fieldInf 1e5; - lInf 0.40; // double length of domain - value uniform 1e5; - } - - minY - { - type buoyantPressure; - value 1e5; - } - - minZ - { - type buoyantPressure; - value 1e5; - } - maxZ - { - type buoyantPressure; - value 1e5; - } - - topAir_to_leftSolid - { - type buoyantPressure; - value 1e5; - } - topAir_to_heater - { - type buoyantPressure; - value 1e5; - } - topAir_to_rightSolid - { - type buoyantPressure; - value 1e5; + gamma 1.4; + fieldInf 100000; + lInf 0.4; + value uniform 100000; } } }