-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Small comment for discussion @jbscoggi .
Many CFD codes use as a reference temperature T=0K instead of the 298.15K used by M++.
I recommend the creation of a function like:
shiftingConstantToZeroKelvin(double* const h_shift){
h_shift = h(298.15) - h(0); // invalid code, but you get the idea
}
This is particularly important for NASA polynomials, where calling the enthalpy function with T=0 gives ambiguous results. Maybe, a linear extrapolation with the last valid database temperature using the local derivative (heat capacity) would be an option.
Briefly the transformation formula should be:
h_zero(T) = h_Tref(T) + (h_Tref(Tref) - h_Tref(0))
assuming that h_zero(0) = h_tref(tref), which is the heat of formation for the species.
Let me know if this is wrong.