cantera_recover_temperature_from_h_c Interface

interface

C-Binding interface for Cantera thermodynamics.

The C++ bridge expects temperatures , thermodynamic pressures , and normalized solver species mass fractions . It returns sensible enthalpy using and recovers temperature by adding the same-composition reference enthalpy before Cantera HP inversion. Projection pressure is never passed to these calls.


private subroutine cantera_recover_temperature_from_h_c(ncells, h_in, P, nspecies, Y_in, T_out, T_ref, species_names_flat, name_len) bind(c, name="cantera_recover_temperature_from_h_c")

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), value :: ncells
real(kind=c_double), intent(in) :: h_in(ncells)
real(kind=c_double), intent(in) :: P(ncells)
integer(kind=c_int), value :: nspecies
real(kind=c_double), intent(in) :: Y_in(*)
real(kind=c_double), intent(out) :: T_out(ncells)
real(kind=c_double), value :: T_ref
character(kind=c_char, len=1), intent(in) :: species_names_flat(*)
integer(kind=c_int), value :: name_len