TUT: counterFlowFlame2D: add BilgerMixtureFraction FO

This commit is contained in:
Kutalmis Bercin
2020-12-14 15:21:03 +00:00
committed by Andrew Heather
parent 5a8caa35b2
commit e82956a9dc
19 changed files with 96 additions and 68 deletions

View File

@ -10,34 +10,35 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object CH4; object CH4;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0]; dimensions [0 0 0 0 0 0 0];
internalField uniform 0.0; internalField uniform 0;
boundaryField boundaryField
{ {
fuel fuel
{ {
type fixedValue; type fixedValue;
value uniform 1.0; value uniform 1;
} }
air air
{ {
type fixedValue; type fixedValue;
value uniform 0.0; value uniform 0;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.0; inletValue uniform 0;
value uniform 0.0; value uniform 0;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object CO2; object CO2;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,23 +20,19 @@ internalField uniform 0;
boundaryField boundaryField
{ {
fuel "(fuel|air)"
{
type fixedValue;
value uniform 0;
}
air
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue uniform 0;
value uniform 0; value uniform 0;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object H2O; object H2O;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object N2; object N2;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,18 +25,20 @@ boundaryField
type fixedValue; type fixedValue;
value uniform 0.0; value uniform 0.0;
} }
air air
{ {
type fixedValue; type fixedValue;
value uniform 0.77; value uniform 0.77;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 1; inletValue uniform 1;
value uniform 1; value uniform 1;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object O2; object O2;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -24,19 +23,22 @@ boundaryField
fuel fuel
{ {
type fixedValue; type fixedValue;
value uniform 0.0; value uniform 0;
} }
air air
{ {
type fixedValue; type fixedValue;
value uniform 0.23; value uniform 0.23;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue uniform 0;
value uniform 0; value uniform 0;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object T; object T;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,22 +20,19 @@ internalField uniform 2000;
boundaryField boundaryField
{ {
fuel "(fuel|air)"
{
type fixedValue;
value uniform 293;
}
air
{ {
type fixedValue; type fixedValue;
value uniform 293; value uniform 293;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 293; inletValue uniform 293;
value uniform 293; value uniform 293;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volVectorField; class volVectorField;
location "0";
object U; object U;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type fixedValue; type fixedValue;
value uniform (0.1 0 0); value uniform (0.1 0 0);
} }
air air
{ {
type fixedValue; type fixedValue;
value uniform (-0.1 0 0); value uniform (-0.1 0 0);
} }
outlet outlet
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value $internalField; value $internalField;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,34 +10,29 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object Ydefault; object Ydefault;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0]; dimensions [0 0 0 0 0 0 0];
internalField uniform 0.0; internalField uniform 0;
boundaryField boundaryField
{ {
fuel "(fuel|air)"
{ {
type fixedValue; type fixedValue;
value uniform 0.0; value uniform 0;
}
air
{
type fixedValue;
value uniform 0.0;
} }
outlet outlet
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.0; inletValue uniform 0;
value uniform 0.0; value uniform 0;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object alphat; object alphat;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,20 +20,17 @@ internalField uniform 0;
boundaryField boundaryField
{ {
fuel "(fuel|air)"
{
type fixedValue;
value uniform 0;
}
air
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
outlet outlet
{ {
type zeroGradient; type zeroGradient;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object p; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,19 +20,17 @@ internalField uniform 1e5;
boundaryField boundaryField
{ {
fuel "(fuel|air)"
{
type zeroGradient;
}
air
{ {
type zeroGradient; type zeroGradient;
} }
outlet outlet
{ {
type totalPressure; type totalPressure;
p0 $internalField; p0 $internalField;
} }
frontAndBack frontAndBack
{ {
type empty; type empty;

View File

@ -10,14 +10,13 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant";
object chemistryProperties; object chemistryProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
chemistryType chemistryType
{ {
solver EulerImplicit; solver EulerImplicit;
} }
chemistry on; chemistry on;
@ -37,4 +36,5 @@ odeCoeffs
relTol 0.01; relTol 0.01;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,14 +10,13 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant";
object combustionProperties; object combustionProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel laminar; combustionModel laminar;
active true; active true;
laminarCoeffs laminarCoeffs
{ {

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant";
object thermo.compressibleGas; object thermo.compressibleGas;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant";
object thermophysicalProperties; object thermophysicalProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,11 +25,11 @@ thermoType
specie specie; specie specie;
} }
inertSpecie N2; inertSpecie N2;
chemistryReader foamChemistryReader; chemistryReader foamChemistryReader;
foamChemistryFile "<constant>/reactions"; foamChemistryFile "<constant>/reactions";
foamChemistryThermoFile "<constant>/thermo.compressibleGas"; foamChemistryThermoFile "<constant>/thermo.compressibleGas";

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "constant";
object turbulenceProperties; object turbulenceProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
BilgerMixtureFraction1
{
// Mandatory entries
type BilgerMixtureFraction;
libs (fieldFunctionObjects);
fuel
{
composition moleFractions;
CH4 1;
}
oxidiser
{
composition massFractions;
O2 0.23;
N2 0.77;
}
// Optional entries
//phase "";
result f_Bilger;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "system";
object controlDict; object controlDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -49,5 +48,10 @@ adjustTimeStep yes;
maxCo 0.4; maxCo 0.4;
functions
{
#include "FOBilgerMixtureFraction"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "system";
object fvSchemes; object fvSchemes;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -34,7 +33,7 @@ divSchemes
div(phi,K) Gauss limitedLinear 1; div(phi,K) Gauss limitedLinear 1;
div(phid,p) Gauss limitedLinear 1; div(phid,p) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1; div(phi,epsilon) Gauss limitedLinear 1;
div(phi,k) Gauss limitedLinear 1; div(phi,k) Gauss limitedLinear 1;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
location "system";
object fvSolution; object fvSolution;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -61,7 +60,7 @@ PIMPLE
{ {
momentumPredictor no; momentumPredictor no;
nOuterCorrectors 1; nOuterCorrectors 1;
nCorrectors 2; nCorrectors 2;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }