LIBRARY
Components.Sources.Boundary_ph
Refrigerant boundary fixing pressure and specific enthalpy.
Exposes nPorts FluidPorts that all share the same boundary state. Pressure is either the constant p_fixed (default) or the RealInput p_fixed_input when use_input_p = true; specific enthalpy is the constant h_fixed or the RealInput h_fixed_input when use_input_h = true. Acts as source or sink depending on the adjacent flow direction. medium_data must be a refrigerant medium.
Usage
HVACComponents.Components.Sources.Boundary_ph(medium_data, p_fixed, h_fixed)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
nPorts | Number of FluidPorts exposed (all share the same boundary state) | – | 1 |
use_input_p | If true, take pressure from the p_fixed_input RealInput; otherwise use p_fixed | – | false |
use_input_h | If true, take specific enthalpy from the h_fixed_input RealInput; otherwise use h_fixed | – | false |
medium_data | Refrigerant medium properties | – | |
p_fixed | Constant boundary pressure [Pa] (ignored when use_input_p = true) | Pa | |
h_fixed | Constant boundary specific enthalpy [J/kg] (ignored when use_input_h = true) | J/kg |
Connectors
ports- (FluidPort)p_fixed_input- This connector represents a real signal as an input to a component (RealInput)h_fixed_input- This connector represents a real signal as an input to a component (RealInput)
Variables
| Name | Description | Units |
|---|---|---|
p | Active boundary pressure [Pa] (either p_fixed or p_fixed_input) | Pa |
h | Active boundary specific enthalpy [J/kg] (either h_fixed or h_fixed_input) | J/kg |