diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/T b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/T new file mode 100644 index 0000000000..420465cbb2 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/T @@ -0,0 +1,63 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 260; + +boundaryField +{ + inlet + { + type uniformFixedValue; + uniformValue table + ( + (0 260) + (10 293) + (1000 293) + ); + } + outlet + { + type inletOutlet; + inletValue uniform 260; + value uniform 260; + } + symmetry + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + cabin_to_ice + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value uniform 260; + Tnbr T; + kappa fluidThermo; + kappaName none; + + // windshield 3 mm + thicknessLayers (0.003); + kappaLayers (0.9); + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U new file mode 100644 index 0000000000..ac97d3af19 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U @@ -0,0 +1,53 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volVectorField; + location "0.0001/cabin"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type fixedValue; + value uniform (-3 0 0); + } + outlet + { +// type pressureInletOutletVelocity; + type inletOutlet; + inletValue uniform (0 0 0); + value uniform (0 0 0); + } + symmetry + { + type symmetryPlane; + } + walls + { + type fixedValue; + value uniform (0 0 0); + } + cabin_to_ice + { + type fixedValue; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/alphat b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/alphat new file mode 100644 index 0000000000..0ae4684ecd --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/alphat @@ -0,0 +1,53 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + symmetry + { + type symmetryPlane; + } + walls + { + type compressible::alphatWallFunction; + Prt 0.85; + value uniform 0; + } + cabin_to_ice + { + type compressible::alphatWallFunction; + Prt 0.85; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/k b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/k new file mode 100644 index 0000000000..7af0caf3ef --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/k @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 0.00015; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 0.03375; + } + outlet + { + type inletOutlet; + inletValue uniform 0.00015; + value uniform 0.00015; + } + symmetry + { + type symmetryPlane; + } + walls + { + type kqRWallFunction; + value uniform 0.00015; + } + cabin_to_ice + { + type kqRWallFunction; + value uniform 0.00015; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/mut b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/mut new file mode 100644 index 0000000000..5fec8a0f13 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/mut @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object mut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + symmetry + { + type symmetryPlane; + } + walls + { + type mutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } + cabin_to_ice + { + type mutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/nut b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/nut new file mode 100644 index 0000000000..1ef682fca3 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/nut @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + symmetry + { + type symmetryPlane; + } + walls + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } + cabin_to_ice + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/omega b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/omega new file mode 100644 index 0000000000..408dbbd7f5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/omega @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 0.2; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 65; + } + outlet + { + type inletOutlet; + inletValue uniform 0.2; + value uniform 0.2; + } + symmetry + { + type symmetryPlane; + } + walls + { + type omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + beta1 0.075; + value uniform 0.2; + } + cabin_to_ice + { + type omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + beta1 0.075; + value uniform 0.2; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p new file mode 100644 index 0000000000..f4e17657da --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + inlet + { + type calculated; + value uniform 100000; + } + outlet + { + type calculated; + value uniform 100000; + } + symmetry + { + type symmetryPlane; + } + walls + { + type calculated; + value uniform 100000; + } + cabin_to_ice + { + type calculated; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh new file mode 100644 index 0000000000..dbb286bce0 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/cabin"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + inlet + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 100000; + } + outlet + { + type fixedValue; + value uniform 100000; + } + symmetry + { + type symmetryPlane; + } + walls + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 100000; + } + cabin_to_ice + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/T b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/T new file mode 100644 index 0000000000..d3c0de7d18 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/T @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/exterior"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 260; + +boundaryField +{ + atmosphere + { + type inletOutlet; + inletValue uniform 260; + value uniform 260; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value uniform 260; + Tnbr T; + kappa fluidThermo; + kappaName none; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/U b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/U new file mode 100644 index 0000000000..1dcf7568ed --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/U @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volVectorField; + location "0.0001/exterior"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + atmosphere + { + type pressureInletOutletVelocity; + value uniform (0 0 0); + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type fixedValue; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat new file mode 100644 index 0000000000..b136d99193 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/exterior"; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + atmosphere + { + type calculated; + value uniform 0; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/k b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/k new file mode 100644 index 0000000000..4703240260 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/k @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/exterior"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 0.00015; + +boundaryField +{ + atmosphere + { + type inletOutlet; + inletValue uniform 0.00015; + value uniform 0.00015; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type kqRWallFunction; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/nut b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/nut new file mode 100644 index 0000000000..54661cfd8e --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/nut @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + atmosphere + { + type calculated; + value uniform 0; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/omega b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/omega new file mode 100644 index 0000000000..a7cca7714a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/omega @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/exterior"; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 0.2; + +boundaryField +{ + atmosphere + { + type inletOutlet; + inletValue uniform 0.2; + value uniform 0.2; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + beta1 0.075; + value uniform 0.2; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/p b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/p new file mode 100644 index 0000000000..764aecbeb4 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/p @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/exterior"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + atmosphere + { + type calculated; + value uniform 100000; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type calculated; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/p_rgh new file mode 100644 index 0000000000..a9cb369399 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/p_rgh @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/exterior"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + atmosphere + { + type totalPressure; + rho rho; + psi none; + gamma 1; + p0 uniform 100000; + value uniform 100000; + } + symmetry + { + type symmetryPlane; + } + exterior_to_ice + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/T b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/T new file mode 100644 index 0000000000..290057824f --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/T @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/ice"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 260; + +boundaryField +{ + symmetry + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + ice_to_cabin + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value uniform 260; + Tnbr T; + kappa fluidThermo; + kappaName none; + } + ice_to_exterior + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + value uniform 260; + Tnbr T; + kappa fluidThermo; + kappaName none; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/U b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/U new file mode 100644 index 0000000000..955920c267 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/U @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volVectorField; + location "0.0001/ice"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + symmetry + { + type symmetryPlane; + } + walls + { + type fixedValue; + value uniform (0 0 0); + } + ice_to_cabin + { + type fixedValue; + value uniform (0 0 0); + } + ice_to_exterior + { + type slip; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/p b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/p new file mode 100644 index 0000000000..8860f98c60 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/p @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/ice"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + symmetry + { + type symmetryPlane; + } + walls + { + type calculated; + value uniform 100000; + } + ice_to_cabin + { + type calculated; + value uniform 100000; + } + ice_to_exterior + { + type calculated; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/p_rgh new file mode 100644 index 0000000000..66de1672f5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/ice/p_rgh @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + location "0.0001/ice"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + symmetry + { + type symmetryPlane; + } + walls + { + type fixedFluxPressure; + value uniform 100000; + } + ice_to_cabin + { + type fixedFluxPressure; + value uniform 100000; + } + ice_to_exterior + { + type fixedFluxPressure; + value uniform 100000; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean new file mode 100755 index 0000000000..b484aeff52 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allclean @@ -0,0 +1,13 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanCase + +rm -rf 0 + +rm -rf constant/exterior/polyMesh +rm -rf constant/ice/polyMesh +rm -rf constant/cabin/polyMesh diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun new file mode 100755 index 0000000000..25d83d176d --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun @@ -0,0 +1,9 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +./Allrun.pre + +runApplication $(getApplication) diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel new file mode 100755 index 0000000000..b3628006eb --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel @@ -0,0 +1,25 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +./Allrun.pre + +# Set application name +application=$(getApplication) + +# Get number of processors to run on +nProcs=4 #$(getNumberOfProcessors) + +# decompose +runApplication -log log.decomposePar.cabin decomposePar -region cabin +runApplication -log log.decomposePar.ice decomposePar -region ice +runApplication -log log.decomposePar.exterior decomposePar -region exterior + +runParallel $application $nProcs + +runApplication -log log.reconstructPar.cabin reconstructPar -region cabin +runApplication -log log.reconstructPar.ice reconstructPar -region ice +runApplication -log log.reconstructPar.exterior reconstructPar -region exterior + diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre new file mode 100755 index 0000000000..f22237bf9d --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre @@ -0,0 +1,21 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# create the underlying block mesh +runApplication blockMesh + +# create the set for the obstacles +runApplication topoSet + +# mesh processing to generate the inlet duct +runApplication subsetMesh c0 -patch walls -overwrite + +# split into the cabin, ice and exterior regions +runApplication splitMeshRegions -cellZones -overwrite + +# set the initial fields +rm -rf 0 +cp -rf 0.org 0 diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/g b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/g new file mode 100644 index 0000000000..efd2b0b9ea --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/g @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +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 ); + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/thermophysicalProperties new file mode 100644 index 0000000000..b8b64024e6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/thermophysicalProperties @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture pureMixture; + transport const; + thermo hConst; + equationOfState perfectGas; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + nMoles 1; + molWeight 28.9; + } + thermodynamics + { + Cp 1007; + Hf 0; + } + transport + { + mu 1.84e-05; + Pr 0.7; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/turbulenceProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/turbulenceProperties new file mode 100644 index 0000000000..eee1f1c8d5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/cabin/turbulenceProperties @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + + printCoeffs on; +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/g b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/g new file mode 100644 index 0000000000..efd2b0b9ea --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/g @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +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 ); + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/thermophysicalProperties new file mode 100644 index 0000000000..b8b64024e6 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/thermophysicalProperties @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture pureMixture; + transport const; + thermo hConst; + equationOfState perfectGas; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + nMoles 1; + molWeight 28.9; + } + thermodynamics + { + Cp 1007; + Hf 0; + } + transport + { + mu 1.84e-05; + Pr 0.7; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/turbulenceProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/turbulenceProperties new file mode 100644 index 0000000000..eee1f1c8d5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/exterior/turbulenceProperties @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + + printCoeffs on; +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/g b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/g new file mode 100644 index 0000000000..efd2b0b9ea --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/g @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +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 ); + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/thermophysicalProperties new file mode 100644 index 0000000000..0402275bfb --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/thermophysicalProperties @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture pureMixture; + transport const; + thermo hConst; + equationOfState rhoConst; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + nMoles 1; + molWeight 18; + } + + transport + { + Pr 1.1e-3; + mu 1.7e-3; + } + + thermodynamics + { + Hf 0; + Cp 2000; + } + + equationOfState + { + rho 1000; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/turbulenceProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/turbulenceProperties new file mode 100644 index 0000000000..5eec042672 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/ice/turbulenceProperties @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/regionProperties b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/regionProperties new file mode 100644 index 0000000000..68f7f29623 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/constant/regionProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object regionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +regions +( + fluid (exterior ice cabin) + solid () +); + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/blockMeshDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/blockMeshDict new file mode 100644 index 0000000000..24b4060e2f --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/blockMeshDict @@ -0,0 +1,159 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +vertices +( + ( -0.10 0 0) // 0 // cabin interior + ( -0.05 0 0) // 1 + ( 0.20 0 0) // 2 + ( 0.20 0.05 0) // 3 + ( -0.05 0.05 0) // 4 + ( -0.05 0.10 0) // 5 + ( 1.00 0.10 0) // 6 + ( 1.00 0.50 0) // 7 + ( 0.35 0.50 0) // 8 + ( 0.30 0.50 0) // 9 + ( -0.10 0.10 0) // 10 + ( -0.10 0.05 0) // 11 + + ( -0.1005 0.10 0) // 12 // windshield (doubled vertices with 10, 9) + ( 0.2995 0.50 0) // 13 + + ( -0.50 0.50 0) // 14 // cabin exterior + ( -0.50 0.10 0) // 15 + + + ( 0 0 0.70) // 16 // cabin interior + ( 0.05 0 0.70) // 17 + ( 0.20 0 0.70) // 18 + ( 0.20 0.05 0.70) // 19 + ( 0.05 0.05 0.70) // 20 + ( 0.05 0.10 0.70) // 21 + ( 1.00 0.10 0.70) // 22 + ( 1.00 0.50 0.70) // 23 + ( 0.45 0.50 0.70) // 24 + ( 0.40 0.50 0.70) // 25 + ( 0 0.10 0.70) // 26 + ( 0 0.05 0.70) // 27 + + ( -0.0005 0.10 0.70) // 28 // windshield (doubled vertices with 26, 25) + ( 0.3995 0.50 0.70) // 29 + + ( -0.50 0.50 0.70) // 30 // cabin exterior + ( -0.50 0.10 0.70) // 31 +); + + +blocks +( + hex ( 1 2 3 4 17 18 19 20) cabin (15 5 50) simpleGrading (1 1 1) + hex ( 0 1 4 11 16 17 20 27) cabin ( 7 5 50) simpleGrading (1 1 1) + hex (11 4 5 10 27 20 21 26) cabin ( 7 5 50) simpleGrading (1 1 1) + hex (10 5 8 9 26 21 24 25) cabin ( 7 45 50) simpleGrading (1 1 1) + hex ( 5 6 7 8 21 22 23 24) cabin (45 45 50) simpleGrading (3 1 1) + + hex ( 12 10 9 13 28 26 25 29) ice (45 45 50) simpleGrading (1 1 1) + + hex (15 12 13 14 31 28 29 30) exterior (30 45 50) simpleGrading (0.4 1 1) +); + + +edges +( + arc 9 10 (0.07 0.3 0) + arc 12 13 (0.0695 0.3 0) + + arc 25 26 (0.17 0.3 0.70) + arc 28 29 (0.1695 0.3 0.70) + + arc 9 25 (0.33 0.5 0.35) + arc 13 29 (0.3295 0.5 0.35) + + arc 10 26 (-0.07 0.1 0.35) + arc 12 28 (-0.0705 0.1 0.35) + + arc 5 8 (0.13 0.3 0) + arc 21 24 (0.23 0.3 0.70) + + arc 8 24 (0.38 0.5 0.35) + arc 5 21 (-0.02 0.1 0.35) + + arc 11 27 (-0.07 0.05 0.35) + arc 0 16 (-0.07 0 0.35) + + arc 4 20 (-0.02 0.05 0.35) + arc 1 17 (-0.02 0 0.35) +); + + +defaultPatch +{ + name walls; + type wall; +} + + +boundary +( + inlet + { + type patch; + faces + ( + (2 18 19 3) + ); + } + outlet + { + type patch; + faces + ( + (6 22 23 7) + ); + } + atmosphere + { + type patch; + faces + ( + (31 30 29 28) + (14 13 29 30) + (15 31 28 12) + (15 14 30 31) + ); + } + symmetry + { + type symmetryPlane; + faces + ( + (5 6 7 8) + (10 5 8 9) + (12 10 9 13) + (15 12 13 14) + ); + } +); + + +mergePatchPairs +( +); + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/decomposeParDict new file mode 100644 index 0000000000..e0a1bb5397 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/decomposeParDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n (1 2 2); + delta 0.001; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes new file mode 100644 index 0000000000..677c4419f5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; + grad(p_rgh) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss linearUpwind grad(U); + div(phi,K) Gauss linear; + div(phi,h) Gauss limitedLinear 1; + div(phi,k) Gauss limitedLinear 1; + div(phi,omega) Gauss limitedLinear 1; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian((rho*nuEff),U) Gauss linear corrected; + laplacian((rho*DkEff),k) Gauss linear corrected; + laplacian((rho*DomegaEff),omega) Gauss linear corrected; + laplacian(rhorAUf,p_rgh) Gauss linear corrected; + laplacian(alphaEff,h) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default no; + p_rgh ; +} + +wallDist +{ + method meshWave; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution new file mode 100644 index 0000000000..5aafaecc06 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + p_rgh + { + solver GAMG; + tolerance 1e-06; + relTol 0.1; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + p_rghFinal + { + $p_rgh; + smoother DICGaussSeidel; + relTol 0; + } + + "rho.*" + { + $p_rgh; + tolerance 1e-05; + relTol 0; + } + + "(U|h|R|k|epsilon|omega)" + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-05; + relTol 0.1; + } + + "(U|h|R|k|epsilon|omega)Final" + { + $U; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict new file mode 100644 index 0000000000..9440e7bc28 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict @@ -0,0 +1,74 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application chtMultiRegionFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 600; + +deltaT 0.0001; + +writeControl adjustableRunTime; + +writeInterval 1; + +purgeWrite 0; + +writeFormat binary; + +writePrecision 10; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + +adjustTimeStep yes; + +maxCo 1; + +maxDeltaT 1; + +functions +{ + massFlux + { + type faceSource; + functionObjectLibs ("libfieldFunctionObjects.so"); + enabled yes; + outputControl timeStep; //outputTime; + outputInterval 1; + log yes; + valueOutput no; + source patch; + sourceName inlet; + operation sum; + fields (phi); + region cabin; + } +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/decomposeParDict new file mode 100644 index 0000000000..e0a1bb5397 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/decomposeParDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n (1 2 2); + delta 0.001; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/decomposeParDict new file mode 100644 index 0000000000..e0a1bb5397 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/decomposeParDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n (1 2 2); + delta 0.001; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes new file mode 100644 index 0000000000..677c4419f5 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; + grad(p_rgh) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss linearUpwind grad(U); + div(phi,K) Gauss linear; + div(phi,h) Gauss limitedLinear 1; + div(phi,k) Gauss limitedLinear 1; + div(phi,omega) Gauss limitedLinear 1; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian((rho*nuEff),U) Gauss linear corrected; + laplacian((rho*DkEff),k) Gauss linear corrected; + laplacian((rho*DomegaEff),omega) Gauss linear corrected; + laplacian(rhorAUf,p_rgh) Gauss linear corrected; + laplacian(alphaEff,h) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default no; + p_rgh ; +} + +wallDist +{ + method meshWave; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution new file mode 100644 index 0000000000..fd73547e5c --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + p_rgh + { + solver GAMG; + tolerance 1e-06; + relTol 0.1; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + p_rghFinal + { + $p_rgh; + smoother DICGaussSeidel; + relTol 0; + } + + "rho.*" + { + $p_rgh; + tolerance 1e-05; + relTol 0; + } + + "(U|h|R|k|epsilon|omega)" + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-05; + relTol 0.1; + } + + "(U|h|R|k|epsilon|omega)Final" + { + $U; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes new file mode 100644 index 0000000000..1a61c2154b --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes @@ -0,0 +1,67 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; + grad(p_rgh) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss linearUpwind grad(U); + div(phi,K) Gauss linear; + div(phi,h) Gauss limitedLinear 1; + div(phi,k) Gauss limitedLinear 1; + div(phi,omega) Gauss limitedLinear 1; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian((rho*nuEff),U) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + laplacian(DomegaEff,omega) Gauss linear corrected; + laplacian(rAUf,p_rgh) Gauss linear corrected; + laplacian(alphaEff,h) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default no; + p_rgh ; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution new file mode 100644 index 0000000000..5aafaecc06 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + p_rgh + { + solver GAMG; + tolerance 1e-06; + relTol 0.1; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + p_rghFinal + { + $p_rgh; + smoother DICGaussSeidel; + relTol 0; + } + + "rho.*" + { + $p_rgh; + tolerance 1e-05; + relTol 0; + } + + "(U|h|R|k|epsilon|omega)" + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-05; + relTol 0.1; + } + + "(U|h|R|k|epsilon|omega)Final" + { + $U; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/decomposeParDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/decomposeParDict new file mode 100644 index 0000000000..e0a1bb5397 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/decomposeParDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n (1 2 2); + delta 0.001; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvOptions b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvOptions new file mode 100644 index 0000000000..af35530762 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvOptions @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvOptions; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +iceZone +{ + type solidificationMeltingSource; + active on; + + solidificationMeltingSourceCoeffs + { + selectionMode all; + + Tmelt 273; + L 334000; // enthalpy of fusion for water [J/kg] + thermoMode thermo; // retrieve thermo properties from themo model + beta 50e-6; // thermal expansion coeff [1/K] + + rhoRef 1000; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes new file mode 100644 index 0000000000..0ac94f6bf7 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes @@ -0,0 +1,63 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; + grad(p_rgh) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss upwind; + div(phi,K) Gauss upwind; + div(phi,h) Gauss upwind; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian((rho*nuEff),U) Gauss linear corrected; + laplacian(rhorAUf,p_rgh) Gauss linear corrected; + laplacian(thermo:alpha,h) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default no; + p_rgh ; +} + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution new file mode 100644 index 0000000000..fddf09d035 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution @@ -0,0 +1,99 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ +/* + p_rgh + { + solver GAMG; + tolerance 1e-06; + relTol 0.1; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + nFinestSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + maxIter 20; + } + + p_rghFinal + { + $p_rgh; + smoother DICGaussSeidel; + relTol 0; + } +*/ + p_rgh + { + solver PCG; + preconditioner DIC; + tolerance 1e-07; + relTol 0.05; + } + + p_rghFinal + { + $p_rgh; + relTol 0; + } + + "rho.*" + { + $p_rgh; + tolerance 1e-05; + relTol 0; + } + + "(U|h)" + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-05; + relTol 0.1; + } + + "(U|h)Final" + { + $U; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor no; + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/topoSetDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/topoSetDict new file mode 100644 index 0000000000..128cdc2145 --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/topoSetDict @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: plus | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + // make the mesh a little more interesting... + { + name c0; + type cellSet; + action new; + source boxToCell; + sourceInfo + { + box (-100 -100 -100) (100 0.1 0.25); + } + } + { + name c0; + type cellSet; + action add; + source boxToCell; + sourceInfo + { + box (-100 -100 0.45) (100 0.1 100); + } + } + { + name c0; + type cellSet; + action add; + source boxToCell; + sourceInfo + { + box (-100 0.05 0.33) (100 0.1 0.38); + } + } + { + name c0; + type cellSet; + action invert; + } +); + + +// ************************************************************************* //