How to get the chemical source term from Cantera in kg/m^3/s

98 views
Skip to first unread message

Cristopher Morales

unread,
Oct 4, 2024, 1:01:16 PM10/4/24
to Cantera Users' Group
Dear all,

I hope you are doing well, 

I am trying to add the chemical source term to a CFD solver which solve the following transport equation:

transport equation.PNG
and the right hand size term is the reaction rate of species k.
So I need it in kg/m^3/s but when I got it in cantera, I got it in kmol/m^3/s and they are extremely small even when temperature is quite high.
Which function should I use for getting the Net production rates, I am using C++. Is it the GetNetProductionRates() the one that I should use? if this is the case, for gri3.0 mechanism, what should the order of magnitude be for the source terms? 10^1, 10^2? 
Thank you so much in advance,

Best regards,

Cristopher Morales Ubal

Bryan Weber

unread,
Oct 6, 2024, 2:08:55 PM10/6/24
to Cantera Users' Group
Hi Christopher,

You can get the mass production rate by multiplying by the molecular weight of the species in question. The units returned from Cantera are indeed kmol/m^3/s, and they do not need to be adjusted by order of magnitude. The production rate also depends on the concentration of each species, so some of them may indeed be very near to zero even at high temperatures.

Best,
Bryan

Cristopher Morales

unread,
Oct 18, 2024, 7:38:24 AM10/18/24
to Cantera Users' Group
Thank you so much for your answer Bryan. 

I have another doubt, is it possible to obtain the total enthalpy per species in Cantera?
obtain per species the following enthalpy:

Thank you so much in advance,

Cristopher Morales Ubal
TotalEnthalpySpecies.PNG
Reply all
Reply to author
Forward
0 new messages