modelStoredExergyMeter

Extends from Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Information

The model calculates the exergy content and its rate of change of a stratefied storage i. e. with multiple layers) filled with a medium consisting of multiple substances. The reference environment is variable and is modeled using a boundary with temperature, pressure and composition as input. The medium model is replaceable. The physical enthalpy and entropy are determined using the respective sensors from MSL. The rate of change of the exergy content is calculated using the approximate derivative block from MSL.

  • by Marc Baranski and Roozbeh Sangi:
    implemented

Parameters

TypeNameDefaultDescription
Integern1Number of identical volumes
Modelica.Units.SI.Massmass100mass of each layer
Initialisation
Modelica.Units.SI.TemperatureT_start323.15Start reference temperature of medium
Modelica.Units.SI.TemperatureT_ref_start273.15Start reference temperature
Modelica.Units.SI.EnergyexergyContent_start1e+05Start exergy content

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputT_refReference temperature for exergy calculations in K
Modelica.Blocks.Interfaces.RealInputp_refReference pressure
Modelica.Blocks.Interfaces.RealOutputexergyChangeRateRate of change of the exergy content of the considered storage
Modelica.Blocks.Interfaces.RealInput[n]TActual temperature
Modelica.Blocks.Interfaces.RealInputpActual pressure
Modelica.Blocks.Interfaces.RealOutputexergyContentExergy content of the considered storage
Modelica.Blocks.Interfaces.RealInput[Medium.nX]X_refReference composition
Modelica.Blocks.Interfaces.RealInput[Medium.nX]XActual composition

Components

TypeNameDefaultDescription
Modelica.Fluid.Sensors.SpecificEntropy[n]specificEntropySpecific entropy of the medium used in exergy calculations
Modelica.Fluid.Sensors.SpecificEnthalpy[n]specificEnthalpySpecific enthalpy of the medium used in exergy calculations
Modelica.Fluid.Sensors.SpecificEnthalpy[n]specificEnthalpyRefSpecific enthalpy of the reference environment
Modelica.Fluid.Sensors.SpecificEntropy[n]specificEntropyRefSpecific enthalpy of the reference environment
Modelica.Fluid.Sources.Boundary_pT[n]referenceEnvironmentThe reference environment used for exergy calculations
Modelica.Fluid.Sources.Boundary_pT[n]boundaryUsed for calculating the thermodynamic states of the considered medium
Modelica.Blocks.Math.SumenthalpySumSum up the enthalpy differences for all layers
Modelica.Blocks.Math.GainmultiplyMassEnthalpyMultiply mass and specific enthalpy
Modelica.Blocks.Math.Add[n]addDifference between actual and reference enthalpy
Modelica.Blocks.Math.Add[n]add1Difference between actual and reference entropy
Modelica.Blocks.Math.SumentropySumSum up the entropy differences for all layers
Modelica.Blocks.Math.AdddifferenceExergyContentDifference between enthalpy and product of reference temperature and entropy
Modelica.Blocks.Continuous.DerivativederivativeDerivative to calculate the rate of change of the exergy content of the storage
Modelica.Blocks.Math.ProductproductTemperatureEntropyProduct of reference temperature and entropy difference
Modelica.Blocks.Math.GainmultiplyMassEntropyMultiply mass and specific entropy

Contents

NameDescription
MediumMedium in the sensor