Skip to content
LIBRARY
Components.Sources.MassFlowSource_TPhi.md

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: ​

NameDescriptionUnitsDefault value
T_inAir outflow temperature [K]K
Phi_inAir outflow relative humidity [-] (in [0, 1])–
m_flow_inPrescribed mass flow into the network [kg/s] (positive injects into the port)kg/s
p_startInitial boundary pressure [Pa] (solver guess for port.p)Pa
medium_dataMoist-air medium properties–

Connectors ​

Variables ​

NameDescriptionUnits
pBoundary pressure [Pa] (= port.p)Pa
hOutflow specific enthalpy [J/kg] (computed from p, T_in, Xi)J/kg
XiOutflow water-vapor mass fraction [-] (computed from p, T_in, Phi_in)–