Question about heat capacity and conductivity under thermal equilibrium

46 views
Skip to first unread message

Wayne Shen

unread,
Jul 8, 2025, 4:33:48 AMJul 8
to Cantera Users' Group
Dear,

I want to use Cantera to draw the function of heat capacity and conductivity as a function of gas temperature under thermal equilibrium. However, the results do not agree with the other results. Does any expert know where I'm wrong in my code?

These are my results (120 mbar CO2 as initial gas):
My results.png

These are other paper results (sourced from https://www.sciencedirect.com/science/article/pii/S1385894724095639 ):
Screenshot 2025-07-08 103152.png

Thank you in advance for your kind help!

Best,
Wayne

Code.py
gri30_highT.yaml

Steven DeCaluwe

unread,
Jul 8, 2025, 10:48:54 AMJul 8
to Cantera Users' Group
Hi Wayne,

In the paper you reference, the paragraph above that figure describes the features of the figure.  

My simple understanding is that their Cp calculation implicitly factors in energies of reactions - the peaks in their Cp calculation, they note, accompanies dissociation reactions, where the heat of reaction is part of the dh/dT.  Cantera’s Cp calculation is for a given composition at the stated conditions.  I didn’t read far enough to understand how that impacts thermal conductivity.

For Cp, I’m wondering if you could replicate this by manually calculating dH/dT at constant pressure.

1. Save specific enthalpy for current T.
2. Increment T by some small amount.
3. Equilibrate at constant TP
4. Save new specific enthalpy and manually calculate Cp[i] = (h[i] - h[i-1]) / (T[i] - T[i-1]) 


Cheers,
Steven



On Jul 8, 2025, at 2:33 AM, Wayne Shen <meled...@gmail.com> wrote:

Dear,

I want to use Cantera to draw the function of heat capacity and conductivity as a function of gas temperature under thermal equilibrium. However, the results do not agree with the other results. Does any expert know where I'm wrong in my code?

These are my results (120 mbar CO2 as initial gas):
<My results.png>

These are other paper results (sourced from https://www.sciencedirect.com/science/article/pii/S1385894724095639 ):
<Screenshot 2025-07-08 103152.png>

Thank you in advance for your kind help!

Best,
Wayne


--
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cantera-users/5448fd24-278a-4da0-a560-8ebe765c8937n%40googlegroups.com.
<Code.py><gri30_highT.yaml><Screenshot 2025-07-08 103152.png><My results.png>

Wayne Shen

unread,
Jul 10, 2025, 1:27:12 PMJul 10
to canter...@googlegroups.com
Dear  Steven,
Thank you so much for your kind reply.
The problem has been solved now:)

Best,
Qinghao

You received this message because you are subscribed to a topic in the Google Groups "Cantera Users' Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cantera-users/VuarPLzIaH0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cantera-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cantera-users/E011D9EC-782C-46FA-8973-6BAA19A99CAA%40gmail.com.
Reply all
Reply to author
Forward
0 new messages