From d2fb02d4fa076b3f5105f33b888f9b5529f0c65c Mon Sep 17 00:00:00 2001 From: jtoumey Date: Tue, 16 Mar 2021 16:23:31 -0400 Subject: [PATCH] Added the FWI case setup. --- validationCases/02_flameWallInteraction/0/CH4 | 30 +++ validationCases/02_flameWallInteraction/0/CO2 | 30 +++ validationCases/02_flameWallInteraction/0/H2O | 30 +++ validationCases/02_flameWallInteraction/0/N2 | 30 +++ validationCases/02_flameWallInteraction/0/O2 | 30 +++ validationCases/02_flameWallInteraction/0/T | 30 +++ validationCases/02_flameWallInteraction/0/U | 30 +++ .../02_flameWallInteraction/0/Ydefault | 30 +++ validationCases/02_flameWallInteraction/0/p | 30 +++ .../02_flameWallInteraction/0/p_rgh | 30 +++ .../02_flameWallInteraction/0/uniform/time | 29 +++ .../02_flameWallInteraction/Allclean | 16 ++ .../02_flameWallInteraction/Allrun | 45 ++++ .../02_flameWallInteraction/README.md | 8 + .../constant/flame/chemistryProperties | 41 +++ .../constant/flame/combustionProperties | 34 +++ .../02_flameWallInteraction/constant/flame/g | 20 ++ .../constant/flame/radiationProperties | 22 ++ .../constant/flame/reactions | 20 ++ .../constant/flame/thermo.compressibleGas | 129 ++++++++++ .../constant/flame/thermophysicalProperties | 41 +++ .../constant/flame/turbulenceProperties | 19 ++ .../constant/regionProperties | 24 ++ .../constant/solid/thermophysicalProperties | 52 ++++ .../02_flameWallInteraction/system/README | 3 + .../system/blockMeshDict | 111 +++++++++ .../system/controlDict | 115 +++++++++ .../system/decomposeParDict | 30 +++ .../system/flame/changeDictionaryDict | 235 ++++++++++++++++++ .../system/flame/decomposeParDict | 72 ++++++ .../system/flame/fvSchemes | 61 +++++ .../system/flame/fvSolution | 105 ++++++++ .../system/flame/setFieldsDict | 37 +++ .../02_flameWallInteraction/system/fvSchemes | 42 ++++ .../02_flameWallInteraction/system/fvSolution | 22 ++ .../02_flameWallInteraction/system/sampleDict | 102 ++++++++ .../system/singleGraph1 | 32 +++ .../system/singleGraph2 | 32 +++ .../system/solid/changeDictionaryDict | 42 ++++ .../system/solid/decomposeParDict | 44 ++++ .../system/solid/fvSchemes | 49 ++++ .../system/solid/fvSolution | 40 +++ .../system/topoSetDict | 70 ++++++ 43 files changed, 2044 insertions(+) create mode 100644 validationCases/02_flameWallInteraction/0/CH4 create mode 100644 validationCases/02_flameWallInteraction/0/CO2 create mode 100644 validationCases/02_flameWallInteraction/0/H2O create mode 100644 validationCases/02_flameWallInteraction/0/N2 create mode 100644 validationCases/02_flameWallInteraction/0/O2 create mode 100644 validationCases/02_flameWallInteraction/0/T create mode 100644 validationCases/02_flameWallInteraction/0/U create mode 100644 validationCases/02_flameWallInteraction/0/Ydefault create mode 100644 validationCases/02_flameWallInteraction/0/p create mode 100644 validationCases/02_flameWallInteraction/0/p_rgh create mode 100644 validationCases/02_flameWallInteraction/0/uniform/time create mode 100755 validationCases/02_flameWallInteraction/Allclean create mode 100755 validationCases/02_flameWallInteraction/Allrun create mode 100644 validationCases/02_flameWallInteraction/README.md create mode 100755 validationCases/02_flameWallInteraction/constant/flame/chemistryProperties create mode 100755 validationCases/02_flameWallInteraction/constant/flame/combustionProperties create mode 100644 validationCases/02_flameWallInteraction/constant/flame/g create mode 100644 validationCases/02_flameWallInteraction/constant/flame/radiationProperties create mode 100644 validationCases/02_flameWallInteraction/constant/flame/reactions create mode 100644 validationCases/02_flameWallInteraction/constant/flame/thermo.compressibleGas create mode 100644 validationCases/02_flameWallInteraction/constant/flame/thermophysicalProperties create mode 100644 validationCases/02_flameWallInteraction/constant/flame/turbulenceProperties create mode 100644 validationCases/02_flameWallInteraction/constant/regionProperties create mode 100644 validationCases/02_flameWallInteraction/constant/solid/thermophysicalProperties create mode 100644 validationCases/02_flameWallInteraction/system/README create mode 100644 validationCases/02_flameWallInteraction/system/blockMeshDict create mode 100644 validationCases/02_flameWallInteraction/system/controlDict create mode 100644 validationCases/02_flameWallInteraction/system/decomposeParDict create mode 100644 validationCases/02_flameWallInteraction/system/flame/changeDictionaryDict create mode 100644 validationCases/02_flameWallInteraction/system/flame/decomposeParDict create mode 100644 validationCases/02_flameWallInteraction/system/flame/fvSchemes create mode 100644 validationCases/02_flameWallInteraction/system/flame/fvSolution create mode 100644 validationCases/02_flameWallInteraction/system/flame/setFieldsDict create mode 100644 validationCases/02_flameWallInteraction/system/fvSchemes create mode 100644 validationCases/02_flameWallInteraction/system/fvSolution create mode 100644 validationCases/02_flameWallInteraction/system/sampleDict create mode 100644 validationCases/02_flameWallInteraction/system/singleGraph1 create mode 100644 validationCases/02_flameWallInteraction/system/singleGraph2 create mode 100644 validationCases/02_flameWallInteraction/system/solid/changeDictionaryDict create mode 100644 validationCases/02_flameWallInteraction/system/solid/decomposeParDict create mode 100644 validationCases/02_flameWallInteraction/system/solid/fvSchemes create mode 100644 validationCases/02_flameWallInteraction/system/solid/fvSolution create mode 100644 validationCases/02_flameWallInteraction/system/topoSetDict diff --git a/validationCases/02_flameWallInteraction/0/CH4 b/validationCases/02_flameWallInteraction/0/CH4 new file mode 100644 index 0000000..c8071ec --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/CH4 @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object CH4; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/CO2 b/validationCases/02_flameWallInteraction/0/CO2 new file mode 100644 index 0000000..72fff8d --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/CO2 @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object CO2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/H2O b/validationCases/02_flameWallInteraction/0/H2O new file mode 100644 index 0000000..83e67bc --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/H2O @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/N2 b/validationCases/02_flameWallInteraction/0/N2 new file mode 100644 index 0000000..97e57fd --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/N2 @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.0; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/O2 b/validationCases/02_flameWallInteraction/0/O2 new file mode 100644 index 0000000..17d0bd2 --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/O2 @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/T b/validationCases/02_flameWallInteraction/0/T new file mode 100644 index 0000000..df6e5fa --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/T @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/U b/validationCases/02_flameWallInteraction/0/U new file mode 100644 index 0000000..27ae627 --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/U @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + ".*" + { + type calculated; + value uniform (0 0 0); + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/Ydefault b/validationCases/02_flameWallInteraction/0/Ydefault new file mode 100644 index 0000000..e69b85b --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/Ydefault @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object Ydefault; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/p b/validationCases/02_flameWallInteraction/0/p new file mode 100644 index 0000000..6244b4e --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/p @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/p_rgh b/validationCases/02_flameWallInteraction/0/p_rgh new file mode 100644 index 0000000..3e9863f --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/p_rgh @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + ".*" + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/0/uniform/time b/validationCases/02_flameWallInteraction/0/uniform/time new file mode 100644 index 0000000..0e266bc --- /dev/null +++ b/validationCases/02_flameWallInteraction/0/uniform/time @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "0/uniform"; + object time; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +value 0; + +name "0"; + +index 0; + +deltaT 0.0002; + +deltaT0 0.0002; + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/Allclean b/validationCases/02_flameWallInteraction/Allclean new file mode 100755 index 0000000..88afeae --- /dev/null +++ b/validationCases/02_flameWallInteraction/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 + +cleanCase +rm -rf VTK +rm -rf constant/cellToRegion constant/polyMesh/sets +rm -rf 0/flame +rm -rf 0/solid +rm -f 0/cellToRegion +rm -rf constant/flame/polyMesh +rm -rf constant/solid/polyMesh + +#------------------------------------------------------------------------------ diff --git a/validationCases/02_flameWallInteraction/Allrun b/validationCases/02_flameWallInteraction/Allrun new file mode 100755 index 0000000..66fbc71 --- /dev/null +++ b/validationCases/02_flameWallInteraction/Allrun @@ -0,0 +1,45 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh +runApplication topoSet +runApplication splitMeshRegions -cellZones -overwrite + +# remove fluid fields from solid regions (important for post-processing) +for i in solid +do + rm -f 0*/$i/{nut,alphat,epsilon,k,U,p_rgh,CH4,CO2,CO,H2O,N2,O2,Ydefault} +done + + +for i in flame solid +do + runApplication -s $i changeDictionary -region $i +done + +# Initial temperature for ignition +runApplication setFields -region flame + +#-- Run on single processor +runApplication `getApplication` + +# Decompose +#runApplication decomposePar -allRegions + +# Run +#runParallel `getApplication` + +# Reconstruct +runApplication reconstructPar -allRegions + + +echo +echo "creating files for paraview post-processing" +echo +paraFoam -touchAll + +#------------------------------------------------------------------------------ diff --git a/validationCases/02_flameWallInteraction/README.md b/validationCases/02_flameWallInteraction/README.md new file mode 100644 index 0000000..4ab5fcf --- /dev/null +++ b/validationCases/02_flameWallInteraction/README.md @@ -0,0 +1,8 @@ +# 2. Flame-Wall Interaction (FWI) + +A laminar premixed flame propagates through CH4/Air mixture (equivalence ratio 0.8) and quenches at the solid wall. +After the flame quenches, the solution collapses to that of the infinitely fast flame described previously. + +Refer to [1] for further details. + +[1] Duchaine, F. et al., Conjugate heat transfer with large eddy simulation for gas turbine components, Colloque INCA, 2008. diff --git a/validationCases/02_flameWallInteraction/constant/flame/chemistryProperties b/validationCases/02_flameWallInteraction/constant/flame/chemistryProperties new file mode 100755 index 0000000..f7fe746 --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/chemistryProperties @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object chemistryProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +chemistryType +{ + chemistrySolver EulerImplicit; + chemistryThermo psi; +} + +chemistry on; + +initialChemicalTimeStep 1e-07; + +EulerImplicitCoeffs +{ + cTauChem 1; + equilibriumRateLimiter off; +} + +odeCoeffs +{ + solver Rosenbrock43; + absTol 1e-12; + relTol 0.01; +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/flame/combustionProperties b/validationCases/02_flameWallInteraction/constant/flame/combustionProperties new file mode 100755 index 0000000..5192667 --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/combustionProperties @@ -0,0 +1,34 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.x | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object combustionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +combustionModel laminar; +//combustionModel infinitelyFastChemistry; + +active true; + +infinitelyFastChemistryCoeffs +{ + C 10; + semiImplicit no; +} + +laminarCoeffs +{ +} + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/flame/g b/validationCases/02_flameWallInteraction/constant/flame/g new file mode 100644 index 0000000..98af53a --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0.0 0.0 0.0); // (0 -9.81 0); + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/flame/radiationProperties b/validationCases/02_flameWallInteraction/constant/flame/radiationProperties new file mode 100644 index 0000000..db5f2cd --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/radiationProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/flame/reactions b/validationCases/02_flameWallInteraction/constant/flame/reactions new file mode 100644 index 0000000..e548bae --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/reactions @@ -0,0 +1,20 @@ +species +( + O2 + H2O + CH4 + CO2 + N2 +); + +reactions +{ + methaneReaction + { + type irreversibleArrheniusReaction; + reaction "CH4 + 2O2 = CO2 + 2H2O"; + A 5.2e16; + beta 0; + Ta 14906; + } +} diff --git a/validationCases/02_flameWallInteraction/constant/flame/thermo.compressibleGas b/validationCases/02_flameWallInteraction/constant/flame/thermo.compressibleGas new file mode 100644 index 0000000..ff00e56 --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/thermo.compressibleGas @@ -0,0 +1,129 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermo.compressibleGas; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +O2 +{ + specie + { + nMoles 1; + molWeight 31.9988; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 ); + lowCpCoeffs ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +H2O +{ + specie + { + nMoles 1; + molWeight 18.0153; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.201e-10 -6.39162e-15 -29899.2 6.86282 ); + lowCpCoeffs ( 3.38684 0.00347498 -6.3547e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +CH4 +{ + specie + { + nMoles 1; + molWeight 16.0428; + } + thermodynamics + { + Tlow 200; + Thigh 6000; + Tcommon 1000; + highCpCoeffs ( 1.63543 0.0100844 -3.36924e-06 5.34973e-10 -3.15528e-14 -10005.6 9.9937 ); + lowCpCoeffs ( 5.14988 -0.013671 4.91801e-05 -4.84744e-08 1.66694e-11 -10246.6 -4.64132 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +CO2 +{ + specie + { + nMoles 1; + molWeight 44.01; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 4.45362 0.00314017 -1.27841e-06 2.394e-10 -1.66903e-14 -48967 -0.955396 ); + lowCpCoeffs ( 2.27572 0.00992207 -1.04091e-05 6.86669e-09 -2.11728e-12 -48373.1 10.1885 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +N2 +{ + specie + { + nMoles 1; + molWeight 28.0134; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 2.92664 0.00148798 -5.68476e-07 1.0097e-10 -6.75335e-15 -922.798 5.98053 ); + lowCpCoeffs ( 3.29868 0.00140824 -3.96322e-06 5.64152e-09 -2.44486e-12 -1020.9 3.95037 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/flame/thermophysicalProperties b/validationCases/02_flameWallInteraction/constant/flame/thermophysicalProperties new file mode 100644 index 0000000..ed4085d --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/thermophysicalProperties @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type hePsiThermo; + mixture reactingMixture; + transport sutherland; + thermo janaf; + energy sensibleEnthalpy; + equationOfState perfectGas; + specie specie; +} + +inertSpecie N2; + +fuel CH4; + +chemistryReader chemkinReader; + +CHEMKINFile "$FOAM_CASE/chemkin/chem.inp"; + +CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat"; + +CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties"; + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/flame/turbulenceProperties b/validationCases/02_flameWallInteraction/constant/flame/turbulenceProperties new file mode 100644 index 0000000..57cb8c6 --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/flame/turbulenceProperties @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/regionProperties b/validationCases/02_flameWallInteraction/constant/regionProperties new file mode 100644 index 0000000..12b1530 --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/regionProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object regionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +regions +( + fluid (flame) + solid (solid) +); + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/constant/solid/thermophysicalProperties b/validationCases/02_flameWallInteraction/constant/solid/thermophysicalProperties new file mode 100644 index 0000000..f89552b --- /dev/null +++ b/validationCases/02_flameWallInteraction/constant/solid/thermophysicalProperties @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heSolidThermo; + mixture pureMixture; + transport constIso; + thermo hConst; + equationOfState rhoConst; + specie specie; + energy sensibleEnthalpy; +} + +mixture +{ + specie + { + molWeight 50; + } + + transport + { + kappa 12.97; + } + + thermodynamics + { + Hf 0; + Cp 460; + } + + equationOfState + { + rho 8350; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/README b/validationCases/02_flameWallInteraction/system/README new file mode 100644 index 0000000..5a81b9a --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/README @@ -0,0 +1,3 @@ +fvSolution is used for outer correctors specification. +fvSchemes is only so that pre-processing activities can proceed + diff --git a/validationCases/02_flameWallInteraction/system/blockMeshDict b/validationCases/02_flameWallInteraction/system/blockMeshDict new file mode 100644 index 0000000..1d3b1df --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/blockMeshDict @@ -0,0 +1,111 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +xDimP 0.04; +yDimP 2e-6; +zDimP 2e-6; + +xDimM -0.04; +yDimM -2e-6; +zDimM -2e-6; + +vertices +( + ($xDimM $yDimM $zDimM) + ($xDimP $yDimM $zDimM) + ($xDimP $yDimP $zDimM) + ($xDimM $yDimP $zDimM) + ($xDimM $yDimM $zDimP) + ($xDimP $yDimM $zDimP) + ($xDimP $yDimP $zDimP) + ($xDimM $yDimP $zDimP) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) + (2000 1 1) + simpleGrading + ( + 1 + 1 + 1 + ) +); + +edges +( +); + +boundary +( + minX + { + type patch; + faces + ( + (0 4 7 3) + ); + } + maxX + { + type patch; + faces + ( + (2 6 5 1) + ); + } + minY + { + type empty; + faces + ( + (1 5 4 0) + ); + } + maxY + { + type empty; + faces + ( + (3 7 6 2) + ); + } + minZ + { + type empty; + faces + ( + (0 3 2 1) + ); + } + maxZ + { + type empty; + faces + ( + (4 5 6 7) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/controlDict b/validationCases/02_flameWallInteraction/system/controlDict new file mode 100644 index 0000000..a9be6cd --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/controlDict @@ -0,0 +1,115 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application multiRegionReactingFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 20; + +deltaT 1e-6; + +writeControl adjustableRunTime; + +writeInterval 0.001; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 8; + +writeCompression off; + +timeFormat general; + +timePrecision 8; + +runTimeModifiable yes; + +maxCo 0.6; + +// Maximum diffusion number +maxDi 10.0; + +adjustTimeStep yes; + +functions +{ +/* + wallHeatFluxTSolid + { + type wallHeatFluxT; + libs ("libmyfieldFunctionObjects.so"); + region solid; + patches (solid_to_flame); + } + wallHeatFluxTFlame + { + type wallHeatFluxT; + libs ("libmyfieldFunctionObjects.so"); + region flame; + patches (flame_to_solid); + } + solidPatchProbeIntT + { + type patchProbes; + + functionObjectLibs ("libfieldFunctionObjects.so"); + + region solid; + + patchName solid_to_flame; + + probeLocations + ( + ( 0.0 0.0 0.0) + ); + + fields + ( + T + ); + } + flamePatchProbeIntT + { + type patchProbes; + + functionObjectLibs ("libfieldFunctionObjects.so"); + + region flame; + + patchName flame_to_solid; + + probeLocations + ( + ( 0.0 0.0 0.0) + ); + + fields + ( + T + ); + } +*/ +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/decomposeParDict b/validationCases/02_flameWallInteraction/system/decomposeParDict new file mode 100644 index 0000000..ead3c10 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/decomposeParDict @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + note "mesh decomposition control dictionary"; + location "system"; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 16; + +method simple; + +simpleCoeffs +{ + n (16 1 1); + delta 0.001; +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/flame/changeDictionaryDict b/validationCases/02_flameWallInteraction/system/flame/changeDictionaryDict new file mode 100644 index 0000000..17ff772 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/flame/changeDictionaryDict @@ -0,0 +1,235 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +U +{ + internalField uniform (0 0 0); + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type fixedValue; + value $internalField; + } + } +} + +T +{ + internalField uniform 650; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; //fixedValue; + //value uniform 2300; + } + "flame_to_.*" + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + Tnbr T; + kappaMethod fluidThermo; + value uniform 650; + } + } +} + +p_rgh +{ + internalField uniform 1e5; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type fixedValue; + value uniform 1e5; + } + "flame_to_.*" + { + type fixedValue; + value $internalField; + } + } +} + +p +{ + internalField uniform 1e5; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type fixedValue; + value uniform 1e5; + } + "flame_to_.*" + { + type fixedValue; + value $internalField; + } + } +} + +Ydefault +{ + internalField uniform 0; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type zeroGradient; + } + } +} + +O2 +{ + internalField uniform 0.22280; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type zeroGradient; + } + } +} + +CH4 +{ + internalField uniform 0.04421; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type zeroGradient; + } + } +} + +H2O +{ + internalField uniform 0; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type zeroGradient; + } + } +} + +CO2 +{ + internalField uniform 0; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type zeroGradient; + } + } +} + +N2 +{ + internalField uniform 0.73299; + + boundaryField + { + ".*" + { + type empty; + } + maxX + { + type zeroGradient; + } + "flame_to_.*" + { + type zeroGradient; + } + } +} +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/flame/decomposeParDict b/validationCases/02_flameWallInteraction/system/flame/decomposeParDict new file mode 100644 index 0000000..4b09d8a --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/flame/decomposeParDict @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + note "mesh decomposition control dictionary"; + location "system"; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 8; + +//- Keep owner and neighbour on same processor for faces in zones: +// preserveFaceZones (heater solid1 solid3); + +// method scotch; +// method hierarchical; +method simple; +// method manual; + +simpleCoeffs +{ + n (8 1 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (4 2 1); + delta 0.001; + order xyz; +} + +scotchCoeffs +{ + //processorWeights + //( + // 1 + // 1 + // 1 + // 1 + //); + //writeGraph true; + //strategy "b"; +} + +manualCoeffs +{ + dataFile "decompositionData"; +} + + +//// Is the case distributed +//distributed yes; +//// Per slave (so nProcs-1 entries) the directory above the case. +//roots +//( +// "/tmp" +// "/tmp" +//); + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/flame/fvSchemes b/validationCases/02_flameWallInteraction/system/flame/fvSchemes new file mode 100644 index 0000000..f79332d --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/flame/fvSchemes @@ -0,0 +1,61 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + default none; + div(phi,Yi) Gauss limitedLinear 1; + div(phi,U) Gauss upwind; + div(phi,K) Gauss linear; + div(phi,h) Gauss upwind; + div(phi,k) Gauss upwind; + div(phi,epsilon) Gauss upwind; + div(phi,R) Gauss upwind; + div(R) Gauss linear; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default none; + p; +} +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/flame/fvSolution b/validationCases/02_flameWallInteraction/system/flame/fvSolution new file mode 100644 index 0000000..9ab9ca5 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/flame/fvSolution @@ -0,0 +1,105 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + rho + { + solver PCG; + preconditioner DIC; + tolerance 1e-7; + relTol 0.1; + } + + + p + { + solver GAMG; + tolerance 1e-9; + relTol 0.01; + smoother GaussSeidel; + + } + + pFinal + { + $p; + tolerance 1e-9; + relTol 0; + } + + + rhoFinal + { + $rho; + tolerance 1e-7; + relTol 0; + } + + p_rgh + { + solver GAMG; //PBiCGStab; //GAMG + tolerance 1e-9; + relTol 0.01; + preconditioner DIC; + smoother GaussSeidel; + + } + + p_rghFinal + { + $p_rgh; + tolerance 1e-9; + relTol 0; + } + + "(U|h|k|epsilon|R)" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-7; + relTol 0.1; + } + + "(U|h|k|epsilon|R)Final" + { + $U; + tolerance 1e-7; + relTol 0; + } + Yi + { + $hFinal; + } +} + +PIMPLE +{ + momentumPredictor yes; + nCorrectors 10; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + "h.*" 1; + "U.*" 1; + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/flame/setFieldsDict b/validationCases/02_flameWallInteraction/system/flame/setFieldsDict new file mode 100644 index 0000000..809038a --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/flame/setFieldsDict @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue T 650 +); + +regions +( + // Set patch values (using ==) + boxToCell + { + box (0.035 -100 -100) (100 100 100); + + fieldValues + ( + volScalarFieldValue T 2300 + ); + } +); + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/fvSchemes b/validationCases/02_flameWallInteraction/system/fvSchemes new file mode 100644 index 0000000..71e1741 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/fvSchemes @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ +} + +gradSchemes +{ +} + +divSchemes +{ +} + +laplacianSchemes +{ +} + +interpolationSchemes +{ +} + +snGradSchemes +{ +} + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/fvSolution b/validationCases/02_flameWallInteraction/system/fvSolution new file mode 100644 index 0000000..f594493 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/fvSolution @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +PIMPLE +{ + nOuterCorrectors 1; +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/sampleDict b/validationCases/02_flameWallInteraction/system/sampleDict new file mode 100644 index 0000000..a94ae48 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/sampleDict @@ -0,0 +1,102 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location system; + object sampleDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +type sets; +libs ("libsampling.so"); + +// Set output format : choice of +// xmgr +// jplot +// gnuplot +// raw +setFormat raw; + +// Surface output format. Choice of +// null : suppress output +// foamFile : separate points, faces and values file +// dx : DX scalar or vector format +// vtk : VTK ascii format +// raw : x y z value format for use with e.g. gnuplot 'splot'. +// +// Note: +// other formats such as obj, stl, etc can also be written (by proxy) +// but without any values! +surfaceFormat vtk; + +// interpolationScheme. choice of +// cell : use cell-centre value only; constant over cells (default) +// cellPoint : use cell-centre and vertex values +// cellPointFace : use cell-centre, vertex and face values. +// 1] vertex values determined from neighbouring cell-centre values +// 2] face values determined using the current face interpolation scheme +// for the field (linear, gamma, etc.) +interpolationScheme cell; + +// Fields to sample. +fields +( + T +); + + +// Set sampling definition: choice of +// uniform evenly distributed points on line +// face one point per face intersection +// midPoint one point per cell, inbetween two face intersections +// midPointAndFace combination of face and midPoint +// +// curve specified points, not nessecary on line, uses +// tracking +// cloud specified points, uses findCell +// +// axis: how to write point coordinate. Choice of +// - x/y/z: x/y/z coordinate only +// - xyz: three columns +// (probably does not make sense for anything but raw) +// - distance: distance from start of sampling line (if uses line) or +// distance from first specified sampling point +// +// type specific: +// uniform, face, midPoint, midPointAndFace : start and end coordinate +// uniform: extra number of sampling points +// curve, cloud: list of coordinates +sets +( + Centerline + { + type uniform; + axis distance; + + start (-0.4999 0. 0. ); + end ( 0.4999 0. 0. ); + nPoints 500; + } + +); + +// Surface sampling definition: choice of +// plane : values on plane defined by point, normal. +// patch : values on patch. +// +// 1] patches are not triangulated by default +// 2] planes are always triangulated +// 3] iso-surfaces are always triangulated +surfaces (); + +// *********************************************************************** // diff --git a/validationCases/02_flameWallInteraction/system/singleGraph1 b/validationCases/02_flameWallInteraction/system/singleGraph1 new file mode 100644 index 0000000..faa4f8e --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/singleGraph1 @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start + and end points. + +\*---------------------------------------------------------------------------*/ + +region solid; +start (-0.3999 0.0 0.0); +end ( 0.0 0.0 0.0); +fields (T); + +// Sampling and I/O settings +#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" + +// Override settings here, e.g. +setConfig +{ + type midPoint; + axis x; +} + +// Must be last entry +#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/singleGraph2 b/validationCases/02_flameWallInteraction/system/singleGraph2 new file mode 100644 index 0000000..8faa1e7 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/singleGraph2 @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Writes graph data for specified fields along a line, specified by start + and end points. + +\*---------------------------------------------------------------------------*/ + +region flame; +start (0.0 0.0 0.0); +end (0.03999 0.0 0.0); +fields (T); + +// Sampling and I/O settings +#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg" + +// Override settings here, e.g. +setConfig +{ + type midPoint; + axis x; +} + +// Must be last entry +#includeEtc "caseDicts/postProcessing/graphs/graph.cfg" + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/solid/changeDictionaryDict b/validationCases/02_flameWallInteraction/system/solid/changeDictionaryDict new file mode 100644 index 0000000..74c01a3 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/solid/changeDictionaryDict @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object changeDictionaryDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +T +{ + internalField uniform 650; + + boundaryField + { + ".*" + { + type empty; + } + minX + { + type fixedValue; + value $internalField; + } + solid_to_flame + { + type compressible::turbulentTemperatureCoupledBaffleMixed; + Tnbr T; + kappaMethod solidThermo; + value uniform 650; + } + } +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/solid/decomposeParDict b/validationCases/02_flameWallInteraction/system/solid/decomposeParDict new file mode 100644 index 0000000..f65ce76 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/solid/decomposeParDict @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 8; + +method simple; + +simpleCoeffs +{ + n (8 1 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (4 2 1); + delta 0.001; + order xyz; +} + +scotchCoeffs +{ +} + +manualCoeffs +{ + dataFile "decompositionData"; +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/solid/fvSchemes b/validationCases/02_flameWallInteraction/system/solid/fvSchemes new file mode 100644 index 0000000..e5250d7 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/solid/fvSchemes @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + default none; +} + +laplacianSchemes +{ + default none; + laplacian(alpha,h) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/solid/fvSolution b/validationCases/02_flameWallInteraction/system/solid/fvSolution new file mode 100644 index 0000000..7f1b176 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/solid/fvSolution @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + h + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0.1; + } + + hFinal + { + $h; + tolerance 1e-06; + relTol 0; + } +} + +PIMPLE +{ + nNonOrthogonalCorrectors 0; +} + +// ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/system/topoSetDict b/validationCases/02_flameWallInteraction/system/topoSetDict new file mode 100644 index 0000000..ca8b145 --- /dev/null +++ b/validationCases/02_flameWallInteraction/system/topoSetDict @@ -0,0 +1,70 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + // solid + { + name solidCellSet; + type cellSet; + action new; + source boxToCell; + sourceInfo + { + box (-100 -100 -100)(-1e-6 100 100); + } + } + { + name solid; + type cellZoneSet; + action new; + source setToCellZone; + sourceInfo + { + set solidCellSet; + } + } + + // flame is all the other cells + { + name flameCellSet; + type cellSet; + action new; + source cellToCell; + sourceInfo + { + set solidCellSet; + } + } + { + name flameCellSet; + type cellSet; + action invert; + } + { + name flame; + type cellZoneSet; + action new; + source setToCellZone; + sourceInfo + { + set flameCellSet; + } + } +); + +// ************************************************************************* //