modelBoundaryFore

Generic Boundary model (may act as source or sink)

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.

Information

A undirected boundary that can act as source and sink, depending on the rest of the system. The Boundary_fore has to be connected to the fore end of your model and therefore has a rear port.

At positive massflow the rear port acts as an inlet and therefore the boundary_fore is a sink.

Parameters

TypeNameDefaultDescription
BooleandisplayPdisplayPressure and not pressureFromInput
BooleandisplayTdisplayTemperature and not temperatureFromInput and not setEnthalpy
StringdisplayPos1if displayP then "p = %p0_par" elseif displayT then "T = %T0_par" elseif displayInertance then "L = %L" else ""
StringdisplayPos2if displayP and displayT then "T = %T0_par" elseif displayInertance and (displayP or displayT) then "L = %L" else ""
StringdisplayPos3if displayP and displayT and displayInertance then "L = %L" else ""
Pressure
BooleanpressureFromInputfalse= true, if pressure input connector is enabled
Medium.AbsolutePressurep0_parMedium.p_defaultPressure set value
Temperature
BooleantemperatureFromInputfalse= true, if temperature input connector is enabled
Medium.TemperatureT0_parMedium.T_defaultTemperature set value
Mass fractions
BooleanxiFromInputfalse= true, if mass fractions input connector is enabled
Medium.MassFraction[Medium.nXi]Xi0_parMedium.X_default[1:Medium.nXi]Mass fractions set value
Specific enthalpy
BooleansetEnthalpyfalse= true to set specific enthalpy, (= false to set temperature)
BooleanenthalpyFromInputfalse= true, if specific enthalpy input connector is enabled
Medium.SpecificEnthalpyh0_parMedium.h_defaultSpecific enthalpy set value
Advanced
Utilities.Units.InertanceLdropOfCommons.LInertance
SI.MassFlowRatem_flow_regdropOfCommons.m_flow_regRegularization threshold of mass flow rate
Layout › Display parameters
BooleandisplayPressuretrue= true, if pressure p0_par is displayed
BooleandisplayTemperaturetrue= true, if temperature T0_par is displayed
BooleandisplayInertancefalse= true, if inertance L is displayed

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputp0_varPressure input connector [Pa]
Modelica.Blocks.Interfaces.RealInputT0_varTemperature input connector [K]
Modelica.Blocks.Interfaces.RealInputh0_varEnthalpy input connector
Modelica.Blocks.Interfaces.RealInput[Medium.nXi]xi_varMass fraction connector [kg/kg]
Interfaces.Rearrear

Contents

NameDescription
MediumMedium model