$FOAM_TUTORIALS/combustion/chemFoam/ic8h18
We import CHEMKIN II input files and calculate chemical reaction, then compare the calculation result with CHEMKIN II's result. CHEMKIN is a proprietary software for chemical reaction calculations that is developed at Sandia National Laboratories.
We solves pressure, temperature, and chemical composition, but not flow. And there are no spatial degrees of freedom (i.e. we calculate reactions in a single cell as ordinary differential equations). There are CHEMKIN format input files in the directory "chemkin", and we load them from the file "thermophysicalProperties" in the directory "constant" as follows.
thermoType { type hePsiThermo; mixture reactingMixture; transport sutherland; thermo janaf; energy sensibleEnthalpy; equationOfState perfectGas; specie specie; } CHEMKINFile "$FOAM_CASE/chemkin/chem.inp"; CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat"; CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties";
The initial pressure, temperature, and chemical composition are defined in the file "initialConditions" in the directory "constant" as follows. The entire calculation takes into account 874 chemical species and 3796 chemical reactions defined in the file "chemkin/chem.inp".
constantProperty pressure; fractionBasis mole; fractions { IC8H18 0.08; N2 3.76; O2 1; } p 5.06625e+06; T 800;
And the file "chemistryProperties" in the directory "constant" is used to configure the chemistry solver.
The calculation result is as follows.
We can see that the OpenFOAM result is in good agreement with CHEMKIN II's.
After the calculation, the results are compared with the results of CHEMKIN II under the directory "validation" and drawn on a graph. Here, we use the convert command of ImageMagick to convert the file format from EPS to PNG.
24 minutes 59.41 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz