cantera_integrate_const_p_chemistry_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_integrate_const_p_chemistry_c(npoints, dt, T_inout, P, nspecies, Y_inout, h_out, cp_out, lambda_out, rho_out, T_ref, species_names_flat, name_len, rtol, atol, max_steps, energy_enabled) bind(c, name="cantera_integrate_const_p_chemistry_c")

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), value :: npoints
real(kind=c_double), value :: dt
real(kind=c_double), intent(inout) :: T_inout(npoints)
real(kind=c_double), intent(in) :: P(npoints)
integer(kind=c_int), value :: nspecies
real(kind=c_double), intent(inout) :: Y_inout(*)
real(kind=c_double), intent(out) :: h_out(npoints)
real(kind=c_double), intent(out) :: cp_out(npoints)
real(kind=c_double), intent(out) :: lambda_out(npoints)
real(kind=c_double), intent(out) :: rho_out(npoints)
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
real(kind=c_double), value :: rtol
real(kind=c_double), value :: atol
integer(kind=c_int), value :: max_steps
integer(kind=c_int), value :: energy_enabled