LIBRARY
Components.AirSplitterMerger
Symmetric n-way splitter/merger for a moist-air MoistAirFluidPort.
Same role as RefrigerantSplitterMerger but for the moist-air connector; water- vapor mass fraction Xi is propagated through the stream variables alongside enthalpy. Set is_splitter = true to split one bulk port_a stream into n_flows copies at port_b (m_flow > 0 means flow enters port_a); set is_splitter = false for the merging direction. Ports are at equal pressure, no pressure drop or mixing losses.
Usage
HVACComponents.Components.AirSplitterMerger(p_in_start, T_in_start, Xi_in_start, p_out_start, T_out_start, Xi_out_start, m_flow_start, h_in_start, h_out_start)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
is_splitter | If true, port_a is the single bulk side and port_b the multi-branch side; if false, the reverse | – | true |
n_flows | Number of parallel branches on the multi-branch side | – | 1 |
p_in_start | Initial inlet pressure [Pa] (solver guess) | Pa | |
T_in_start | Initial inlet temperature [K] | K | |
Xi_in_start | Initial inlet water-vapor mass fraction [-] | – | |
p_out_start | Initial outlet pressure [Pa] (solver guess) | Pa | |
T_out_start | Initial outlet temperature [K] | K | |
Xi_out_start | Initial outlet water-vapor mass fraction [-] | – | |
m_flow_start | Initial total mass flow [kg/s] (solver guess) | kg/s | |
h_in_start | Initial inlet specific enthalpy [J/kg] | J/kg | |
h_out_start | Initial outlet specific enthalpy [J/kg] | J/kg |
Connectors
port_a- (MoistAirFluidPort)port_b- (MoistAirFluidPort)