Skip to content
LIBRARY
Components.Sources.Boundary_ph.md

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:

NameDescriptionUnitsDefault value
nPortsNumber of FluidPorts exposed (all share the same boundary state)1
use_input_pIf true, take pressure from the p_fixed_input RealInput; otherwise use p_fixedfalse
use_input_hIf true, take specific enthalpy from the h_fixed_input RealInput; otherwise use h_fixedfalse
medium_dataRefrigerant medium properties
p_fixedConstant boundary pressure [Pa] (ignored when use_input_p = true)Pa
h_fixedConstant 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

NameDescriptionUnits
pActive boundary pressure [Pa] (either p_fixed or p_fixed_input)Pa
hActive boundary specific enthalpy [J/kg] (either h_fixed or h_fixed_input)J/kg