Skip to content

Make Matlab species thermo properties consistent and useful #522

@speth

Description

@speth

The documentation for the Matlab function enthalpies_RT says it returns the "standard-state" species enthalpies. However, it ultimately calls the C++ method ThermoPhase::getEnthalpy_RT_ref, which returns what Cantera calls the "reference state" enthalpies. This represents the confluence of several problems:

  • The name of the function does not indicate that it is returning values for the standard state rather than the current state
  • No function exists in the Matlab toolbox to return the actual species enthalpies
  • The terminology of "reference state" vs "standard state" is inconsistent between the Matlab toolbox and the C++ base, with the Matlab terminology (I think) more closely matching the more common thermodynamic convention.

The same issue applies for gibbs_RT, entropies_R, and Cp_R, except that for these, the documentation doesn't even say that the values returned are for the reference state.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions