LIBRARY
Components.Sources.MassFlowSource_h
Refrigerant mass flow source with prescribed specific enthalpy.
Drives a constant mass flow m_flow_in into the network through a single FluidPort (port.m_flow = -m_flow_in, so positive m_flow_in pushes fluid into the connected component). Outflow enthalpy is h_in; pressure adjusts to match the adjacent network. Input-driven m_flow / h are not yet supported — use the parameter form.
Usage
HVACComponents.Components.Sources.MassFlowSource_h(p_start, h_in, m_flow_in)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
p_start | Initial boundary pressure [Pa] (solver guess for port.p) | Pa | |
h_in | Outflow specific enthalpy [J/kg] | J/kg | |
m_flow_in | Prescribed mass flow into the network [kg/s] (positive injects into the port) | kg/s |
Connectors
port- (FluidPort)
Variables
| Name | Description | Units |
|---|---|---|
p | Boundary pressure [Pa] (= port.p) | Pa |