Convert a boundary temperature to enthalpy using the active thermo model. Boundary enthalpy from a boundary temperature.
When a transported boundary composition is available, the fixed-temperature boundary enthalpy is evaluated as h(T_b,Y_b,p0). This keeps hot/cold species inlets thermodynamically consistent.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mesh_t), | intent(in) | :: | mesh | |||
| type(case_params_t), | intent(in) | :: | params | |||
| real(kind=rk), | intent(in) | :: | temperature | |||
| real(kind=rk), | intent(in), | optional | :: | Y_point(:) |
function boundary_enthalpy_from_temperature(mesh, params, temperature, Y_point) result(h_value) type(mesh_t), intent(in) :: mesh type(case_params_t), intent(in) :: params real(rk), intent(in) :: temperature real(rk), intent(in), optional :: Y_point(:) real(rk) :: h_value if (.not. params%enable_cantera_thermo) then h_value = enthalpy_from_temperature_value(params, temperature) return end if call enthalpy_from_temperature_cantera_point(params, temperature, h_value, Y_point) associate(dummy => mesh%ncells) end associate end function boundary_enthalpy_from_temperature