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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 1 | Number of identical volumes |
| Modelica.Units.SI.Mass | mass | 100 | mass of each layer |
| Initialisation | |||
| Modelica.Units.SI.Temperature | T_start | 323.15 | Start reference temperature of medium |
| Modelica.Units.SI.Temperature | T_ref_start | 273.15 | Start reference temperature |
| Modelica.Units.SI.Energy | exergyContent_start | 1e+05 | Start exergy content |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | T_ref | Reference temperature for exergy calculations in K | |
| Modelica.Blocks.Interfaces.RealInput | p_ref | Reference pressure | |
| Modelica.Blocks.Interfaces.RealOutput | exergyChangeRate | Rate of change of the exergy content of the considered storage | |
| Modelica.Blocks.Interfaces.RealInput[n] | T | Actual temperature | |
| Modelica.Blocks.Interfaces.RealInput | p | Actual pressure | |
| Modelica.Blocks.Interfaces.RealOutput | exergyContent | Exergy content of the considered storage | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | X_ref | Reference composition | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | X | Actual composition |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Sensors.SpecificEntropy[n] | specificEntropy | Specific entropy of the medium used in exergy calculations | |
| Modelica.Fluid.Sensors.SpecificEnthalpy[n] | specificEnthalpy | Specific enthalpy of the medium used in exergy calculations | |
| Modelica.Fluid.Sensors.SpecificEnthalpy[n] | specificEnthalpyRef | Specific enthalpy of the reference environment | |
| Modelica.Fluid.Sensors.SpecificEntropy[n] | specificEntropyRef | Specific enthalpy of the reference environment | |
| Modelica.Fluid.Sources.Boundary_pT[n] | referenceEnvironment | The reference environment used for exergy calculations | |
| Modelica.Fluid.Sources.Boundary_pT[n] | boundary | Used for calculating the thermodynamic states of the considered medium | |
| Modelica.Blocks.Math.Sum | enthalpySum | Sum up the enthalpy differences for all layers | |
| Modelica.Blocks.Math.Gain | multiplyMassEnthalpy | Multiply mass and specific enthalpy | |
| Modelica.Blocks.Math.Add[n] | add | Difference between actual and reference enthalpy | |
| Modelica.Blocks.Math.Add[n] | add1 | Difference between actual and reference entropy | |
| Modelica.Blocks.Math.Sum | entropySum | Sum up the entropy differences for all layers | |
| Modelica.Blocks.Math.Add | differenceExergyContent | Difference between enthalpy and product of reference temperature and entropy | |
| Modelica.Blocks.Continuous.Derivative | derivative | Derivative to calculate the rate of change of the exergy content of the storage | |
| Modelica.Blocks.Math.Product | productTemperatureEntropy | Product of reference temperature and entropy difference | |
| Modelica.Blocks.Math.Gain | multiplyMassEntropy | Multiply mass and specific entropy |
Contents
| Name | Description |
|---|---|
| Medium in the sensor |