modelBoundary_ph

Boundary with prescribed pressure, specific enthalpy, composition and trace substances

Extends from Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).

Information

Defines prescribed values for boundary conditions:

  • Prescribed boundary pressure.
  • Prescribed boundary temperature.
  • Boundary composition (only for multi-substance or trace-substance flow).

If use_p_in is false (default option), the p parameter is used as boundary pressure, and the p_in input connector is disabled; if use_p_in is true, then the p parameter is ignored, and the value provided by the input connector is used instead.

The same thing goes for the specific enthalpy and composition

Note, that boundary temperature, mass fractions and trace substances have only an effect if the mass flow is from the boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary pressure, do not have an effect.

Parameters

TypeNameDefaultDescription
IntegernPorts (from PartialSource)0Number of ports
Booleanuse_p_infalseGet the pressure from the input connector
Booleanuse_h_infalseGet the specific enthalpy from the input connector
Booleanuse_X_infalseGet the composition from the input connector
Booleanuse_C_infalseGet the trace substances from the input connector
Medium.AbsolutePressurepMedium.p_defaultFixed value of pressure
Medium.SpecificEnthalpyhMedium.h_defaultFixed value of specific enthalpy
Medium.MassFraction[Medium.nX]XMedium.X_defaultFixed value of composition
Medium.ExtraProperty[Medium.nC]CMedium.C_defaultFixed values of trace substances

Connectors

TypeNameDefaultDescription
Interfaces.FluidPorts_b[nPorts]ports (from PartialSource)
Modelica.Blocks.Interfaces.RealInputp_inPrescribed boundary pressure
Modelica.Blocks.Interfaces.RealInputh_inPrescribed boundary specific enthalpy
Modelica.Blocks.Interfaces.RealInput[Medium.nX]X_inPrescribed boundary composition
Modelica.Blocks.Interfaces.RealInput[Medium.nC]C_inPrescribed boundary trace substances

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialSource)Medium in the source