diff --git a/.github/workflows/CPU_inferencce_validation.yml b/.github/workflows/CPU_inferencce_validation.yml index de3113b8c..22ed1873e 100644 --- a/.github/workflows/CPU_inferencce_validation.yml +++ b/.github/workflows/CPU_inferencce_validation.yml @@ -12,6 +12,7 @@ jobs: if: github.repository_owner == 'deepmodeling' container: image: ubuntu:20.04 + options: --shm-size=5g # shared memory size = 5GB steps: - name: Checkout uses: actions/checkout@v3 @@ -46,11 +47,10 @@ jobs: OMPI_MCA_btl_vader_single_copy_mechanism: none run: /bin/bash -c " echo $PWD && ls $PWD - && wget https://github.com/JX278/DeepFlame-flareFGM-table/raw/main/flareFGM_Table_Download.zip - && unzip flareFGM_Table_Download.zip + && wget --content-disposition https://aisquare.oss-us-east-1.aliyuncs.com/data/datasets/14b50df5-dbe9-4f1c-bf58-032b8bc40a20 + && unzip flare_CH4_SandiaD_4D.zip && ls $PWD - && ls flareFGM_Table_Download - && cp -r flareFGM_Table_Download/SandiaD/flare.tbl examples/dfLowMachFoam/2DSandiaD_flareFGM/ + && cp -r flare_CH4_SandiaD_4D.tbl examples/dfLowMachFoam/2DSandiaD_flareFGM/ && git clone https://github.com/intelligent-algorithm-team/intelligent-combustion.git && cp -r intelligent-combustion/DeePCK/Model/HE04_Hydrogen_ESH2_GMS_sub_20221101/ mechanisms/ && source ~/miniconda3/etc/profile.d/conda.sh && conda activate libcantera && source /opt/openfoam7/etc/bashrc && . configure.sh --use_pytorch&& source ./bashrc && . install.sh diff --git a/applications/solvers/dfHighSpeedFoam/createFields.H b/applications/solvers/dfHighSpeedFoam/createFields.H index 852122f45..4d5e8b4c4 100644 --- a/applications/solvers/dfHighSpeedFoam/createFields.H +++ b/applications/solvers/dfHighSpeedFoam/createFields.H @@ -186,8 +186,15 @@ volScalarField rhoE rho*(ea + 0.5*magSqr(U)) ); -chemistry->correctThermo(); -Info<< "At initial time, min/max(T) = " << min(T).value() << ", " << max(T).value() << endl; +const word combModelName(mesh.objectRegistry::lookupObject("combustionProperties").lookup("combustionModel")); +Info << "Combustion Model Name is confirmed as "<< combModelName << endl; + + +if (combModelName != "flareFGM") +{ + chemistry->correctThermo(); + Info<< "At initial time, min/max(T) = " << min(T).value() << ", " << max(T).value() << endl; +} forAll(Y, i) { diff --git a/applications/solvers/dfLowMachFoam/createFields.H b/applications/solvers/dfLowMachFoam/createFields.H index 9e750c334..15413d462 100644 --- a/applications/solvers/dfLowMachFoam/createFields.H +++ b/applications/solvers/dfLowMachFoam/createFields.H @@ -93,8 +93,11 @@ chemistry->setEnergyName("ha"); chemistry->updateEnergy(); -chemistry->correctThermo(); -Info<< "At initial time, min/max(T) = " << min(T).value() << ", " << max(T).value() << endl; +if (combModelName != "flareFGM") +{ + chemistry->correctThermo(); + Info<< "At initial time, min/max(T) = " << min(T).value() << ", " << max(T).value() << endl; +} //for dpdt diff --git a/applications/solvers/dfSprayFoam/createFields.H b/applications/solvers/dfSprayFoam/createFields.H index 3c33fce70..7506f74b8 100644 --- a/applications/solvers/dfSprayFoam/createFields.H +++ b/applications/solvers/dfSprayFoam/createFields.H @@ -78,11 +78,30 @@ autoPtr turbulence const word turbName(mesh.objectRegistry::lookupObject("turbulenceProperties").lookup("simulationType")); +Info<< "Creating field dpdt\n" << endl; +volScalarField dpdt +( + IOobject + ( + "dpdt", + runTime.timeName(), + mesh + ), + mesh, + dimensionedScalar(p.dimensions()/dimTime, 0) +); + Info<< "Creating reaction model\n" << endl; autoPtr> combustion ( CombustionModel::New(thermo, turbulence()) ); + +const word combModelName(mesh.objectRegistry::lookupObject +("combustionProperties").lookup("combustionModel")); +Info << "Combustion Model Name is confirmed as "<< combModelName << endl; + + Info<< "end Creating reaction model\n" << endl; dfChemistryModel* chemistry = combustion->chemistry(); PtrList& Y = chemistry->Y(); @@ -91,23 +110,12 @@ const label inertIndex(chemistry->species()[inertSpecie]); chemistry->setEnergyName("ha"); chemistry->updateEnergy(); +if (combModelName != "flareFGM") +{ + chemistry->correctThermo(); + Info<< "At initial time, min/max(T) = " << min(T).value() << ", " << max(T).value() << endl; +} -chemistry->correctThermo(); -Info<< "At initial time, min/max(T) = " << min(T).value() << ", " << max(T).value() << endl; - - -Info<< "Creating field dpdt\n" << endl; -volScalarField dpdt -( - IOobject - ( - "dpdt", - runTime.timeName(), - mesh - ), - mesh, - dimensionedScalar(p.dimensions()/dimTime, 0) -); Info<< "Creating field kinetic energy K\n" << endl; volScalarField K("K", 0.5*magSqr(U)); diff --git a/applications/solvers/dfSprayFoam/dfSprayFoam.C b/applications/solvers/dfSprayFoam/dfSprayFoam.C index ff044db6d..363508475 100644 --- a/applications/solvers/dfSprayFoam/dfSprayFoam.C +++ b/applications/solvers/dfSprayFoam/dfSprayFoam.C @@ -153,9 +153,17 @@ int main(int argc, char *argv[]) while (pimple.loop()) { #include "UEqn.H" - #include "YEqn.H" - #include "EEqn.H" - chemistry->correctThermo(); + + if(combModelName!="ESF" && combModelName!="flareFGM" ) + { + #include "YEqn.H" + #include "EEqn.H" + chemistry->correctThermo(); + } + else + { + combustion->correct(); + } Info<< "T gas min/max " << min(T).value() << ", " << max(T).value() << endl; diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/G.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/G.gz deleted file mode 100644 index a075abd5e..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/G.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/He b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ha similarity index 96% rename from examples/dfLowMachFoam/2DSandiaD_flareFGM/0/He rename to examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ha index 88f68ca3a..c2db898b2 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/He +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ha @@ -34,7 +34,7 @@ boundaryField inletPilot { type fixedValue; - value uniform -170863.69815950916; + value uniform -294024.3725; } inletAir diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/T b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/T index f90678557..b529e59df 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/T +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/T @@ -26,39 +26,36 @@ boundaryField type fixedValue; value uniform 294; } - wallOutside { type zeroGradient; } - wallTube { type zeroGradient; } - inletPilot { type fixedValue; value uniform 1880; } - inletAir { type fixedValue; value uniform 291; } - outlet { type zeroGradient; } - + axis + { + type empty; + } frontAndBack_pos { type wedge; } - frontAndBack_neg { type wedge; diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/U b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/U new file mode 100644 index 000000000..0c21ab649 --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/U @@ -0,0 +1,70 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ 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.9); + +boundaryField +{ + wallTube + { + type noSlip; + } + + outlet + { + type pressureInletOutletVelocity; + value $internalField; + } + + inletPilot + { + type fixedValue; + value uniform (0 0 11.4); + } + + inletAir + { + type fixedValue; + value uniform (0 0 0.9); + } + + wallOutside + { + type zeroGradient; + } + + inletCH4 + { + type fixedValue; + value uniform (0 0 49.6); + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/U.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/U.gz deleted file mode 100644 index eb990d607..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/U.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ydefault b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ydefault new file mode 100644 index 000000000..6d85f7b3d --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ydefault @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object Ydefault; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + wallTube + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + inletPilot + { + type fixedValue; + value uniform 0; + } + + inletAir + { + type fixedValue; + value uniform 0; + } + + wallOutside + { + type zeroGradient; + } + + inletCH4 + { + type fixedValue; + value uniform 0; + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ydefault.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ydefault.gz deleted file mode 100644 index 1982e123a..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/Ydefault.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/alphat b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/alphat new file mode 100644 index 000000000..d2bf2613e --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/alphat @@ -0,0 +1,74 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ 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 +{ + wallTube + { + type compressible::alphatWallFunction; + Prt 0.85; + value $internalField; + } + + outlet + { + type calculated; + value $internalField; + } + + inletPilot + { + type calculated; + value $internalField; + } + + inletAir + { + type calculated; + value $internalField; + } + + wallOutside + { + type compressible::alphatWallFunction; + Prt 0.85; + value $internalField; + } + + inletCH4 + { + type calculated; + value $internalField; + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/alphat.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/alphat.gz deleted file mode 100644 index 363e369b6..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/alphat.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/epsilon b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/epsilon new file mode 100644 index 000000000..426806689 --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/epsilon @@ -0,0 +1,84 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -3 0 0 0 0]; + +internalField uniform 30000; + +boundaryField +{ + wallTube + { + type epsilonWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 30000; + } + + outlet + { + type zeroGradient; + } + + inletPilot + { + type turbulentMixingLengthDissipationRateInlet; + mixingLength 0.000735; + phi phi; + k k; + value uniform 1; + } + + inletAir + { + type turbulentMixingLengthDissipationRateInlet; + mixingLength 0.019677; + value uniform 1; + } + + wallOutside + { + type epsilonWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 30000; + } + + inletCH4 + { + type turbulentMixingLengthDissipationRateInlet; + mixingLength 0.000504; + phi phi; + k k; + value uniform 1; + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/epsilon.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/epsilon.gz deleted file mode 100644 index 8f25949fd..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/epsilon.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/k b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/k new file mode 100644 index 000000000..25602f936 --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/k @@ -0,0 +1,74 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 30; + +boundaryField +{ + wallTube + { + type kqRWallFunction; + value uniform 30; + } + + outlet + { + type zeroGradient; + } + + inletPilot + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.0628; + value uniform 1; + } + + inletAir + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.0471; + value uniform 1; + } + + wallOutside + { + type kqRWallFunction; + value uniform 30; + } + + inletCH4 + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.0458; + value uniform 1; + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/k.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/k.gz deleted file mode 100644 index c07786222..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/k.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/nut b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/nut new file mode 100644 index 000000000..ee38ce327 --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/nut @@ -0,0 +1,78 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + wallTube + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value $internalField; + } + + outlet + { + type calculated; + value $internalField; + } + + inletPilot + { + type calculated; + value $internalField; + } + + inletAir + { + type calculated; + value $internalField; + } + + wallOutside + { + type nutkWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value $internalField; + } + + inletCH4 + { + type calculated; + value $internalField; + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/nut.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/nut.gz deleted file mode 100644 index efdec743e..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/nut.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/p b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/p new file mode 100644 index 000000000..0a4e7409d --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/p @@ -0,0 +1,67 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: 7 + \\/ 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 +{ + wallTube + { + type zeroGradient; + } + + outlet + { + type totalPressure; + p0 $internalField; + } + + inletPilot + { + type zeroGradient; + } + + inletAir + { + type zeroGradient; + } + + wallOutside + { + type zeroGradient; + } + + inletCH4 + { + type zeroGradient; + } + + frontAndBack_pos + { + type wedge; + } + + frontAndBack_neg + { + type wedge; + } +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/p.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/p.gz deleted file mode 100644 index 75cef9487..000000000 Binary files a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/p.gz and /dev/null differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/rho b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/rho new file mode 100644 index 000000000..0e729c8e1 --- /dev/null +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/0/rho @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 4.1 | +| \\ / 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.177; + +boundaryField +{ + wallTube + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + inletPilot + { + type zeroGradient; + } + + inletAir + { + type zeroGradient; + } + + wallOutside + { + type zeroGradient; + } + + inletCH4 + { + type zeroGradient; + } + + axis + { + type empty; + } + + frontAndBack_pos + { + type wedge; + } + frontAndBack_neg + { + type wedge; + } + + +} + + +// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/AR.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/AR.gz new file mode 100644 index 000000000..532d6a70e Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/AR.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C.gz new file mode 100644 index 000000000..bf9f6acbd Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H.gz new file mode 100644 index 000000000..72cd9af70 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H2.gz new file mode 100644 index 000000000..18b517ef7 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H3.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H3.gz new file mode 100644 index 000000000..37d316347 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H3.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H4.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H4.gz new file mode 100644 index 000000000..2ae1c1fba Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H4.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H5.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H5.gz new file mode 100644 index 000000000..01b7fd997 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H5.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H6.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H6.gz new file mode 100644 index 000000000..0e597e171 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C2H6.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C3H7.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C3H7.gz new file mode 100644 index 000000000..b3ee39589 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C3H7.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C3H8.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C3H8.gz new file mode 100644 index 000000000..ad3b29f63 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/C3H8.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH.gz new file mode 100644 index 000000000..61e050d55 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2(S).gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2(S).gz new file mode 100644 index 000000000..998b2845c Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2(S).gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2.gz new file mode 100644 index 000000000..5e77499a3 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2CHO.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2CHO.gz new file mode 100644 index 000000000..40dffa261 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2CHO.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2CO.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2CO.gz new file mode 100644 index 000000000..16b67dac0 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2CO.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2O.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2O.gz new file mode 100644 index 000000000..424279d2a Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2O.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2OH.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2OH.gz new file mode 100644 index 000000000..7938aa781 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH2OH.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3.gz new file mode 100644 index 000000000..d5e4deba8 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3CHO.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3CHO.gz new file mode 100644 index 000000000..df0001c3d Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3CHO.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3O.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3O.gz new file mode 100644 index 000000000..37609deb7 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3O.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3OH.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3OH.gz new file mode 100644 index 000000000..8d6853acb Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH3OH.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH4.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH4.gz new file mode 100644 index 000000000..c801edf22 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CH4.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CO.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CO.gz new file mode 100644 index 000000000..1aaea37e4 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CO.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CO2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CO2.gz new file mode 100644 index 000000000..e0defed33 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/CO2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Cp.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Cp.gz new file mode 100644 index 000000000..ca2836928 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Cp.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H.gz new file mode 100644 index 000000000..af0270781 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2.gz new file mode 100644 index 000000000..558ab2002 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2O.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2O.gz new file mode 100644 index 000000000..0629effca Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2O.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2O2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2O2.gz new file mode 100644 index 000000000..f8712791f Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/H2O2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCCO.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCCO.gz new file mode 100644 index 000000000..0e93c4fae Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCCO.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCCOH.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCCOH.gz new file mode 100644 index 000000000..d012eacec Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCCOH.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCO.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCO.gz new file mode 100644 index 000000000..8ef9cb997 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HCO.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HO2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HO2.gz new file mode 100644 index 000000000..c1976fa91 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/HO2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Ha.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Ha.gz new file mode 100644 index 000000000..bf2af4f0d Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Ha.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Ha_s.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Ha_s.gz new file mode 100644 index 000000000..2b3487729 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Ha_s.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Hf.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Hf.gz new file mode 100644 index 000000000..6aa3343c8 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Hf.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/N2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/N2.gz new file mode 100644 index 000000000..e3f9ec44e Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/N2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/O.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/O.gz new file mode 100644 index 000000000..f9deec678 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/O.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/O2.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/O2.gz new file mode 100644 index 000000000..779bf46e4 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/O2.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/OH.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/OH.gz new file mode 100644 index 000000000..714e7c0fa Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/OH.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Qdot.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Qdot.gz new file mode 100644 index 000000000..a72f3ffd9 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Qdot.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/T.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/T.gz new file mode 100644 index 000000000..680eaea0c Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/T.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/U.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/U.gz new file mode 100644 index 000000000..518ea1fcc Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/U.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Wt.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Wt.gz new file mode 100644 index 000000000..c6305af24 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Wt.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Z.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Z.gz new file mode 100644 index 000000000..342687ba4 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Z.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zcvar.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zcvar.gz new file mode 100644 index 000000000..3dc021c5e Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zcvar.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zcvar_s.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zcvar_s.gz new file mode 100644 index 000000000..b7279fb39 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zcvar_s.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zvar.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zvar.gz new file mode 100644 index 000000000..088819196 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zvar.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zvar_s.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zvar_s.gz new file mode 100644 index 000000000..7cb7252c6 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/Zvar_s.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/alphat.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/alphat.gz new file mode 100644 index 000000000..957f9a88a Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/alphat.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/betac.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/betac.gz new file mode 100644 index 000000000..ff06e67a7 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/betac.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/c.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/c.gz new file mode 100644 index 000000000..2384621f6 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/c.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/c_s.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/c_s.gz new file mode 100644 index 000000000..d7131ac3b Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/c_s.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cellCpuTimes.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cellCpuTimes.gz new file mode 100644 index 000000000..e600d0054 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cellCpuTimes.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_Z.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_Z.gz new file mode 100644 index 000000000..f5ea0403f Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_Z.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_Zc.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_Zc.gz new file mode 100644 index 000000000..5bf167ac9 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_Zc.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_c.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_c.gz new file mode 100644 index 000000000..15f63a7bf Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/chi_c.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cvar.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cvar.gz new file mode 100644 index 000000000..3be08fba7 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cvar.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cvar_s.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cvar_s.gz new file mode 100644 index 000000000..fbdce24de Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/cvar_s.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/epsilon.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/epsilon.gz new file mode 100644 index 000000000..34f4e1b9c Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/epsilon.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/k.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/k.gz new file mode 100644 index 000000000..ee3392c37 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/k.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/nut.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/nut.gz new file mode 100644 index 000000000..f072d3b63 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/nut.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/omega_c.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/omega_c.gz new file mode 100644 index 000000000..b8451327a Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/omega_c.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/p.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/p.gz new file mode 100644 index 000000000..ab23eff7d Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/p.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/phi.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/phi.gz new file mode 100644 index 000000000..df142c4c3 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/phi.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/rho.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/rho.gz new file mode 100644 index 000000000..4fae20606 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/rho.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/selectDNN.gz b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/selectDNN.gz new file mode 100644 index 000000000..b05845914 Binary files /dev/null and b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/selectDNN.gz differ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties.org b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/uniform/time similarity index 78% rename from examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties.org rename to examples/dfLowMachFoam/2DSandiaD_flareFGM/1/uniform/time index 13bf4db65..c34718405 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties.org +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/1/uniform/time @@ -10,21 +10,20 @@ FoamFile version 2.0; format ascii; class dictionary; - location "constant"; - object combustionProperties; + location "1/uniform"; + object time; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -combustionModel EDC; +value 1; -EDCCoeffs -{ - version v2005; -} +name "1"; + +index 17469; + +deltaT 5.7162129e-05; + +deltaT0 5.7162129e-05; -PaSRCoeffs -{ - Cmix 0.03; -} // ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/Allrun b/examples/dfLowMachFoam/2DSandiaD_flareFGM/Allrun index 39b0cddcc..fcb5cef98 100755 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/Allrun +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/Allrun @@ -12,7 +12,7 @@ runApplication blockMesh runApplication decomposePar -force -mpirun --oversubscribe -np 8 --allow-run-as-root dfLowMachFoam -parallel +mpirun --oversubscribe -np 4 --allow-run-as-root dfLowMachFoam -parallel ./postProcess diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/CanteraTorchProperties b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/CanteraTorchProperties index 817b43040..d7ffb0ba7 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/CanteraTorchProperties +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/CanteraTorchProperties @@ -19,7 +19,7 @@ chemistry off; CanteraMechanismFile "gri30.yaml"; -transportModel "Mix"; +transportModel "mixture-averaged"; odeCoeffs { diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties index d40666475..b166acd70 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/combustionProperties @@ -66,7 +66,24 @@ PaSRCoeffs flareFGMCoeffs { - speciesName ("CO"); - combustion on; + scaledPV true; + combustion true; + solveEnthalpy true; + flameletT false; + relaxation false; + DpDt false; + buffer false; + bufferTime 0.0; + ignition false; + /* + ignBeginTime 0.0; + ignDurationTime 0.0; + x0 0.0; + y0 0.0; + z0 0.0; + R0 0.0; + */ + Sct 0.7; + tablePath flare_CH4_SandiaD_4D.tbl; } // ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/g b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/g deleted file mode 100644 index 113310120..000000000 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/g +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: 7 - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class uniformDimensionedVectorField; - location "constant"; - object g; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -2 0 0 0 0]; -value (0 0 -9.81); - -// ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/thermophysicalProperties b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/thermophysicalProperties index 5b0c5908f..3940ea956 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/thermophysicalProperties +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/thermophysicalProperties @@ -15,5 +15,33 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +thermoType +{ + type hePsiThermo; + mixture pureMixture; + transport const; + thermo eConst; + equationOfState perfectGas; + specie specie; + energy sensibleInternalEnergy; +} + +mixture +{ + specie + { + molWeight 28.9; + } + thermodynamics + { + Cv 712; + Hf 0; + } + transport + { + mu 1.8e-05; + Pr 0.7; + } +} // ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/turbulenceProperties b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/turbulenceProperties index 6efd85e88..44a2ddc9b 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/turbulenceProperties +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/constant/turbulenceProperties @@ -19,10 +19,12 @@ simulationType RAS; RAS { - RASModel kEpsilon; + RASModel RNGkEpsilon; turbulence on; printCoeffs on; + + C1 1.52; } // ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/postProcess b/examples/dfLowMachFoam/2DSandiaD_flareFGM/postProcess index 33bdeb38b..68041df97 100755 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/postProcess +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/postProcess @@ -1,6 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -reconstructPar -time 0.2 -postProcess -func sample -time 0.2 +reconstructPar -time 1.1 +postProcess -func sample -time 1.1 diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/controlDict b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/controlDict index 555aaf4cb..a1583249b 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/controlDict +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/controlDict @@ -22,21 +22,21 @@ startTime 0; stopAt endTime; -endTime 0.2; +endTime 1.1; deltaT 1e-05; -writeControl runTime; +writeControl adjustableRunTime; -writeInterval 0.2; +writeInterval 0.1; purgeWrite 0; -writeFormat binary; +writeFormat ascii; -writePrecision 10; +writePrecision 8; -writeCompression off; +writeCompression on; timeFormat general; @@ -46,7 +46,13 @@ runTimeModifiable true; adjustTimeStep no; -maxCo 0.1; +adjustTimeStep yes; + +maxCo 0.8; + +maxAlphaCo 1; + +maxDeltaT 1; // ************************************************************************* // diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/decomposeParDict b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/decomposeParDict index ad6a27c5f..634f839e2 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/decomposeParDict +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/decomposeParDict @@ -14,7 +14,7 @@ FoamFile object decomposeParDict; } -numberOfSubdomains 8; +numberOfSubdomains 4; method scotch; diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSchemes b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSchemes index 9fdf7a0e1..63840d6ce 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSchemes +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSchemes @@ -33,7 +33,7 @@ divSchemes // div(phi,U) Gauss linearUpwind grad(U); div(phi,Ulinear) Gauss linearUpwind grad(U); div(phi,scalarUW) Gauss limitedLinear 1; - div(phi,H) Gauss limitedLinear 1; + div(phi,Ha) Gauss limitedLinear 1; div(phi,Zvar) Gauss limitedLinear 1; div(phi,Z) Gauss limitedLinear01 1; div((muEff*dev2(T(grad(U))))) Gauss linear; diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSolution b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSolution index add1de749..20a540dc8 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSolution +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/fvSolution @@ -68,7 +68,6 @@ solvers relTol 0.001; } -/* "(k|epsilon)" { solver PBiCG; @@ -76,7 +75,6 @@ solvers tolerance 1e-09; relTol 0.001; } -*/ "(k|epsilon)Final" { @@ -86,7 +84,7 @@ solvers // minIter 1; } - "(Z|H|Zvar|c|cvar|Zcvar).*" + "(Z|Ha|Zvar|c|cvar|Zcvar).*" { solver PBiCG; preconditioner DILU; @@ -103,15 +101,6 @@ PIMPLE nCorrectors 2; nNonOrthogonalCorrectors 0; momentumPredictor yes; - - // outerCorrectorResidualControl - // { - // "(U)" - // { - // tolerance 1e-04; - // relTol 0; - // } - // } } /* @@ -124,7 +113,7 @@ relaxationFactors equations { U 0.8; -// phiFilt 0.5; + phiFilt 0.5; } } */ diff --git a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/sample b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/sample index 3d5d75d9b..53e2752d6 100644 --- a/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/sample +++ b/examples/dfLowMachFoam/2DSandiaD_flareFGM/system/sample @@ -26,10 +26,10 @@ sets data { type lineUniform; - axis x; - start (0 0 0.1); - end (0.03 0 0.1); - nPoints 7; + axis z; + start (0 0 0); + end (0 0 0.5); + nPoints 11; } ); diff --git a/src/dfChemistryModel/dfChemistryModel.H b/src/dfChemistryModel/dfChemistryModel.H index 7705dc77f..c10035380 100644 --- a/src/dfChemistryModel/dfChemistryModel.H +++ b/src/dfChemistryModel/dfChemistryModel.H @@ -313,6 +313,9 @@ public: const volScalarField& rhoD(const label i) const {return rhoD_[i];} const volScalarField& hai(const label i) {return hai_[i];} + + const scalar & hci(const label i) {return hc_[i];} + // update T, psi, mu, alpha, rhoD, hai (if needed) void correctThermo(); diff --git a/src/dfCombustionModels/FGM/FGMLiquidEvaporationBoil/FGMLiquidEvaporationBoil.C b/src/dfCombustionModels/FGM/FGMLiquidEvaporationBoil/FGMLiquidEvaporationBoil.C new file mode 100644 index 000000000..bedb12220 --- /dev/null +++ b/src/dfCombustionModels/FGM/FGMLiquidEvaporationBoil/FGMLiquidEvaporationBoil.C @@ -0,0 +1,228 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see . + +\*---------------------------------------------------------------------------*/ + +#include "FGMLiquidEvaporationBoil.H" +// #include "specie.H" +#include "mathematicalConstants.H" + + +using namespace Foam::constant::mathematical; + +// // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // + +// template +// Foam::tmp Foam::LiquidEvaporationBoil::calcXc +// ( +// const label celli +// ) const +// { +// scalarField Xc(this->owner().thermo().carrier().Y().size()); + +// forAll(Xc, i) +// { +// Xc[i] = +// this->owner().thermo().carrier().Y()[i][celli] +// /this->owner().thermo().carrier().Wi(i); +// } + +// return Xc/sum(Xc); +// } + + +// template +// Foam::scalar Foam::LiquidEvaporationBoil::Sh +// ( +// const scalar Re, +// const scalar Sc +// ) const +// { +// return 2.0 + 0.6*Foam::sqrt(Re)*cbrt(Sc); +// } + + +// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // + +template +Foam::FGMLiquidEvaporationBoil::FGMLiquidEvaporationBoil +( + const dictionary& dict, + CloudType& owner +) +: + LiquidEvaporationBoil(dict, owner), + W_(this->owner().mesh().objectRegistry::lookupObject("Wt")) +{ + +} + + +template +Foam::FGMLiquidEvaporationBoil::FGMLiquidEvaporationBoil +( + const FGMLiquidEvaporationBoil& pcm +) +: + LiquidEvaporationBoil(pcm), + + W_(this->owner().mesh().objectRegistry::lookupObject("Wt")) +{ + +} + + +// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // + +template +Foam::FGMLiquidEvaporationBoil::~FGMLiquidEvaporationBoil() +{} + + +// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // + +template +void Foam::FGMLiquidEvaporationBoil::calculate +( + const scalar dt, + const label celli, + const scalar Re, + const scalar Pr, + const scalar d, + const scalar nu, + const scalar T, + const scalar Ts, + const scalar pc, + const scalar Tc, + const scalarField& X, + scalarField& dMassPC +) const +{ + // immediately evaporate mass that has reached critical condition + if ((this->liquids_.Tc(X) - T) < small) + { + if (debug) + { + WarningInFunction + << "Parcel reached critical conditions: " + << "evaporating all available mass" << endl; + } + + forAll(this->activeLiquids_, i) + { + const label lid = this->liqToLiqMap_[i]; + dMassPC[lid] = great; + } + + return; + } + + // droplet surface pressure assumed to surface vapour pressure + scalar ps = this->liquids_.pv(pc, Ts, X); + + // vapour density at droplet surface [kg/m^3] + const scalar RR = 1000.0*constant::physicoChemical::R.value(); // J/(kmol·k) + // vapour density at droplet surface [kg/m3] + scalar rhos = ps*this->liquids_.W(X)/(RR*Ts); + + // // construct carrier phase species volume fractions for cell, celli + // const scalarField XcMix(calcXc(celli)); + + // // carrier thermo properties + // scalar Hsc = 0.0; + // scalar Hc = 0.0; + // scalar Cpc = 0.0; + // scalar kappac = 0.0; + // this->owner().thermo().carrier().calcH(Tc, pc); + // forAll(this->owner().thermo().carrier().Y(), i) + // { + // const scalar Yc = this->owner().thermo().carrier().Y()[i][celli]; + // Hc += Yc*this->owner().thermo().carrier().Ha(i, pc, Tc); + // } + + // this->owner().thermo().carrier().calcH(Ts, ps); + // this->owner().thermo().carrier().calcCp(Ts, ps); + // this->owner().thermo().carrier().calcMu(Ts, ps); + // forAll(this->owner().thermo().carrier().Y(), i) + // { + // const scalar Yc = this->owner().thermo().carrier().Y()[i][celli]; + // Hsc += Yc*this->owner().thermo().carrier().Ha(i, ps, Ts); + // Cpc += Yc*this->owner().thermo().carrier().Cp(i, ps, Ts); + // kappac += Yc*this->owner().thermo().carrier().kappa(i, ps, Ts); + // } + + // calculate mass transfer of each specie in liquid + forAll(this->activeLiquids_, i) + { + const label gid = this->liqToCarrierMap_[i]; + const label lid = this->liqToLiqMap_[i]; + + // boiling temperature at cell pressure for liquid species lid [K] + const scalar TBoil = this->liquids_.properties()[lid].pvInvert(pc); + // limit droplet temperature to boiling/critical temperature + const scalar Td = min(T, 0.999*TBoil); + // saturation pressure for liquid species lid [Pa] + const scalar pSat = this->liquids_.properties()[lid].pv(pc, Td); + // surface molar fraction - Raoult's Law + const scalar Xs = X[lid]*pSat/pc; + + + // if (Xc*pc > pSat) + // { + // // saturated vapour - no phase change + // } + // else + { + // vapour diffusivity [m2/s] + const scalar Dab = this->liquids_.properties()[lid].D(ps, Ts); + + // Schmidt number + const scalar Sc = nu/(Dab + rootVSmall); + + // Sherwood number + const scalar Sh = this->Sh(Re, Sc); + + // mixture molar weight + scalar W_gas = W_[celli];//FGMmodel_.getValue(celli, "W"); + + // carrier phase concentration-fuel + const scalar Yc = this->owner().thermo().carrier().Y()[gid][celli]; + + // fuel molar weight [kg/kmol] + const scalar W_fuel = this->liquids_.properties()[lid].W(); + const scalar Ys = Xs*W_fuel/W_gas/(1. + Xs*W_fuel/W_gas - Xs); // ref Hu.2017, Spalding.1953 + const scalar Bm = (Ys - Yc)/max(small, 1. - Ys); + + if (Bm > 0) + { + // mass transfer [kg] + dMassPC[lid] += pi*d*Sh*Dab*rhos*log(1.0 + Bm)*dt; + } + } + } +} + + + + +// ************************************************************************* // diff --git a/src/dfCombustionModels/FGM/FGMLiquidEvaporationBoil/FGMLiquidEvaporationBoil.H b/src/dfCombustionModels/FGM/FGMLiquidEvaporationBoil/FGMLiquidEvaporationBoil.H new file mode 100644 index 000000000..699177630 --- /dev/null +++ b/src/dfCombustionModels/FGM/FGMLiquidEvaporationBoil/FGMLiquidEvaporationBoil.H @@ -0,0 +1,169 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see . + +Class + Foam::FGMLiquidEvaporationBoil + +Description + Liquid evaporation model + - uses ideal gas assumption + - includes boiling model based on: + + \verbatim + "Studies of Superheated Fuel Spray Structures and Vaporization in + GDI Engines" + + Zuo, B., Gomes, A. M. and Rutland C. J. + + International Journal of Engine Research, 2000, Vol. 1(4), pp. 321-336 + \endverbatim + +\*---------------------------------------------------------------------------*/ + +#ifndef FGMLiquidEvaporationBoil_H +#define FGMLiquidEvaporationBoil_H + +#include "LiquidEvaporationBoil.H" +#include "liquidMixtureProperties.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ +/*---------------------------------------------------------------------------*\ + Class FGMLiquidEvaporationBoil Declaration +\*---------------------------------------------------------------------------*/ + +template +class FGMLiquidEvaporationBoil +: + public LiquidEvaporationBoil +{ +protected: + + // Protected data + + // //- Global liquid properties data + // const liquidMixtureProperties& liquids_; + + // //- List of active liquid names + // List activeLiquids_; + + // //- Mapping between liquid and carrier species + // List