modelCreateState

Create state signal as output

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.

Information

Create a Thermodynamic state signal from T,p,Xi.

Parameters

TypeNameDefaultDescription
BooleandisplayPdisplayPressure and not PFromInput
BooleandisplayTdisplayTemperature and not TFromInput and not setEnthalpy
StringdisplayPos1if displayP then "p = %p_par" elseif displayT then "T = %T_par" else ""
StringdisplayPos2if displayP and displayT then "T = %T_par" else ""
Pressure
BooleanPFromInputfalse= true, if pressure input connector is enabled
Medium.AbsolutePressurep_parMedium.p_defaultPressure set value
Temperature
BooleanTFromInputfalse= true, if temperature input connector is enabled
Medium.TemperatureT_parMedium.T_defaultTemperature set value
Mass fractions
BooleanXiFromInputfalse= true, if mass fractions input connector is enabled
Medium.MassFraction[Medium.nXi]Xi_parMedium.X_default[1:Medium.nXi]Mass fraction set value
Specific enthalpy
BooleansetEnthalpyfalse= true to set specific enthalpy, (= false to set temperature)
BooleanhFromInputfalse= true, if specific enthalpy input connector is enabled
Medium.SpecificEnthalpyh0_parMedium.h_defaultSpecific enthalpy set value
Advanced
Utilities.Units.InertanceLdropOfCommons.LInertance
Layout › Display parameters
BooleandisplayPressuretrue= true to display the pressure set value p_par
BooleandisplayTemperaturetrue= true to display the temperature set value T_par

Components

TypeNameDefaultDescription
Interfaces.StateOutputy
Modelica.Blocks.Interfaces.RealInputp_inpInput for pressure [Pa]
Modelica.Blocks.Interfaces.RealInputT_inpInput for Temperature [K]
Modelica.Blocks.Interfaces.RealInputh0_varEnthalpy input connector [J/kg]
Modelica.Blocks.Interfaces.RealInput[Medium.nXi]Xi_inpVector input for Mass fraction [kg/kg]

Contents

NameDescription
MediumMedium model