Skip to content

Consistent change of reference temperature for thermo. #69

@grgbellasvki

Description

@grgbellasvki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions