modelSource

Source (p,T,Xi) or (p,h,Xi)

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.

Information

Source of a Thermofluid Stream. The state can be given as fix values or as a real signal.

Before its inertance the source has an inertial pressure of 0 by definition.

considerInertance

For the parameter considerInertance, refer to Idealized.UsersGuide.InertanceNeglect.

Parameters

TypeNameDefaultDescription
BooleandisplayPdisplayPressure and not pressureFromInput
BooleandisplayTdisplayTemperature and not temperatureFromInput and not setEnthalpy
BooleandisplayHdisplayTemperature and not enthalpyFromInput and setEnthalpy
BooleandisplayXidisplayMassFractions and not xiFromInput
StringdisplayPos1if displayP then "p = %p0_par" elseif displayT then "T = %T0_par" elseif displayH then "h = %h0_par" elseif displayXi then "Xi = %Xi0_par" elseif displayInertance then "L = %L" else ""
StringdisplayPos2if displayP and displayT then "T = %T0_par" elseif displayP and displayH then "h = %h0_par" elseif displayXi and (displayP or displayT or displayH) then "Xi = %Xi0_par" elseif displayInertance and (displayP or displayT or displayH or displayXi) then "L = %L" else ""
StringdisplayPos3if displayXi and displayP and (displayT or displayH) then "Xi = %Xi0_par" elseif displayInertance and not displayPos2 == "L = %L" and not displayPos1 == "L = %L" then "L = %L" else ""
StringdisplayPos4if displayP and (displayT or displayH) and displayXi 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, if specific enthalpy is set, (= false to set temperature)
BooleanenthalpyFromInputfalse= true, if specific enthalpy input connector is enabled
Medium.SpecificEnthalpyh0_parMedium.h_defaultSpecific enthalpy set value
Advanced
BooleanconsiderInertancedropOfCommons.considerInertance=true, if transient momentum (inertance) term is considered; disable only for advanced use
Utilities.Units.InertanceLdropOfCommons.LInertance
Layout › Display parameters
BooleandisplayPressuretrue= true, if pressure p0_par is displayed
BooleandisplayTemperaturetrue= true, if temperature T0_par or specific enthalpy h0_par is displayed
BooleandisplayMassFractionsfalse= true, if mass fractions Xi0_par are 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 [J/kg]
Modelica.Blocks.Interfaces.RealInput[Medium.nXi]xi_varMass fractions connector [kg/kg]
Interfaces.Outletoutlet

Contents

NameDescription
MediumMedium model

Revisions

  • Mai 2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
    Added the considerInertance parameter, including conditional visual highlighting on the icon layer when it is set to false.