CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Definition of reactions using reacingFoam (https://www.cfd-online.com/Forums/openfoam-pre-processing/80404-definition-reactions-using-reacingfoam.html)

GD07 September 24, 2010 09:52

Definition of reactions using reacingFoam
 
Hello everybody,
i am trying to use reacingFoam (OF 1.6)to simulate a combustion in a scramjet engine.
My problem is that i dont know how to implement the reactions correctly.
I use a hydogen-air combustion mechanism with 19 reactions including 9 species.
my thermophysicalProperties:

thermoType hPsiMixtureThermo<reactingMixture<gasThermoPhysics >>;
//thermoType hPsiMixtureThermo<multiComponentMixture<gasThermoP hysics>>


inertSpecie N2;

chemistryReader foamChemistryReader;

foamChemistryFile "$FOAM_CASE/constant/reactions";

foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGas";

for example a part of my "reactions"-file
//1
reversibleArrheniusReaction
1.0 H2 + 1.0 O2 = 1.0 HO2 + 1.0 H
(1.0e14 0 56000)

//2
reversibleArrheniusReaction
1.0 H + 1.0 O2 = 1.0 OH + 1.0 O
(2.6e14 0 16800)


i allways get a floating point exception error after some timesteps.
maybe i am using the wrong units or something.

Thank You for your help
Gabriel


All times are GMT -4. The time now is 07:50.