diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/constant/g b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/constant/g deleted file mode 120000 index fea3757006..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/constant/g +++ /dev/null @@ -1 +0,0 @@ -../bottomWater/g \ No newline at end of file diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/constant/g b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/constant/g new file mode 100644 index 0000000000..dda4a9c6d0 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/constant/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 -9.81 0); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/decomposeParDict index e8c69a5d1a..e7499e7647 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/decomposeParDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/decomposeParDict @@ -19,12 +19,10 @@ numberOfSubdomains 4; method scotch; // method hierarchical; // method simple; -// method manual; coeffs { n (2 2 1); - dataFile "decompositionData"; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topAir/changeDictionaryDict index 5c6eb12ddd..47a955d182 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topAir/changeDictionaryDict @@ -36,13 +36,13 @@ U minX { type fixedValue; - value uniform ( 0.1 0 0 ); + value uniform (0.1 0 0); } maxX { type inletOutlet; - inletValue uniform ( 0 0 0 ); - value uniform ( 0.1 0 0 ); + inletValue uniform (0 0 0); + value uniform (0.1 0 0); } } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topoSetDict b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topoSetDict index 4f160b93ad..2862ad715d 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topoSetDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledHeater/system/topoSetDict @@ -23,14 +23,14 @@ actions type cellSet; action new; source boxToCell; - box (-0.01001 0 -100 )(0.01001 0.00999 100); + box (-0.01001 0 -100) (0.01001 0.00999 100); } { name heaterCellSet; type cellSet; action add; source boxToCell; - box (-0.01001 -100 -0.01001)(0.01001 0.00999 0.01001); + box (-0.01001 -100 -0.01001) (0.01001 0.00999 0.01001); } { name heater; @@ -46,7 +46,7 @@ actions type cellSet; action new; source boxToCell; - box (-100 0 -100 )(-0.01001 0.00999 100); + box (-100 0 -100) (-0.01001 0.00999 100); } { name leftSolid; @@ -62,7 +62,7 @@ actions type cellSet; action new; source boxToCell; - box (0.01001 0 -100 )(100 0.00999 100); + box (0.01001 0 -100) (100 0.00999 100); } { name rightSolid; @@ -78,7 +78,7 @@ actions type cellSet; action new; source boxToCell; - box (-100 0.00999 -100 )(100 100 100); + box (-100 0.00999 -100) (100 100 100); } { name topAir; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/T b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/T index 1574a6a6e7..7172bb4e37 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/T +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/T @@ -23,7 +23,7 @@ boundaryField ".*" { type calculated; - value uniform 300; + value $internalField; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/U b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/U index f3a5da6b83..b5671e3fe9 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/U @@ -23,7 +23,7 @@ boundaryField ".*" { type calculated; - value uniform (0.01 0 0); + value $internalField; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/epsilon b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/epsilon index 6e24054680..1685a2d801 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/epsilon +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/epsilon @@ -23,9 +23,8 @@ boundaryField ".*" { type calculated; - value uniform 0.01; + value $internalField; } } - // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/k b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/k index c799a70d60..1d75d1d0c1 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/k +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/k @@ -23,9 +23,8 @@ boundaryField ".*" { type calculated; - value uniform 0.1; + value $internalField; } } - // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p index 648fc517ac..1c3b241f08 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p @@ -23,7 +23,7 @@ boundaryField ".*" { type calculated; - value uniform 1e5; + value $internalField; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p_rgh index 32f749a80a..df0c413d7b 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p_rgh +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/0.orig/p_rgh @@ -23,7 +23,7 @@ boundaryField ".*" { type calculated; - value uniform 1e5; + value $internalField; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun index efb377ca89..efa35f3218 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun @@ -2,7 +2,7 @@ cd ${0%/*} || exit 1 # Run from this directory . $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions -runApplication ./Allmesh +runApplication ./Allrun.pre #-- Run on single processor #runApplication $(getApplication) diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allmesh b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun.pre similarity index 100% rename from tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allmesh rename to tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun.pre diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomWater/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomWater/fvSchemes index 51595613b0..8e42903fcc 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomWater/fvSchemes +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/bottomWater/fvSchemes @@ -53,4 +53,5 @@ snGradSchemes default corrected; } + // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/decomposeParDict index 1a60e0cdbd..978e6b5432 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/decomposeParDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/decomposeParDict @@ -19,14 +19,13 @@ numberOfSubdomains 4; method scotch; // method hierarchical; // method simple; -// method manual; regions { heater { numberOfSubdomains 1; - method simple; // none; + method simple; // none; coeffs { diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict index 57e6cda6d9..f73f69320a 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/heater/changeDictionaryDict @@ -19,6 +19,7 @@ boundary minY { type patch; + inGroups (coupleGroup); } minZ { diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict index 84b496dd8a..47a955d182 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topAir/changeDictionaryDict @@ -14,6 +14,14 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +boundary +{ + minX + { + inGroups (coupleGroup); + } +} + U { internalField uniform (0.1 0 0); diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topoSetDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topoSetDict index 21a04248b8..2862ad715d 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topoSetDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/topoSetDict @@ -23,14 +23,14 @@ actions type cellSet; action new; source boxToCell; - box (-0.01001 0 -100)(0.01001 0.00999 100); + box (-0.01001 0 -100) (0.01001 0.00999 100); } { name heaterCellSet; type cellSet; action add; source boxToCell; - box (-0.01001 -100 -0.01001)(0.01001 0.00999 0.01001); + box (-0.01001 -100 -0.01001) (0.01001 0.00999 0.01001); } { name heater; @@ -46,7 +46,7 @@ actions type cellSet; action new; source boxToCell; - box (-100 0 -100 )(-0.01001 0.00999 100); + box (-100 0 -100) (-0.01001 0.00999 100); } { name leftSolid; @@ -62,7 +62,7 @@ actions type cellSet; action new; source boxToCell; - box (0.01001 0 -100 )(100 0.00999 100); + box (0.01001 0 -100) (100 0.00999 100); } { name rightSolid; @@ -78,7 +78,7 @@ actions type cellSet; action new; source boxToCell; - box (-100 0.00999 -100 )(100 100 100); + box (-100 0.00999 -100) (100 100 100); } { name topAir; diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/constant/g b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/constant/g new file mode 100644 index 0000000000..dda4a9c6d0 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/jouleHeatingSolid/constant/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 -9.81 0); + +// ************************************************************************* // diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/constant/g b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/constant/g new file mode 100644 index 0000000000..388cb56d7b --- /dev/null +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/constant/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 0 -9.81); + +// ************************************************************************* //