From 6abc63b6c326f667ce48ce384b97e3359ec63277 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 2 Nov 2010 13:15:49 +0000 Subject: [PATCH] ENH: Added steadyReactingParcelFoam tutorial cases --- .../counterFlowFlame2D/0/CH4 | 48 ++++ .../counterFlowFlame2D/0/CO2 | 48 ++++ .../counterFlowFlame2D/0/H2O | 48 ++++ .../counterFlowFlame2D/0/N2 | 49 ++++ .../counterFlowFlame2D/0/O2 | 48 ++++ .../counterFlowFlame2D/0/T | 48 ++++ .../counterFlowFlame2D/0/U | 45 ++++ .../counterFlowFlame2D/0/alphat | 45 ++++ .../counterFlowFlame2D/0/epsilon | 45 ++++ .../counterFlowFlame2D/0/k | 45 ++++ .../counterFlowFlame2D/0/mut | 45 ++++ .../counterFlowFlame2D/0/p | 49 ++++ .../counterFlowFlame2D/0/rho | 46 ++++ .../counterFlowFlame2D/Allrun | 11 + .../counterFlowFlame2D/constant/RASProperties | 25 ++ .../constant/chemistryProperties | 32 +++ .../constant/energySourceProperties | 22 ++ .../counterFlowFlame2D/constant/g | 22 ++ .../constant/massSourceProperties | 23 ++ .../constant/momentumSourceProperties | 23 ++ .../constant/polyMesh/blockMeshDict | 66 +++++ .../constant/polyMesh/boundary | 46 ++++ .../constant/radiationProperties | 24 ++ .../constant/reactingCloud1Properties | 99 ++++++++ .../counterFlowFlame2D/constant/reactions | 19 ++ .../constant/thermo.icoPoly8 | 79 ++++++ .../constant/thermophysicalProperties | 29 +++ .../constant/turbulenceProperties | 21 ++ .../counterFlowFlame2D/system/controlDict | 54 +++++ .../counterFlowFlame2D/system/fvSchemes | 70 ++++++ .../counterFlowFlame2D/system/fvSolution | 77 ++++++ .../verticalChannel/0.org/H2O | 54 +++++ .../verticalChannel/0.org/T | 54 +++++ .../verticalChannel/0.org/U | 57 +++++ .../verticalChannel/0.org/air | 54 +++++ .../verticalChannel/0.org/alphat | 56 +++++ .../verticalChannel/0.org/k | 57 +++++ .../verticalChannel/0.org/mut | 58 +++++ .../verticalChannel/0.org/omega | 62 +++++ .../verticalChannel/0.org/p | 52 ++++ .../verticalChannel/0/H2O | 54 +++++ .../verticalChannel/0/T | 54 +++++ .../verticalChannel/0/U | 57 +++++ .../verticalChannel/0/air | 54 +++++ .../verticalChannel/0/alphat | 56 +++++ .../verticalChannel/0/k | 57 +++++ .../verticalChannel/0/mut | 58 +++++ .../verticalChannel/0/omega | 62 +++++ .../verticalChannel/0/p | 52 ++++ .../verticalChannel/Allclean | 16 ++ .../verticalChannel/Allrun | 13 + .../verticalChannel/constant/RASProperties | 24 ++ .../constant/chemistryProperties | 30 +++ .../constant/energySourceProperties | 22 ++ .../verticalChannel/constant/g | 22 ++ .../constant/massSourceProperties | 23 ++ .../constant/momentumSourceProperties | 23 ++ .../constant/particleTrackDict | 29 +++ .../constant/polyMesh/blockMeshDict | 203 ++++++++++++++++ .../constant/polyMesh/boundary | 58 +++++ .../verticalChannel/constant/porousZones | 38 +++ .../constant/radiationProperties | 24 ++ .../constant/reactingCloud1Properties | 227 ++++++++++++++++++ .../verticalChannel/constant/reactions | 9 + .../constant/thermo.incompressiblePoly | 55 +++++ .../constant/thermophysicalProperties | 49 ++++ .../constant/turbulenceProperties | 20 ++ .../verticalChannel/system/controlDict | 81 +++++++ .../verticalChannel/system/fvSchemes | 65 +++++ .../verticalChannel/system/fvSolution | 85 +++++++ 70 files changed, 3475 insertions(+) create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CH4 create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CO2 create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/H2O create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/N2 create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/O2 create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/T create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/U create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/alphat create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/epsilon create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/k create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/mut create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/p create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/rho create mode 100755 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/Allrun create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/RASProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/chemistryProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/energySourceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/g create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/massSourceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/momentumSourceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/blockMeshDict create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/boundary create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/radiationProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactingCloud1Properties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactions create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermo.icoPoly8 create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermophysicalProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/turbulenceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/controlDict create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSchemes create mode 100755 tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSolution create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/H2O create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/T create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/U create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/air create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/alphat create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/k create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/mut create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/omega create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/p create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/H2O create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/T create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/U create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/air create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/alphat create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/k create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/mut create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/omega create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/p create mode 100755 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allclean create mode 100755 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allrun create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/RASProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/chemistryProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/energySourceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/g create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/massSourceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/momentumSourceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/particleTrackDict create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/blockMeshDict create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/boundary create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/porousZones create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/radiationProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactions create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermo.incompressiblePoly create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermophysicalProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/turbulenceProperties create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/controlDict create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSchemes create mode 100644 tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSolution diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CH4 b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CH4 new file mode 100644 index 0000000000..dcdd095f09 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CH4 @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object CH4; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.0; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 1.0; + } + air + { + type fixedValue; + value uniform 0.0; + } + outlet + { + type inletOutlet; + inletValue uniform 0.0; + value uniform 0.0; + + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CO2 b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CO2 new file mode 100644 index 0000000000..d2c37b4bdf --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/CO2 @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object CO2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 0; + } + air + { + type fixedValue; + value uniform 0; + } + outlet + { + type inletOutlet; + inletValue uniform 0; + value uniform 0; + + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/H2O b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/H2O new file mode 100644 index 0000000000..8d61fded89 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/H2O @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 0; + } + air + { + type fixedValue; + value uniform 0; + } + outlet + { + type inletOutlet; + inletValue uniform 0; + value uniform 0; + + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/N2 b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/N2 new file mode 100644 index 0000000000..fe58a68fd1 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/N2 @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 1; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 0.0; + } + air + { + type fixedValue; + value uniform 0.77; + } + outlet + { + type inletOutlet; +// inletValue uniform 0.77; + inletValue uniform 1; + value uniform 1; + + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/O2 b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/O2 new file mode 100644 index 0000000000..fe694c0077 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/O2 @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 0.0; + } + air + { + type fixedValue; + value uniform 0.23; + } + outlet + { + type inletOutlet; +// inletValue uniform 0.23; + inletValue uniform 0; + value uniform 0; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/T b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/T new file mode 100644 index 0000000000..254322f38e --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/T @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 293; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 800; + } + air + { + type fixedValue; + value uniform 800; + } + outlet + { + type inletOutlet; + inletValue uniform 293; + value uniform 293; + + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/U b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/U new file mode 100644 index 0000000000..78074cd034 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/U @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + fuel + { + type fixedValue; + value uniform (0.1 0 0); + } + air + { + type fixedValue; + value uniform (-0.1 0 0); + } + outlet + { + type zeroGradient; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/alphat b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/alphat new file mode 100644 index 0000000000..c6a19d393c --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/alphat @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 0; + } + air + { + type fixedValue; + value uniform 0; + } + outlet + { + type zeroGradient; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/epsilon b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/epsilon new file mode 100644 index 0000000000..ec0712d21a --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/epsilon @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -3 0 0 0 0]; + +internalField uniform 50; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 1e-05; + } + air + { + type fixedValue; + value uniform 1e-05; + } + outlet + { + type zeroGradient; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/k b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/k new file mode 100644 index 0000000000..02df09367c --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/k @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 3.75e-05; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 3.75e-05; + } + air + { + type fixedValue; + value uniform 3.75e-05; + } + outlet + { + type zeroGradient; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/mut b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/mut new file mode 100644 index 0000000000..ce5aa6dc2b --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/mut @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object mut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + fuel + { + type fixedValue; + value uniform 0; + } + air + { + type fixedValue; + value uniform 0; + } + outlet + { + type zeroGradient; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/p b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/p new file mode 100644 index 0000000000..bb7898548f --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/p @@ -0,0 +1,49 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + fuel + { + type zeroGradient; + } + air + { + type zeroGradient; + } + inlet2 + { + type zeroGradient; + } + outlet + { + type fixedValue; + value uniform 1e5; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/rho b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/rho new file mode 100644 index 0000000000..4b521a1542 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/0/rho @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object rho; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -3 0 0 0 0 0]; + +internalField uniform 1.18001; + +boundaryField +{ + fuel + { + type calculated; + value uniform 0.243121; + } + air + { + type calculated; + value uniform 0.438564; + } + outlet + { + type calculated; + value uniform 1.18001; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/Allrun b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/Allrun new file mode 100755 index 0000000000..4263158119 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/Allrun @@ -0,0 +1,11 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# create mesh +runApplication blockMesh + +# run the solver +runApplication steadyReactingParcelFoam diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/RASProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/RASProperties new file mode 100644 index 0000000000..81b1ec9115 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/RASProperties @@ -0,0 +1,25 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object RASProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +RASModel kEpsilon; + +turbulence on; + +printCoeffs on; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/chemistryProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/chemistryProperties new file mode 100644 index 0000000000..a8bc06420f --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/chemistryProperties @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object chemistryProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +rhoChemistryModel ODEChemistryModel; + +chemistry on; // off; + +chemistrySolver noChemistrySolver; + +chemCalcFreq 1; + +initialChemicalTimeStep 1e-8; // NOT USED + +Cmix Cmix [ 0 0 0 0 0 0 0 ] 0.1; + +turbulentReaction on; + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/energySourceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/energySourceProperties new file mode 100644 index 0000000000..e9e651eb49 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/energySourceProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object energySourcesProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( + // none +); + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/g b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/g new file mode 100644 index 0000000000..c0436c9ba0 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/g @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class uniformDimensionedVectorField; + location "constant"; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value ( 0 0 0 ); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/massSourceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/massSourceProperties new file mode 100644 index 0000000000..41a0251b15 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/massSourceProperties @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object massSourcesProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( + // none +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/momentumSourceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/momentumSourceProperties new file mode 100644 index 0000000000..6decc46694 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/momentumSourceProperties @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object momentumSourcesProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( + // none +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/blockMeshDict b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/blockMeshDict new file mode 100644 index 0000000000..0befc6212d --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/blockMeshDict @@ -0,0 +1,66 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +vertices +( + (0.0 -0.01 -0.01) + (0.02 -0.01 -0.01) + (0.02 0.01 -0.01) + (0.0 0.01 -0.01) + (0.0 -0.01 0.01) + (0.02 -0.01 0.01) + (0.02 0.01 0.01) + (0.0 0.01 0.01) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (100 40 1) simpleGrading (1 1 1) +); + +edges +( +); + +patches +( + patch fuel + ( + (0 4 7 3) + ) + patch air + ( + (1 2 6 5) + ) + patch outlet + ( + (0 1 5 4) + (7 6 2 3) + ) + empty frontAndBack + ( + (4 5 6 7) + (0 3 2 1) + ) +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/boundary b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/boundary new file mode 100644 index 0000000000..46fd36edba --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/polyMesh/boundary @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev.thermoChemDicts | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +4 +( + fuel + { + type patch; + nFaces 40; + startFace 7860; + } + air + { + type patch; + nFaces 40; + startFace 7900; + } + outlet + { + type patch; + nFaces 200; + startFace 7940; + } + frontAndBack + { + type empty; + nFaces 8000; + startFace 8140; + } +) + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/radiationProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/radiationProperties new file mode 100644 index 0000000000..b05f592925 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/radiationProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + +solverFreq 10; + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactingCloud1Properties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactingCloud1Properties new file mode 100644 index 0000000000..95c7bb4f9e --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactingCloud1Properties @@ -0,0 +1,99 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object reactingCloud1Properties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solution +{ + active no; + + integrationSchemes + { + U Euler; + T Analytical; + } +} + + +constantProperties +{ + parcelTypeId 1; + + rhoMin 1e-15; + minParticleMass 1e-15; + TMin 200; + pMin 1000; + minParticleMass 1e-15; + + rho0 1400; + T0 313; + Cp0 1680; + + youngsModulus 2e9; + poissonsRatio 0.35; + + epsilon0 0.8; + f0 0.3; + + Tvap 400; + Tbp 400; + Pr 0.7; + LDevol 0; + hRetentionCoeff 1; + + constantVolume true; +} + + +particleForces +{ + gravity off; + virtualMass off; + pressureGradient off; + paramagnetic off; +} + + +subModels +{ + InjectionModel none; + + CollisionModel none; + + DragModel none; + + DispersionModel none; + + PatchInteractionModel none; + + HeatTransferModel none; + + CompositionModel none; + + PhaseChangeModel none; + + DevolatilisationModel none; + + SurfaceReactionModel none; + + PostProcessingModel none; + + SurfaceFilmModel none; + + radiation off; +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactions b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactions new file mode 100644 index 0000000000..f2aa545726 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/reactions @@ -0,0 +1,19 @@ +species +( + O2 + H2O + CH4 + CO2 + N2 +); + +reactions +{ + irreversibleArrheniusReaction + { + reaction "CH4 + 2O2 = CO2 + 2H2O"; + A 5.2e16; + beta 0; + Ta 14906; + } +} \ No newline at end of file diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermo.icoPoly8 b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermo.icoPoly8 new file mode 100644 index 0000000000..bd3212dda0 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermo.icoPoly8 @@ -0,0 +1,79 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev.thermoChemDicts | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermo.icoPoly8; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +O2 +{ + nMoles 1; + molWeight 31.9988; + Hf 0; + Sf 6407.93; + rhoCoeffs<8> ( 4.1388 -0.016603 3.3039e-05 -3.6455e-08 2.3302e-11 -8.5664e-15 1.6783e-18 -1.356e-22 ); + CpCoeffs<8> ( 904.2 -0.35136 0.0019339 -2.6639e-06 1.8222e-09 -6.75e-13 1.2962e-16 -1.0131e-20 ); + muCoeffs<8> ( 1.2346e-06 6.5097e-08 -2.8362e-11 8.301e-15 -9.7467e-19 0 0 0 ); + kappaCoeffs<8> ( -0.0017889 9.5996e-05 -3.129e-08 7.9407e-12 -8.1996e-16 0 0 0 ); +} + +H2O +{ + nMoles 1; + molWeight 18.0153; + Hf -13424600; + Sf 10475.4; + rhoCoeffs<8> ( 2.3302 -0.0093477 1.8601e-05 -2.0524e-08 1.3119e-11 -4.8229e-15 9.4489e-19 -7.6342e-23 ); + CpCoeffs<8> ( 1570.5 1.6886 -0.0039382 6.2482e-06 -4.9342e-09 2.0513e-12 -4.3361e-16 3.6812e-20 ); + muCoeffs<8> ( 1.2346e-06 6.5097e-08 -2.8362e-11 8.301e-15 -9.7467e-19 0 0 0 ); + kappaCoeffs<8> ( 0.0069975 0.00013726 8.6579e-09 -7.1514e-12 8.441e-16 0 0 0 ); +} + +CH4 +{ + nMoles 1; + molWeight 16.043; + Hf -4.66836e+06; + Sf 11597.7; + rhoCoeffs<8> ( 2.0751 -0.0083243 1.6564e-05 -1.8277e-08 1.1683e-11 -4.2949e-15 8.4144e-19 -6.7984e-23 ); + CpCoeffs<8> ( 996.92 4.0854 -0.00092999 1.957e-06 -2.9777e-09 1.7459e-12 -4.5594e-16 4.4774e-20 ); + muCoeffs<8> ( 1.2346e-06 6.5097e-08 -2.8362e-11 8.301e-15 -9.7467e-19 0 0 0 ); + kappaCoeffs<8> ( -0.018501 0.00021332 1.4678e-07 -7.7129e-11 1.0936e-14 0 0 0 ); +} + +CO2 +{ + nMoles 1; + molWeight 44.01; + Hf -8.9423e+06; + Sf 4856.6; + rhoCoeffs<8> ( 5.6924 -0.022836 4.544e-05 -5.014e-08 3.2048e-11 -1.1782e-14 2.3083e-18 -1.865e-22 ); + CpCoeffs<8> ( 462.23 1.5803 -0.0010515 7.4618e-08 3.216e-10 -1.9646e-13 4.7679e-17 -4.3027e-21 ); + muCoeffs<8> ( 1.2346e-06 6.5097e-08 -2.8362e-11 8.301e-15 -9.7467e-19 0 0 0 ); + kappaCoeffs<8> ( -0.0076857 0.00010773 -2.7043e-08 4.4967e-12 -3.0218e-16 0 0 0 ); +} + +N2 +{ + nMoles 1; + molWeight 28.0134; + Hf 51.2816; + Sf 6836.49; + rhoCoeffs<8> ( 3.6234 -0.014535 2.8924e-05 -3.1915e-08 2.0399e-11 -7.4994e-15 1.4693e-18 -1.1871e-22 ); + CpCoeffs<8> ( 1049.8 -0.16537 0.00036105 2.0824e-07 -5.3568e-10 3.2274e-13 -8.3335e-17 8.054e-21 ); + muCoeffs<8> ( 1.2346e-06 6.5097e-08 -2.8362e-11 8.301e-15 -9.7467e-19 0 0 0 ); + kappaCoeffs<8> ( 0.0028213 8.6668e-05 -1.5148e-08 1.2499e-12 3.1675e-17 0 0 0 ); +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermophysicalProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermophysicalProperties new file mode 100644 index 0000000000..c5a0b53566 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/thermophysicalProperties @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType hsRhoMixtureThermo>; + +inertSpecie N2; + +chemistryReader foamChemistryReader; + +foamChemistryFile "$FOAM_CASE/constant/reactions"; + +foamChemistryThermoFile "$FOAM_CASE/constant/thermo.icoPoly8"; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/turbulenceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/turbulenceProperties new file mode 100644 index 0000000000..f1f4b717d0 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/constant/turbulenceProperties @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RASModel; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/controlDict b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/controlDict new file mode 100644 index 0000000000..9cb7a51bef --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/controlDict @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application reactingFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 2000; + +deltaT 1; + +writeControl timeStep; + +writeInterval 50; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +writeCompression uncompressed; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 0.5; + +maxDeltaT 1; + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSchemes b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSchemes new file mode 100644 index 0000000000..4873da4b25 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSchemes @@ -0,0 +1,70 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default localEuler invTauFlow; +} + +gradSchemes +{ + default Gauss linear; + grad(p) Gauss linear; +} + +divSchemes +{ + default none; + + div(phi,U) Gauss upwind; + div(phi,Yi_h) Gauss upwind; + div(phi,h) Gauss upwind; + div(phiU,p) Gauss upwind; + div(phi,epsilon) Gauss upwind; + div(phi,k) Gauss upwind; + div((muEff*dev2(grad(U).T()))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear uncorrected; + laplacian(muEff,U) Gauss linear uncorrected; + laplacian(mut,U) Gauss linear uncorrected; + laplacian(DkEff,k) Gauss linear uncorrected; + laplacian(DepsilonEff,epsilon) Gauss linear uncorrected; + laplacian((rho*(1|A(U))),p) Gauss linear uncorrected; + laplacian(alphaEff,h) Gauss linear uncorrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default uncorrected; +} + +fluxRequired +{ + default no; + p; +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSolution b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSolution new file mode 100755 index 0000000000..14096cac1e --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/counterFlowFlame2D/system/fvSolution @@ -0,0 +1,77 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + rho + { + solver PCG; + preconditioner DIC; + tolerance 0; + relTol 0.1; + } + p + { + solver GAMG; + + tolerance 0; + relTol 0.05; + + smoother DICGaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + + cacheAgglomeration true; + + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + + maxIter 50; + }; + + "(U|Yi|hs|k|epsilon)" + { + solver smoothSolver; + smoother GaussSeidel; + tolerance 0; + relTol 0.1; + } +} + +SIMPLE +{ + nNonOrthogonalCorrectors 0; + momentumPredictor yes; + rhoMin rhoMin [1 -3 0 0 0] 0.1; + rhoMax rhoMax [1 -3 0 0 0] 1.5; +} + +additional +{ + eWork true; + hWork true; + solveSpecies true; +} + +relaxationFactors +{ + p 0.3; +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/H2O b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/H2O new file mode 100644 index 0000000000..67bb975759 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/H2O @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.01; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + outlet + { + type inletOutlet; + inletValue uniform 0.0; + } + inletSides + { + type fixedValue; + value uniform 0.01; + } + inletCentral + { + type fixedValue; + value uniform 0.01; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/T b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/T new file mode 100644 index 0000000000..9ebb91c508 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/T @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 473.0; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + outlet + { + type inletOutlet; + inletValue uniform 473.0; + } + inletSides + { + type fixedValue; + value uniform 473.0; + } + inletCentral + { + type fixedValue; + value uniform 573.0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/U b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/U new file mode 100644 index 0000000000..06a3ea20ae --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/U @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type flowRateInletVelocity; + flowRate 0.00379; + value uniform (0 14.68 0); + } + inletSides + { + type flowRateInletVelocity; + flowRate 0.00832; + value uniform (0 17.79 0); + } + outlet + { + type inletOutlet; + inletValue uniform (0 0 0); + } + walls + { + type fixedValue; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/air b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/air new file mode 100644 index 0000000000..10e47881dc --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/air @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object air; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.99; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + outlet + { + type inletOutlet; + inletValue uniform 1.0; + } + inletSides + { + type fixedValue; + value uniform 0.99; + } + inletCentral + { + type fixedValue; + value uniform 0.99; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/alphat b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/alphat new file mode 100644 index 0000000000..4cd631a6db --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/alphat @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type calculated; + value uniform 0; + } + inletSides + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + walls + { + type alphatWallFunction; + Prt 0.85; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/k b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/k new file mode 100644 index 0000000000..087a6a9044 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/k @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 3.75e-9; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.15; + value uniform 3.75e-9; + } + inletSides + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.16; + value uniform 3.75e-9; + } + outlet + { + type inletOutlet; + inletValue uniform 3.75e-9; + } + walls + { + type compressible::kqRWallFunction; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/mut b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/mut new file mode 100644 index 0000000000..05c5f0e267 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/mut @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object mut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type calculated; + value uniform 0; + } + inletSides + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + walls + { + type mutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/omega b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/omega new file mode 100644 index 0000000000..474b496e62 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/omega @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 4.5e-3; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type compressible::turbulentMixingLengthFrequencyInlet; + mixingLength 0.007; + k k; + value uniform 4.5e-3; + } + inletSides + { + type compressible::turbulentMixingLengthFrequencyInlet; + mixingLength 0.007; + k k; + value uniform 4.5e-3; + } + outlet + { + type inletOutlet; + inletValue uniform 4.5e-3; + } + walls + { + type compressible::omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/p b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/p new file mode 100644 index 0000000000..39e19c05d3 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0.org/p @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type zeroGradient; + } + inletSides + { + type zeroGradient; + } + outlet + { + type fixedValue; + value uniform 100000; + } + walls + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/H2O b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/H2O new file mode 100644 index 0000000000..67bb975759 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/H2O @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.01; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + outlet + { + type inletOutlet; + inletValue uniform 0.0; + } + inletSides + { + type fixedValue; + value uniform 0.01; + } + inletCentral + { + type fixedValue; + value uniform 0.01; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/T b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/T new file mode 100644 index 0000000000..9ebb91c508 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/T @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 473.0; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + outlet + { + type inletOutlet; + inletValue uniform 473.0; + } + inletSides + { + type fixedValue; + value uniform 473.0; + } + inletCentral + { + type fixedValue; + value uniform 573.0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/U b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/U new file mode 100644 index 0000000000..06a3ea20ae --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/U @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type flowRateInletVelocity; + flowRate 0.00379; + value uniform (0 14.68 0); + } + inletSides + { + type flowRateInletVelocity; + flowRate 0.00832; + value uniform (0 17.79 0); + } + outlet + { + type inletOutlet; + inletValue uniform (0 0 0); + } + walls + { + type fixedValue; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/air b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/air new file mode 100644 index 0000000000..10e47881dc --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/air @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object air; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.99; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + walls + { + type zeroGradient; + } + outlet + { + type inletOutlet; + inletValue uniform 1.0; + } + inletSides + { + type fixedValue; + value uniform 0.99; + } + inletCentral + { + type fixedValue; + value uniform 0.99; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/alphat b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/alphat new file mode 100644 index 0000000000..4cd631a6db --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/alphat @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type calculated; + value uniform 0; + } + inletSides + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + walls + { + type alphatWallFunction; + Prt 0.85; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/k b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/k new file mode 100644 index 0000000000..087a6a9044 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/k @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 3.75e-9; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.15; + value uniform 3.75e-9; + } + inletSides + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.16; + value uniform 3.75e-9; + } + outlet + { + type inletOutlet; + inletValue uniform 3.75e-9; + } + walls + { + type compressible::kqRWallFunction; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/mut b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/mut new file mode 100644 index 0000000000..05c5f0e267 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/mut @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object mut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type calculated; + value uniform 0; + } + inletSides + { + type calculated; + value uniform 0; + } + outlet + { + type calculated; + value uniform 0; + } + walls + { + type mutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/omega b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/omega new file mode 100644 index 0000000000..474b496e62 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/omega @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 4.5e-3; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type compressible::turbulentMixingLengthFrequencyInlet; + mixingLength 0.007; + k k; + value uniform 4.5e-3; + } + inletSides + { + type compressible::turbulentMixingLengthFrequencyInlet; + mixingLength 0.007; + k k; + value uniform 4.5e-3; + } + outlet + { + type inletOutlet; + inletValue uniform 4.5e-3; + } + walls + { + type compressible::omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/p b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/p new file mode 100644 index 0000000000..39e19c05d3 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/0/p @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + back + { + type symmetryPlane; + } + front + { + type symmetryPlane; + } + inletCentral + { + type zeroGradient; + } + inletSides + { + type zeroGradient; + } + outlet + { + type fixedValue; + value uniform 100000; + } + walls + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allclean b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allclean new file mode 100755 index 0000000000..6ac02e9eab --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allclean @@ -0,0 +1,16 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # run from this directory + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +# remove old time and post-processing folders +rm -rf 0 *[1-9]* processor* postProcessing + + +# copy 0.org to 0 +cp -r 0.org 0 + +cleanCase + +# ----------------------------------------------------------------- end-of-file diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allrun b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allrun new file mode 100755 index 0000000000..ab18f7f797 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/Allrun @@ -0,0 +1,13 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# create mesh +runApplication blockMesh + +# run the solver +runApplication steadyReactingParcelFoam + +# ----------------------------------------------------------------- end-of-file diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/RASProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/RASProperties new file mode 100644 index 0000000000..4c463b2c3f --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/RASProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object RASProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +RASModel kOmegaSST; // kEpsilon; + +turbulence on; + +printCoeffs on; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/chemistryProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/chemistryProperties new file mode 100644 index 0000000000..1c723e8931 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/chemistryProperties @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object chemistryProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +rhoChemistryModel ODEChemistryModel; + +chemistry off; + + +turbulentReaction off; + +chemistrySolver noChemistrySolver; + +initialChemicalTimeStep 1e-07; // NOT USED + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/energySourceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/energySourceProperties new file mode 100644 index 0000000000..0df8066c5f --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/energySourceProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object energySourcesProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( + // none +); + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/g b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/g new file mode 100644 index 0000000000..4fea433a00 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/g @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / 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/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/massSourceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/massSourceProperties new file mode 100644 index 0000000000..aab637fb10 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/massSourceProperties @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object massSourcesProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( + // none +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/momentumSourceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/momentumSourceProperties new file mode 100644 index 0000000000..9e5fd32216 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/momentumSourceProperties @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object momentumSourcesProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( + // none +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/particleTrackDict b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/particleTrackDict new file mode 100644 index 0000000000..f0ad098e05 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/particleTrackDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object particleTrackDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +cloudName reactingCloud1Tracks; + +fields +( + d + U + T +); + + +// ************************************************************************* // + diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/blockMeshDict b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/blockMeshDict new file mode 100644 index 0000000000..7a8b59bec6 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/blockMeshDict @@ -0,0 +1,203 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: http://www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + location ""; + note "Created Wed Jul 1 19:20:21 2009. Blocks = 8, cells = 9340, vertices = 36"; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 0.001; + +vertices +( + // front vertices + ( 0.00000e+00 -2.30000e+02 2.50000e+01) // v0 0 + ( 0.00000e+00 -3.00000e+01 2.50000e+01) // v1 1 + ( 0.00000e+00 0.00000e+00 2.50000e+01) // v2 2 + ( 0.00000e+00 1.05000e+03 2.50000e+01) // v3 3 + ( 9.00000e+00 1.05000e+03 2.50000e+01) // v4 4 + ( 1.60000e+01 1.05000e+03 2.50000e+01) // v5 5 + ( 2.50000e+01 1.05000e+03 2.50000e+01) // v6 6 + ( 2.50000e+01 0.00000e+00 2.50000e+01) // v7 7 + ( 2.50000e+01 -3.00000e+01 2.50000e+01) // v8 8 + ( 2.50000e+01 -2.30000e+02 2.50000e+01) // v9 9 + ( 1.80000e+01 -2.30000e+02 2.50000e+01) // v10 10 + ( 1.80000e+01 -3.00000e+01 2.50000e+01) // v11 11 + ( 1.60000e+01 0.00000e+00 2.50000e+01) // v12 12 + ( 1.60000e+01 -2.30000e+02 2.50000e+01) // v13 13 + ( 9.00000e+00 -2.30000e+02 2.50000e+01) // v14 14 + ( 9.00000e+00 0.00000e+00 2.50000e+01) // v15 15 + ( 7.00000e+00 -3.00000e+01 2.50000e+01) // v16 16 + ( 7.00000e+00 -2.30000e+02 2.50000e+01) // v17 17 + + // back vertices + ( 0.00000e+00 -2.30000e+02 -2.50000e+01) // v0 18 + ( 0.00000e+00 -3.00000e+01 -2.50000e+01) // v1 19 + ( 0.00000e+00 0.00000e+00 -2.50000e+01) // v2 20 + ( 0.00000e+00 1.05000e+03 -2.50000e+01) // v3 21 + ( 9.00000e+00 1.05000e+03 -2.50000e+01) // v4 22 + ( 1.60000e+01 1.05000e+03 -2.50000e+01) // v5 23 + ( 2.50000e+01 1.05000e+03 -2.50000e+01) // v6 24 + ( 2.50000e+01 0.00000e+00 -2.50000e+01) // v7 25 + ( 2.50000e+01 -3.00000e+01 -2.50000e+01) // v8 26 + ( 2.50000e+01 -2.30000e+02 -2.50000e+01) // v9 27 + ( 1.80000e+01 -2.30000e+02 -2.50000e+01) // v10 28 + ( 1.80000e+01 -3.00000e+01 -2.50000e+01) // v11 29 + ( 1.60000e+01 0.00000e+00 -2.50000e+01) // v12 30 + ( 1.60000e+01 -2.30000e+02 -2.50000e+01) // v13 31 + ( 9.00000e+00 -2.30000e+02 -2.50000e+01) // v14 32 + ( 9.00000e+00 0.00000e+00 -2.50000e+01) // v15 33 + ( 7.00000e+00 -3.00000e+01 -2.50000e+01) // v16 34 + ( 7.00000e+00 -2.30000e+02 -2.50000e+01) // v17 35 +); + +edges +( +); + +blocks +( + // block 0 + hex (0 1 16 17 18 19 34 35) + (67 10 10) + edgeGrading + ( + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 1 + hex (1 2 15 16 19 20 33 34) + (10 10 10) + edgeGrading + ( + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 2 + hex (2 3 4 15 20 21 22 33) + (234 10 10) + edgeGrading + ( + 4.00000e+00 4.00000e+00 4.00000e+00 4.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 3 + hex (14 15 12 13 32 33 30 31) + (77 10 10) + edgeGrading + ( + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 4 + hex (15 4 5 12 33 22 23 30) + (234 10 10) + edgeGrading + ( + 4.00000e+00 4.00000e+00 4.00000e+00 4.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 5 + hex (10 11 8 9 28 29 26 27) + (67 10 10) + edgeGrading + ( + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 6 + hex (11 12 7 8 29 30 25 26) + (11 10 10) + edgeGrading + ( + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + + // block 7 + hex (12 5 6 7 30 23 24 25) + (234 10 10) + edgeGrading + ( + 4.00000e+00 4.00000e+00 4.00000e+00 4.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + 1.00000e+00 1.00000e+00 1.00000e+00 1.00000e+00 + ) + +); + +defaultPatch +{ + name walls; + type wall; +} + +patches +( + symmetryPlane back + ( + (0 1 16 17) + (1 2 15 16) + (2 3 4 15) + (14 15 12 13) + (15 4 5 12) + (10 11 8 9) + (11 12 7 8) + (12 5 6 7) + ) + + symmetryPlane front + ( + (18 19 34 35) + (19 20 33 34) + (20 21 22 33) + (32 33 30 31) + (33 22 23 30) + (28 29 26 27) + (29 30 25 26) + (30 23 24 25) + ) + + patch inletCentral + ( + (13 14 32 31) + ) + + patch inletSides + ( + (17 0 18 35) + (9 10 28 27) + ) + + patch outlet + ( + (3 4 22 21) + (4 5 23 22) + (5 6 24 23) + ) +); + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/boundary b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/boundary new file mode 100644 index 0000000000..aed843c9d3 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/polyMesh/boundary @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev.thermoChemDicts | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +6 +( + back + { + type symmetryPlane; + nFaces 9340; + startFace 265900; + } + front + { + type symmetryPlane; + nFaces 9340; + startFace 275240; + } + inletCentral + { + type patch; + nFaces 100; + startFace 284580; + } + inletSides + { + type patch; + nFaces 200; + startFace 284680; + } + outlet + { + type patch; + nFaces 300; + startFace 284880; + } + walls + { + type wall; + nFaces 9320; + startFace 285180; + } +) + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/porousZones b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/porousZones new file mode 100644 index 0000000000..6cc2adc22a --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/porousZones @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object porousZones; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +( +/* + porousRegion // name of cell zone + { + coordinateSystem + { + e1 (1 0 0); + e2 (0 1 0); + } + + Darcy + { + d d [0 -2 0 0 0 0 0] (500000 -1000 -1000); + f f [0 -1 0 0 0 0 0] (0 0 0); + } + } +*/ +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/radiationProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/radiationProperties new file mode 100644 index 0000000000..13a183ddb9 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/radiationProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + +solverFreq 10; + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties new file mode 100644 index 0000000000..65952342c9 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactingCloud1Properties @@ -0,0 +1,227 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object reactingCloud1Properties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solution +{ + active yes; + + transient no; // yes; + calcFrequency 10; + maxTrackTime 5.0; + + coupled true; + cellValueSourceCorrection off; + + sourceTerms + { + resetOnStartup false; + U + { + alpha 1; + semiImplicit true; + } + hs + { + alpha 1; + semiImplicit true; + } + rho + { + alpha 1; + semiImplicit false; + } + Yi + { + semiImplicit true; + } + } + + interpolationSchemes + { + rho cell; + U cellPoint; + mu cell; + T cell; + Cp cell; + p cell; + } + + integrationSchemes + { + U Euler; + T Analytical; + } +} + + +constantProperties +{ + parcelTypeId 1; + + rhoMin 1e-15; + TMin 200; + pMin 1000; + minParticleMass 1e-15; + + rho0 1000; + T0 350; + Cp0 4100; + + youngsModulus 1e9; + poissonsRatio 0.35; + + epsilon0 1; + f0 0.5; + + Tvap 273; + Tbp 373; + Pr 0.7; + LDevol 0; + hRetentionCoeff 1; + + constantVolume false; +} + + +particleForces +{ + gravity on; + virtualMass off; + pressureGradient off; + paramagnetic off; +} + + +subModels +{ + InjectionModel PatchInjection; + + DragModel SphereDrag; + + DispersionModel StochasticDispersionRAS; + + PatchInteractionModel StandardWallInteraction; + + HeatTransferModel RanzMarshall; + + CompositionModel SingleMixtureFraction; + + PhaseChangeModel LiquidEvaporation; + + DevolatilisationModel none; + + SurfaceReactionModel none; + + PostProcessingModel ParticleTracks; + + SurfaceFilmModel none; + + CollisionModel none; + + radiation off; + + + PatchInjectionCoeffs + { + massFlowRate 0.8e-03; + parcelBasisType mass; + patchName inletCentral; + parcelsPerSecond 400; + duration 1; // NOTE: set to 1 for steady state + U0 (0 40 0); + flowRateProfile constant 1; + parcelPDF + { + pdfType general; + generalPDF + { + distribution + ( + (10e-06 0.0025) + (15e-06 0.0528) + (20e-06 0.2795) + (25e-06 1.0918) + (30e-06 2.3988) + (35e-06 4.4227) + (40e-06 6.3888) + (45e-06 8.6721) + (50e-06 10.3153) + (55e-06 11.6259) + (60e-06 12.0030) + (65e-06 10.4175) + (70e-06 10.8427) + (75e-06 8.0016) + (80e-06 6.1333) + (85e-06 3.8827) + (90e-06 3.4688) + ); + } + } + } + + StandardWallInteractionCoeffs + { + type rebound; + } + + RanzMarshallCoeffs + { + BirdCorrection off; + } + + SingleMixtureFractionCoeffs + { + phases + ( + gas + { + } + liquid + { + H2O 1; + } + solid + { + } + ); + YGasTot0 0; + YLiquidTot0 1; + YSolidTot0 0; + } + + LiquidEvaporationCoeffs + { + enthalpyTransfer enthalpyDifference; + activeLiquids ( H2O ); + } + + PatchPostProcessingCoeffs + { + maxStoredParcels 100; + patches ( outlet ); + } + + ParticleTracksCoeffs + { + trackInterval 5; + maxSamples 1000000; + resetOnWrite yes; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactions b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactions new file mode 100644 index 0000000000..0e11adc360 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/reactions @@ -0,0 +1,9 @@ +species +( + air + H2O +); + +reactions +{} + diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermo.incompressiblePoly b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermo.incompressiblePoly new file mode 100644 index 0000000000..d87c99af18 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermo.incompressiblePoly @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermo.incompressiblePoly; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +N2 +{ + nMoles 1; + molWeight 28.0134; + Hf 0; + Sf 0; + rhoCoeffs<8> ( 3.8936 -0.016463 3.2101e-05 -2.9174e-08 9.9889e-12 0 0 0 ); + CpCoeffs<8> ( 979.08 0.41787 -0.0011761 1.6742e-06 -7.2559e-10 0 0 0 ); + muCoeffs<8> ( 1.5068e-06 6.1598e-08 -1.8188e-11 0 0 0 0 0 ); + kappaCoeffs<8> ( 0.0031494 8.4997e-05 -1.2621e-08 0 0 0 0 0 ); +} + +H2O +{ + nMoles 1; + molWeight 18.0153; + Hf -13423000; + Sf 10482; + rhoCoeffs<8> ( 2.5039 -0.010587 2.0643e-05 -1.8761e-08 6.4237e-12 0 0 0 ); + CpCoeffs<8> ( 1563.1 1.604 -0.0029334 3.2168e-06 -1.1571e-09 0 0 0 ); + muCoeffs<8> ( 1.5068e-06 6.1598e-08 -1.8188e-11 0 0 0 0 0 ); + kappaCoeffs<8> ( 0.0037972 0.00015336 -1.1859e-08 0 0 0 0 0 ); +} + +air +{ + nMoles 1; + molWeight 28.85; + Hf 0; + Sf 0; + rhoCoeffs<8> ( 4.0097 -0.016954 3.3057e-05 -3.0042e-08 1.0286e-11 0 0 0 ); + CpCoeffs<8> ( 948.76 0.39171 -0.00095999 1.393e-06 -6.2029e-10 0 0 0 ); + muCoeffs<8> ( 1.5061e-06 6.16e-08 -1.819e-11 0 0 0 0 0 ); + kappaCoeffs<8> ( 0.0025219 8.506e-05 -1.312e-08 0 0 0 0 0 ); +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermophysicalProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermophysicalProperties new file mode 100644 index 0000000000..0c8e174053 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/thermophysicalProperties @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType hsRhoMixtureThermo>; + +chemistryReader foamChemistryReader; + +foamChemistryFile "$FOAM_CASE/constant/reactions"; + +foamChemistryThermoFile "$FOAM_CASE/constant/thermo.incompressiblePoly"; + +inertSpecie air; + +liquids +{ + liquidComponents + ( + H2O + ); + + H2O + { + defaultCoeffs yes; + } +} + +solids +{ + solidComponents + ( + ); +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/turbulenceProperties b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/turbulenceProperties new file mode 100644 index 0000000000..5de907caf2 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RASModel; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/controlDict b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/controlDict new file mode 100644 index 0000000000..949f6cf72e --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/controlDict @@ -0,0 +1,81 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +startFoam latestTime; + +startTime 0; + +stopAt endTime; + +endTime 5000; + +deltaT 1; + +writeControl timeStep; + +writeInterval 10; + +purgeWrite 20; + +writeFormat ascii; + +writePrecision 10; + +writeCompression uncompressed; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +maxCo 5; + +alphaTauSmooth 1e10; + +alphaTauTemp 1e10; + +alphaTauRho 1e10; + +alphaTauSpecie 1e10; + +maxDeltaT 1e10; + +functions +{ + faceSource1 + { + type faceSource; + functionObjectLibs ("libfieldFunctionObjects.so"); + enabled true; + outputControl outputTime; + log true; + valueOutput true; + source patch; + sourceName outlet; + operation weightedAverage; + weightField phi; + fields + ( + H2O + T + ); + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSchemes b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSchemes new file mode 100644 index 0000000000..bda68109c0 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSchemes @@ -0,0 +1,65 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default localEuler invTauFlow; +} + +gradSchemes +{ + default Gauss linear; + grad(p) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss upwind; + div(phid,p) Gauss upwind; + div(phiU,p) Gauss linear; + div(phi,hs) Gauss upwind; + div(phi,k) Gauss upwind; + div(phi,epsilon) Gauss upwind; + div(phi,omega) Gauss upwind; + div((muEff*dev2(grad(U).T()))) Gauss linear; + div(phi,Yi_h) Gauss upwind; +} + +laplacianSchemes +{ + default Gauss linear uncorrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default uncorrected; +} + +fluxRequired +{ + default no; + p; +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSolution b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSolution new file mode 100644 index 0000000000..25043f8651 --- /dev/null +++ b/tutorials/lagrangian/steadyReactingParcelFoam/verticalChannel/system/fvSolution @@ -0,0 +1,85 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + p + { + solver GAMG; + tolerance 0; + relTol 0.1; + + smoother DICGaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + + cacheAgglomeration true; + + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + + maxIter 20; + }; + "(rho|G)" + { + solver PCG; + preconditioner DIC; + tolerance 0; + relTol 0.1; + maxIter 20; + }; + "(Yi|hs)" + { + solver smoothSolver; + smoother GaussSeidel; + tolerance 0; + relTol 0.1; + maxIter 20; + }; + "(U|k|omega)" + { + solver smoothSolver; + smoother GaussSeidel; + tolerance 0; + relTol 0.1; + maxIter 20; + }; +} + +SIMPLE +{ + nNonOrthogonalCorrectors 0; // 10; + momentumPredictor yes; + rhoMin rhoMin [ 1 -3 0 0 0 ] 0; // 0.5; + rhoMax rhoMax [ 1 -3 0 0 0 ] 100; // 1.5; +} + +relaxationFactors +{ + p 0.3; +} + +additional +{ + eWork true; + hWork true; + solveSpecies true; +} + + +// ************************************************************************* //