I still have a problem with internal energy. So let's consider steam with initial pressure 40 bar (4e6 Pa). here is what I get for internal enrgy using EES, CoolProp and Canetra:
EES:
u[1] = u(Steam, P=4e6, X=1.0) ---> answer: u[1] = 2602 kJ/kg
Coolprop:
u1 = CoolProp.PropsSI('U', 'P', 4e6, 'Q', 1.0, 'Water') / 1e3 ----> answer: u1 = 2601.7 kJ/kg
Cantera:
steam = cantera.water()
steam.PQ = 4e6, 1.0
u1 = steam.int_energy_mass / 1e3 ----> answer: u1 = -13368.40 kJ/kg
so I don't understand this behavior. I just want to get the same answer as Coolprop and EES when I am solving any problems. Any idea what should I do? Thank you.
(Please share with us snippet code or url if you want to explain)