cantera_heat_release_rate_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_heat_release_rate_c(npoints, T, P, nspecies, Y_in, qdot_out, species_names_flat, name_len) bind(c, name="cantera_heat_release_rate_c")

Arguments

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