modelSourceLiquid

Extends from Icons.Color.LiquidSource.

Information

Liquid source. The user can choose whether to prescribe the mass flow rate, the molar flow rate or the volume flow rate. Therefore the enumeration parameter flowOption has to be set to the desired option. The value entered for the parameter Flow therefore corresponds either to mass flow rate in kg/s, molar flow rate in mol/s or volume flow rate in m3/s.

By default the flow rate, the temperature and the molar composition are prescribed but not the pressure. If the pressure is also to be prescribed, the parameter p_fixed has to be set to true.

Parameters

TypeNameDefaultDescription
Booleanuse_x_infalsetrue if mole fraction variable is set by an input connector
IntegernSMediumLiquid.nSubstance
SI.TemperatureT300temperature
SI.MoleFraction[nS]x{0, 1, 0}mole fraction
BooleanuseT_Infalsetrue if temperature variable is set by an input connector
Booleanfixed_pressurefalsetrue if pressure variable is set by an input connector
SI.Pressurep_fixed1e5pressure
Advanced
SI.TemperatureT_refsystemTS.T_refreference temperature
Flow option
ThermalSeparation.Components.SourcesSinks.Enumerations.FlowOptionflowOptionEnumerations.FlowOption.FlowVdotdetermines which flow variable shall be specified
RealFlow1value of flow variable, for the applicable unit see flowOption
Booleanuse_Flowfalsetrue if flow variable is set by an input connector

Connectors

TypeNameDefaultDescription
ThermalSeparation.Interfaces.LiquidPortOutliquidPortOut
Modelica.Blocks.Interfaces.RealInputFlow_In
Modelica.Blocks.Interfaces.RealInputT_In
Modelica.Blocks.Interfaces.RealInput[nS]x_in

Components

TypeNameDefaultDescription
MediumLiquid.BasePropertiesmedium
ThermalSeparation.SystemTSsystemTS
Real[nS]c
SI.Pressurep
ThermalSeparation.Units.MolarEnthalpyh
SI.Densityrho
Real[nS]Xx_in_internal[:].*MediumLiquid.MMX[:]/medium.MM

Contents

NameDescription
MediumLiquidmedium to be used