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.
| Type | Intent | Optional | 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 |