From 3636876e68ab813dd05b6613f27dfded30d74cce Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 13 Jun 2022 16:32:22 +0100 Subject: [PATCH] TUT: groundAbsorption: new tutorial for speciesSorption and enthalpySorption BCs --- .../groundAbsorption/0.orig/CH4 | 51 +++++++ .../groundAbsorption/0.orig/N2 | 43 ++++++ .../groundAbsorption/0.orig/O2 | 43 ++++++ .../rhoReactingFoam/groundAbsorption/0.orig/T | 60 ++++++++ .../rhoReactingFoam/groundAbsorption/0.orig/U | 43 ++++++ .../groundAbsorption/0.orig/Ydefault | 43 ++++++ .../groundAbsorption/0.orig/alphat | 40 +++++ .../rhoReactingFoam/groundAbsorption/0.orig/k | 43 ++++++ .../groundAbsorption/0.orig/nut | 40 +++++ .../rhoReactingFoam/groundAbsorption/0.orig/p | 44 ++++++ .../groundAbsorption/0.orig/p_rgh | 45 ++++++ .../rhoReactingFoam/groundAbsorption/Allclean | 10 ++ .../rhoReactingFoam/groundAbsorption/Allrun | 35 +++++ .../constant/chemistryProperties | 27 ++++ .../constant/combustionProperties | 29 ++++ .../groundAbsorption/constant/fvOptions | 32 ++++ .../groundAbsorption/constant/g | 21 +++ .../groundAbsorption/constant/reactions | 12 ++ .../constant/surfaceFilmProperties | 24 +++ .../constant/thermo.compressibleGas | 144 ++++++++++++++++++ .../constant/thermophysicalProperties | 39 +++++ .../constant/turbulenceProperties | 20 +++ .../groundAbsorption/system/blockMeshDict | 73 +++++++++ .../groundAbsorption/system/controlDict | 56 +++++++ .../groundAbsorption/system/createPatchDict | 43 ++++++ .../groundAbsorption/system/decomposeParDict | 27 ++++ .../groundAbsorption/system/fvSchemes | 64 ++++++++ .../groundAbsorption/system/fvSolution | 75 +++++++++ .../groundAbsorption/system/topoSetDict | 29 ++++ 29 files changed, 1255 insertions(+) create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/CH4 create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/N2 create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/O2 create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/T create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/U create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/Ydefault create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/alphat create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/k create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/nut create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p_rgh create mode 100755 tutorials/combustion/rhoReactingFoam/groundAbsorption/Allclean create mode 100755 tutorials/combustion/rhoReactingFoam/groundAbsorption/Allrun create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/chemistryProperties create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/combustionProperties create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/fvOptions create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/g create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/reactions create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/surfaceFilmProperties create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermo.compressibleGas create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermophysicalProperties create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/turbulenceProperties create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/blockMeshDict create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/controlDict create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/createPatchDict create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/decomposeParDict create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSchemes create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSolution create mode 100644 tutorials/combustion/rhoReactingFoam/groundAbsorption/system/topoSetDict diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/CH4 b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/CH4 new file mode 100644 index 0000000000..5b70d8312c --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/CH4 @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object CH4; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + "(outlet|sides)" + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + base + { + type speciesSorption; + equilibriumModel Langmuir; + kinematicModel PseudoFirstOrder; + kabs 10; // [1/sec] + kl 0.01; //[1/mol] + max 0.1; // [mol/Kg] + thickness uniform 1e-3; + rhoS 2000; + value $internalField; + } + + inlet + { + type fixedValue; + value uniform 1.0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/N2 b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/N2 new file mode 100644 index 0000000000..a504cfaaca --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/N2 @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object N2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.76699; + +boundaryField +{ + "(outlet|sides)" + { + type calculated; + value $internalField; + } + + base + { + type calculated; + value $internalField; + } + + inlet + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/O2 b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/O2 new file mode 100644 index 0000000000..1d71259408 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/O2 @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.23301; + +boundaryField +{ + "(outlet|sides)" + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + base + { + type zeroGradient; + } + + inlet + { + type fixedValue; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/T b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/T new file mode 100644 index 0000000000..b7291aa2f5 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/T @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + "(outlet|sides)" + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + base + { +// type zeroGradient; + + type enthalpySorption; + enthalpyModel calculated; + enthalpyTable + { + type table; + values + ( + (0 0) + (1e-2 1e4) + (4e-2 2e4) + ); + } + species CH4; + includeHs true; + Hvap 1e6; + value $internalField; + } + + inlet + { + type fixedValue; + value uniform 300; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/U b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/U new file mode 100644 index 0000000000..e30eae8ffb --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/U @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + "(outlet|sides)" + { + type pressureInletOutletVelocity; + value uniform (0 0 0); + } + + base + { + type fixedValue; + value uniform (0 0.01 0); + } + + inlet + { + type fixedValue; + value uniform (0 0.01 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/Ydefault b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/Ydefault new file mode 100644 index 0000000000..78820becc3 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/Ydefault @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object Ydefault; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + "(outlet|sides)" + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + base + { + type zeroGradient; + } + + inlet + { + type fixedValue; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/alphat b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/alphat new file mode 100644 index 0000000000..78c5dc00fd --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/alphat @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + "(outlet|sides)" + { + type zeroGradient; + } + + base + { + type zeroGradient; + } + + inlet + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/k b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/k new file mode 100644 index 0000000000..aa8b891e24 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/k @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 1e-4; + +boundaryField +{ + "(outlet|sides)" + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + base + { + type zeroGradient; + } + + inlet + { + type fixedValue; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/nut b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/nut new file mode 100644 index 0000000000..30cf622e62 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/nut @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + "(outlet|sides)" + { + type zeroGradient; + } + + base + { + type zeroGradient; + } + + inlet + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p new file mode 100644 index 0000000000..803c58ab46 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 101325; + +boundaryField +{ + "(outlet|sides)" + { + type totalPressure; + p0 $internalField; + value $internalField; + } + + base + { + type fixedFluxPressure; + value $internalField; + } + + inlet + { + type fixedFluxPressure; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p_rgh b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p_rgh new file mode 100644 index 0000000000..d9eff58f7b --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/0.orig/p_rgh @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + "(outlet|sides)" + { + type prghTotalHydrostaticPressure; + p0 $internalField; + gamma 1; + value $internalField; + } + + base + { + type fixedFluxPressure; + value $internalField; + } + + inlet + { + type fixedFluxPressure; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/Allclean b/tutorials/combustion/rhoReactingFoam/groundAbsorption/Allclean new file mode 100755 index 0000000000..95f16ccfd2 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/Allclean @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions +#------------------------------------------------------------------------------ + +cleanCase0 + +rm -Rf oldProcessors + +#------------------------------------------------------------------------------ diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/Allrun b/tutorials/combustion/rhoReactingFoam/groundAbsorption/Allrun new file mode 100755 index 0000000000..14976575b2 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/Allrun @@ -0,0 +1,35 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +restore0Dir + +runApplication blockMesh + +runApplication topoSet + +runApplication createPatch -overwrite + +runApplication decomposePar -force + +runParallel $(getApplication) + +runApplication reconstructPar + + +latestTime=$(foamListTimes -latestTime) + +mv -f "$latestTime" "$latestTime".bak + +mkdir oldProcessors + +mv -f processor* oldProcessors + +runParallel -s "decompose" redistributePar -decompose -latestTime + +runParallel -s "restart" $(getApplication) + +runParallel -s "reconstruct" redistributePar -reconstruct -latestTime + +#------------------------------------------------------------------------------ diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/chemistryProperties b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/chemistryProperties new file mode 100644 index 0000000000..b56ed38d71 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/chemistryProperties @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object chemistryProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +chemistryType +{ + solver noChemistrySolver; +} + +chemistry off; + +initialChemicalTimeStep 1e-07; + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/combustionProperties b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/combustionProperties new file mode 100644 index 0000000000..e901e39609 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/combustionProperties @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object combustionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +combustionModel laminar; + +EDMCoeffs +{ + semiImplicit no; + Cd 1; + CEDC 1; +} + +active off; + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/fvOptions b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/fvOptions new file mode 100644 index 0000000000..ee5e0378b0 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/fvOptions @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvOptions; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +patchCellsMassSource +{ + type patchCellsSource; + species CH4; + active true; +} + +patchCellsEnthalpySource +{ + type patchCellsSource; + he h; + active true; +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/g b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/g new file mode 100644 index 0000000000..c08dfd97b4 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/g @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: 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.8 0); + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/reactions b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/reactions new file mode 100644 index 0000000000..ec91b149f2 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/reactions @@ -0,0 +1,12 @@ +species +( + O2 + H2O + CH4 + CO2 + N2 +); + +reactions +{ +} diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/surfaceFilmProperties b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/surfaceFilmProperties new file mode 100644 index 0000000000..322a327a2f --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/surfaceFilmProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFilmProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaceFilmModel none; + +region none; + +active false; + + +// ************************************************************************* // \ No newline at end of file diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermo.compressibleGas b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermo.compressibleGas new file mode 100644 index 0000000000..3da131e5c2 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermo.compressibleGas @@ -0,0 +1,144 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermo.compressibleGas; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +O2 +{ + specie + { + molWeight 31.9988; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 ); + lowCpCoeffs ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +H2O +{ + specie + { + molWeight 18.0153; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.201e-10 -6.39162e-15 -29899.2 6.86282 ); + lowCpCoeffs ( 3.38684 0.00347498 -6.3547e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +CH4 +{ + specie + { + molWeight 16.0428; + } + thermodynamics + { + Tlow 200; + Thigh 6000; + Tcommon 1000; + highCpCoeffs ( 1.63543 0.0100844 -3.36924e-06 5.34973e-10 -3.15528e-14 -10005.6 9.9937 ); + lowCpCoeffs ( 5.14988 -0.013671 4.91801e-05 -4.84744e-08 1.66694e-11 -10246.6 -4.64132 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +CO2 +{ + specie + { + molWeight 44.01; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 4.45362 0.00314017 -1.27841e-06 2.394e-10 -1.66903e-14 -48967 -0.955396 ); + lowCpCoeffs ( 2.27572 0.00992207 -1.04091e-05 6.86669e-09 -2.11728e-12 -48373.1 10.1885 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +N2 +{ + specie + { + molWeight 28.0134; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 2.92664 0.00148798 -5.68476e-07 1.0097e-10 -6.75335e-15 -922.798 5.98053 ); + lowCpCoeffs ( 3.29868 0.00140824 -3.96322e-06 5.64152e-09 -2.44486e-12 -1020.9 3.95037 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +CO +{ + specie + { + molWeight 28.0106; + } + thermodynamics + { + Tlow 200; + Thigh 6000; + Tcommon 1000; + highCpCoeffs ( 3.04849 0.00135173 -4.85794e-07 7.88536e-11 -4.69807e-15 -14266.1 6.0171 ); + lowCpCoeffs ( 3.57953 -0.000610354 1.01681e-06 9.07006e-10 -9.04424e-13 -14344.1 3.50841 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermophysicalProperties b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermophysicalProperties new file mode 100644 index 0000000000..52bb717df9 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/thermophysicalProperties @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture reactingMixture; + transport sutherland; + thermo janaf; + energy sensibleEnthalpy; + equationOfState perfectGas; + specie specie; +} + +inertSpecie N2; + +fuel CH4; + +chemistryReader foamChemistryReader; + +foamChemistryFile "/reactions"; + +foamChemistryThermoFile "/thermo.compressibleGas"; + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/turbulenceProperties b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/turbulenceProperties new file mode 100644 index 0000000000..15113f55f9 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/blockMeshDict b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/blockMeshDict new file mode 100644 index 0000000000..e1b9fbef60 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/blockMeshDict @@ -0,0 +1,73 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 1; + +vertices +( + (-0.5 0 -0.5) + ( 0.5 0 -0.5) + ( 0.5 1.0 -0.5) + (-0.5 1.0 -0.5) + (-0.5 0 0.5) + ( 0.5 0 0.5) + ( 0.5 1.0 0.5) + (-0.5 1.0 0.5) + +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (60 60 60) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + base + { + type patch; + faces + ( + (0 1 5 4) + ); + } + outlet + { + type patch; + faces + ( + (3 2 6 7) + ); + } + sides + { + type patch; + faces + ( + (0 4 7 3) + (0 1 2 3) + (1 5 6 2) + (4 5 6 7) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/controlDict b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/controlDict new file mode 100644 index 0000000000..ee1d14fde8 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/controlDict @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application rhoReactingFoam; + +startFrom latestTime; + +startTime 0.0; + +stopAt endTime; + +endTime 2.0; + +deltaT 0.001; + +writeControl adjustable; + +writeInterval 0.1; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +graphFormat raw; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 0.6; + +maxDeltaT 0.1; + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/createPatchDict b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/createPatchDict new file mode 100644 index 0000000000..a0056784a9 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/createPatchDict @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object createPatchDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +pointSync false; + +patches +( + { + // Name of new patch + name inlet; + + // Type of new patch + patchInfo + { + type patch; + } + + // How to construct: either from 'patches' or 'set' + constructFrom set; + + // If constructFrom = patches : names of patches. Wildcards allowed. + patches ("periodic.*"); + + // If constructFrom = set : name of faceSet + set f0; + } +); + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/decomposeParDict b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/decomposeParDict new file mode 100644 index 0000000000..cbbbabb8fe --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/decomposeParDict @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method hierarchical; + +coeffs +{ + n (1 2 2); +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSchemes b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSchemes new file mode 100644 index 0000000000..5986b01c85 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSchemes @@ -0,0 +1,64 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + default none; + + div(phi,U) Gauss LUST grad(U); + + div(phi,K) Gauss linear; + div(phi,k) Gauss limitedLinear 1; + div(phi,Yi_h) Gauss multivariateSelection + { + O2 limitedLinear01 1; + CH4 limitedLinear01 1; + N2 limitedLinear01 1; + H2O limitedLinear01 1; + CO2 limitedLinear01 1; + h limitedLinear 1; + }; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; + div(Ji,Ii_h) Gauss upwind; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSolution b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSolution new file mode 100644 index 0000000000..a5071c1ac1 --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/fvSolution @@ -0,0 +1,75 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "(rho|rhoFinal)" + { + solver diagonal; + }; + + p + { + solver GAMG; + tolerance 1e-6; + relTol 0.1; + smoother GaussSeidel; + }; + + pFinal + { + $p; + tolerance 1e-6; + relTol 0; + maxIter 100; + }; + + "(U|Yi|k|h)" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-6; + relTol 0.1; + nSweeps 1; + }; + + "(U|Yi|k|h)Final" + { + $U; + tolerance 1e-6; + relTol 0; + }; +} + +PIMPLE +{ + momentumPredictor yes; + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + "(U|k).*" 1; + "(CH4|O2|H2O|CO2|h).*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/topoSetDict b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/topoSetDict new file mode 100644 index 0000000000..9951a32cac --- /dev/null +++ b/tutorials/combustion/rhoReactingFoam/groundAbsorption/system/topoSetDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2106 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name f0; + type faceSet; + action new; + source boxToFace; + box (-0.1 -0.001 -0.1)(0.1 0.005 0.1); + } +); + + +// ************************************************************************* //