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), | 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 |