CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   About dieselFoam (http://www.cfd-online.com/Forums/openfoam-solving/60522-about-dieselfoam.html)

tsjb00 August 15, 2005 16:19

I change the dieselFoam code a
 
I change the dieselFoam code a bit. The revised code is basically the same as dieselFoam, only without diesel injection and some other minor stuff. The only complain during compiling is that temperature field is never used. When I run the code, something goes wrong in reading thermophysical properties part of createFields.H.

Error information is:

--> FOAM FATAL ERROR : attempt to use janafThermo<equationofstate> out of temperature range 200 -> 5000; T = nan

I check the T file in directory ./0 and files in ./chemkin. What is the cause of this problem? Do I miss something in the application code?

Thanks a lot!

JB

lucchini August 16, 2005 04:23

Hi Bei, I think the reactingF
 
Hi Bei,
I think the reactingFoam application might be more suitable for your case. Use that one, at least without any mofication. It should be ok for a turbulent reacting flow without sprays.
Bye
Tommaso

tsjb00 August 16, 2005 13:53

Many thanks for your help! I t
 
Many thanks for your help! I try the reactingFoam as you suggested and it works. However, when I try to use gri-mech3 files, the chemkin reader complains again. As a example, the following reaction is not recognized:

O+CH2(S)<=>H2+CO

Error information:
--> FOAM FATAL ERROR : while reading reaction specie on line 31
expected '+' but found '"<"=>H2+CO 1.500E+13 .000 .00'

Function: chemkinReader::lex()
in file: chemistryReaders/chemkinReader/chemkinLexer.L at line: 1484.


It seems the reader accepts CH2(S) in reading species, but having trouble with CH2(S) in the reaction. How can I fix it?

Best regards,

JB

lucchini August 16, 2005 16:59

Hi Bei, try writing the react
 
Hi Bei,
try writing the reaction like this

O+CH2(S) <=> H2+CO

adding a space after CH2(S) and before H2.

Otherwise try
O+CH2(S) = H2+CO

but I am not sure if the "=" and "<=>" signs are equivalent....

bye
Tommaso


All times are GMT -4. The time now is 03:52.