diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun index 4a0f42fbe4..da52a21b6f 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun @@ -12,7 +12,7 @@ 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/{mut,alphat,epsilon,k,p,p,U} + rm -f 0*/$i/{mut,alphat,epsilon,k,p,U} done ## remove solid fields from fluid regions (important for post-processing) diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/controlDict b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/controlDict index 846a89461b..f8844db5ce 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/controlDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/system/controlDict @@ -15,7 +15,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -libs ("libOpenFOAM.so" "libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so"); +libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so"); application chtMultiRegionFoam; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/controlDict b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/controlDict index cc915cf325..0751139283 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/controlDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/controlDict @@ -15,7 +15,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -libs ("libOpenFOAM.so" "libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so"); +libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so"); application chtMultiRegionFoam; diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/K b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/K deleted file mode 100644 index 4d9246ebcb..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/K +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object K; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 1 -3 -1 0 0 0]; - -internalField uniform 80; - -boundaryField -{ - ".*" - { - type calculated; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/cp b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/cp deleted file mode 100644 index 853fd78eeb..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/cp +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object cp; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 2 -2 -1 0 0 0]; - -internalField uniform 450; - -boundaryField -{ - ".*" - { - type calculated; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/rho b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/rho deleted file mode 100644 index 8a0910516d..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/0/rho +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object rho; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -3 0 0 0 0 0]; - -internalField uniform 8000; - -boundaryField -{ - ".*" - { - type calculated; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/Allrun index 78bae403a8..0ba7339dbc 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/Allrun @@ -5,27 +5,21 @@ cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -rm -rf constant/polyMesh/sets - runApplication blockMesh runApplication setSet -batch makeCellSets.setSet - -rm -f constant/polyMesh/sets/*_old - -runApplication setsToZones -noFlipMap 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/{mut,alphat,epsilon,k,p,p,U} + rm -f 0*/$i/{mut,alphat,epsilon,k,p,U} done -# remove solid fields from fluid regions (important for post-processing) -for i in bottomAir topAir -do - rm -f 0*/$i/{cp,K,rho} -done +## remove solid fields from fluid regions (important for post-processing) +#for i in bottomAir topAir +#do +# rm -f 0*/$i/{cp,K,rho} +#done for i in bottomAir topAir heater leftSolid rightSolid do diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/heater/solidThermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/heater/solidThermophysicalProperties new file mode 100644 index 0000000000..c27f08c9f1 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/heater/solidThermophysicalProperties @@ -0,0 +1,76 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object solidThermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType constSolidThermo; +//thermoType interpolatedSolidThermo; +//thermoType directionalSolidThermo; + +constSolidThermoCoeffs +{ + //- constant properties + + rho rho [1 -3 0 0 0 0 0] 8000; + cp cp [0 2 -2 -1 0 0 0] 450; + K K [1 1 -3 -1 0 0 0] 80; + + // N/A + Hf Hf [0 2 -2 0 0 0 0] 1; + emissivity emissivity [0 0 0 0 0 0 0] 1; +} + + +interpolatedSolidThermoCoeffs +{ + //- interpolated properties + + TValues (100 1000); + rhoValues (1700 1700); + cpValues (1700 1700); + KValues (80 40); + HfValues (1 1); + emissivityValues (1 1); +} + + +directionalSolidThermoCoeffs +{ + //- does interpolation and directional K in coordinate system. + // Specify multiple values, one for each temperature. Properties are + // interpolated according to the local temperature. + + + TValues (100 1000); + rhoValues (1700 1700); + cpValues (1700 1700); + + KValues ((40 40 40) (40 40 40)); + + coordinateSystem + { + origin (-0.000062 0.000019 0.000039); + coordinateRotation + { + type axes; + e1 (1 0 0); + e3 (-3.1807824E-6 -0.99813473 0.0610505); + } + } + + HfValues (1 1); + emissivityValues (1 1); +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/leftSolid/solidThermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/leftSolid/solidThermophysicalProperties new file mode 100644 index 0000000000..c27f08c9f1 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/leftSolid/solidThermophysicalProperties @@ -0,0 +1,76 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object solidThermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType constSolidThermo; +//thermoType interpolatedSolidThermo; +//thermoType directionalSolidThermo; + +constSolidThermoCoeffs +{ + //- constant properties + + rho rho [1 -3 0 0 0 0 0] 8000; + cp cp [0 2 -2 -1 0 0 0] 450; + K K [1 1 -3 -1 0 0 0] 80; + + // N/A + Hf Hf [0 2 -2 0 0 0 0] 1; + emissivity emissivity [0 0 0 0 0 0 0] 1; +} + + +interpolatedSolidThermoCoeffs +{ + //- interpolated properties + + TValues (100 1000); + rhoValues (1700 1700); + cpValues (1700 1700); + KValues (80 40); + HfValues (1 1); + emissivityValues (1 1); +} + + +directionalSolidThermoCoeffs +{ + //- does interpolation and directional K in coordinate system. + // Specify multiple values, one for each temperature. Properties are + // interpolated according to the local temperature. + + + TValues (100 1000); + rhoValues (1700 1700); + cpValues (1700 1700); + + KValues ((40 40 40) (40 40 40)); + + coordinateSystem + { + origin (-0.000062 0.000019 0.000039); + coordinateRotation + { + type axes; + e1 (1 0 0); + e3 (-3.1807824E-6 -0.99813473 0.0610505); + } + } + + HfValues (1 1); + emissivityValues (1 1); +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/polyMesh/boundary b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/polyMesh/boundary index 0ffd003789..73459cea07 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/polyMesh/boundary +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/polyMesh/boundary @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6.x | +| \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/rightSolid/solidThermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/rightSolid/solidThermophysicalProperties new file mode 100644 index 0000000000..c27f08c9f1 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/constant/rightSolid/solidThermophysicalProperties @@ -0,0 +1,76 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object solidThermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType constSolidThermo; +//thermoType interpolatedSolidThermo; +//thermoType directionalSolidThermo; + +constSolidThermoCoeffs +{ + //- constant properties + + rho rho [1 -3 0 0 0 0 0] 8000; + cp cp [0 2 -2 -1 0 0 0] 450; + K K [1 1 -3 -1 0 0 0] 80; + + // N/A + Hf Hf [0 2 -2 0 0 0 0] 1; + emissivity emissivity [0 0 0 0 0 0 0] 1; +} + + +interpolatedSolidThermoCoeffs +{ + //- interpolated properties + + TValues (100 1000); + rhoValues (1700 1700); + cpValues (1700 1700); + KValues (80 40); + HfValues (1 1); + emissivityValues (1 1); +} + + +directionalSolidThermoCoeffs +{ + //- does interpolation and directional K in coordinate system. + // Specify multiple values, one for each temperature. Properties are + // interpolated according to the local temperature. + + + TValues (100 1000); + rhoValues (1700 1700); + cpValues (1700 1700); + + KValues ((40 40 40) (40 40 40)); + + coordinateSystem + { + origin (-0.000062 0.000019 0.000039); + coordinateRotation + { + type axes; + e1 (1 0 0); + e3 (-3.1807824E-6 -0.99813473 0.0610505); + } + } + + HfValues (1 1); + emissivityValues (1 1); +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/makeCellSets.setSet b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/makeCellSets.setSet index 84c52f85b3..7e0c2bd522 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/makeCellSets.setSet +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/makeCellSets.setSet @@ -1,11 +1,16 @@ cellSet heater new boxToCell (-0.01 0 -100 )(0.01 0.01 100) cellSet heater add boxToCell (-0.01 -100 -0.01)(0.01 0.01 0.01) +cellZoneSet heater new setToCellZone heater cellSet leftSolid new boxToCell (-100 0 -100 )(-0.01 0.01 100) +cellZoneSet leftSolid new setToCellZone leftSolid cellSet rightSolid new boxToCell (0.01 0 -100 )(100 0.01 100) +cellZoneSet rightSolid new setToCellZone rightSolid cellSet topAir new boxToCell (-100 0.01 -100 )(100 100 100) +cellZoneSet topAir new setToCellZone topAir cellSet bottomAir clear cellSet bottomAir add cellToCell heater cellSet bottomAir add cellToCell leftSolid cellSet bottomAir add cellToCell rightSolid cellSet bottomAir add cellToCell topAir cellSet bottomAir invert +cellZoneSet bottomAir new setToCellZone bottomAir diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict index 949d7d1521..d3fa852bd9 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/bottomAir/changeDictionaryDict @@ -55,9 +55,10 @@ dictionaryReplacement "bottomAir_to_.*" { - type compressible::turbulentTemperatureCoupledBaffle; + type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; - K K; + K basicThermo; + KName none; value uniform 300; } } diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/controlDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/controlDict index 9c7f38afcf..6d3568bdf4 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/controlDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/controlDict @@ -15,7 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -application chtMultiRegionSimpleFoam; +libs ("libcompressibleTurbulenceModel.so" "libcompressibleRASModels.so"); + +application chtMultiRegionFoam; startFrom startTime; diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/heater/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/heater/changeDictionaryDict index 20dac9a399..ac0d8cdbd4 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/heater/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/heater/changeDictionaryDict @@ -45,9 +45,10 @@ dictionaryReplacement } "heater_to_.*" { - type compressible::turbulentTemperatureCoupledBaffle; + type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; - K K; + K solidThermo; + KName none; value uniform 300; } minY @@ -58,47 +59,6 @@ dictionaryReplacement } } - rho - { - internalField uniform 8000; - - boundaryField - { - ".*" - { - type calculated; - value uniform 8000; - } - } - } - - K - { - internalField uniform 80; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 80; - } - } - } - - cp - { - internalField uniform 450; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 450; - } - } - } } // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict index a9c6ea7f0b..b3453c48f5 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/leftSolid/changeDictionaryDict @@ -41,55 +41,14 @@ dictionaryReplacement } "leftSolid_to_.*" { - type compressible::turbulentTemperatureCoupledBaffle; + type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; - K K; + K solidThermo; + KName none; value uniform 300; } } } - - rho - { - internalField uniform 8000; - - boundaryField - { - ".*" - { - type calculated; - value uniform 8000; - } - } - } - - K - { - internalField uniform 80; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 80; - } - } - } - - cp - { - internalField uniform 450; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 450; - } - } - } } // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict index 5fa61a7f8f..f6822937d8 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/rightSolid/changeDictionaryDict @@ -41,55 +41,14 @@ dictionaryReplacement } "rightSolid_to_.*" { - type compressible::turbulentTemperatureCoupledBaffle; + type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; - K K; + K solidThermo; + KName none; value uniform 300; } } } - - rho - { - internalField uniform 8000; - - boundaryField - { - ".*" - { - type calculated; - value uniform 8000; - } - } - } - - K - { - internalField uniform 80; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 80; - } - } - } - - cp - { - internalField uniform 450; - - boundaryField - { - ".*" - { - type zeroGradient; - value uniform 450; - } - } - } } // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/topAir/changeDictionaryDict b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/topAir/changeDictionaryDict index 2b1dbdcf90..3d57349406 100644 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/topAir/changeDictionaryDict +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/system/topAir/changeDictionaryDict @@ -66,9 +66,10 @@ dictionaryReplacement "topAir_to_.*" { - type compressible::turbulentTemperatureCoupledBaffle; + type compressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; - K K; + K basicThermo; + KName none; value uniform 300; } }