LIBRARY
Components.Sources.MassFlowSource_TPhi
Moist-air mass flow source with prescribed temperature and relative humidity.
Drives a constant mass flow m_flow_in out of port (port.m_flow = -m_flow_in, so positive m_flow_in pushes air into the network). Outflow conditions are set by T_in and Phi_in at the boundary pressure; pressure adjusts to match the adjacent network. medium_data must be a moist-air medium.
Usage
HVACComponents.Components.Sources.MassFlowSource_TPhi(T_in, Phi_in, m_flow_in, p_start, medium_data)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
T_in | Air outflow temperature [K] | K | |
Phi_in | Air outflow relative humidity [-] (in [0, 1]) | – | |
m_flow_in | Prescribed mass flow into the network [kg/s] (positive injects into the port) | kg/s | |
p_start | Initial boundary pressure [Pa] (solver guess for port.p) | Pa | |
medium_data | Moist-air medium properties | – |
Connectors
port- (MoistAirFluidPort)
Variables
| Name | Description | Units |
|---|---|---|
p | Boundary pressure [Pa] (= port.p) | Pa |
h | Outflow specific enthalpy [J/kg] (computed from p, T_in, Xi) | J/kg |
Xi | Outflow water-vapor mass fraction [-] (computed from p, T_in, Phi_in) | – |