modelExergyMeters

Extends from Modelica.Icons.Example.

Information

Overview

This model shows the usage of all three ExergyMeters, namely

- enthalpy flow: AixLib.Utilities.Sensors.ExergyMeter.FlowExergyMeter

- heat flow: AixLib.Utilities.Sensors.ExergyMeter.HeatExergyMeter

- stored energy: AixLib.Utilities.Sensors.ExergyMeter.StoredExergyMeter

The system is a simplified energy supply system. The supplied heat flow rate matches the extracted heat flow rate. Due to the irreversibilities, especially in the storage, the exergy output is smaller than the exergy input.

Two different exergy balances can be compared. One is calculated using the enthalpy flows. The other is calculated using the heat flow rates. Due to the different system boundaries, the exergy destructions is a little different, as the following figure shows.

Result of exergy meter example

  • by Marc Baranski and Roozbeh Sangi:
    implemented

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureT_start323.15Start reference temperature of medium
Integern10Number of layers
Modelica.Units.SI.Massmass1000Mass of one layer

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.SinepulseSine wave to vary heat generation and demand
AixLib.Utilities.Sensors.ExergyMeter.StoredExergyMeterexergyStorageMeterMediumOutputs the exergy content and rate of change of the considered storage
Modelica.Blocks.Sources.ConstantT_refReference temperature
Modelica.Blocks.Sources.Constantp_refReference pressure
Modelica.Blocks.Sources.Constant[1]X_refReference composition
Modelica.Fluid.SystemsystemBasic parameters
AixLib.Utilities.Sensors.ExergyMeter.HeatExergyMeterexHeatSecExergy content of the heat flux on secondary side
AixLib.Fluid.Movers.FlowControlled_m_flowpumpPrim
AixLib.Fluid.Storage.StorageDetailedbufferStorageHeatingcoilsStorage tank
AixLib.Fluid.FixedResistances.PressureDroppipePrimMain resistance in primary circuit
AixLib.Utilities.Sensors.ExergyMeter.FlowExergyMeterexPrimInExergy content of medium flow entering the storage on primary side
AixLib.Utilities.Sensors.ExergyMeter.FlowExergyMeterexPrimOutExergy content of medium flow exiting the storage on primary side
Modelica.Fluid.Vessels.ClosedVolumeheaterVolume to heat up the medium
AixLib.Fluid.Movers.FlowControlled_m_flowpumpSecPump in secondary circuit
AixLib.Fluid.FixedResistances.PressureDroppipeSecMain resistance in secondary circuit
Modelica.Fluid.Vessels.ClosedVolumeconsumerVolume to cool down the medium
AixLib.Utilities.Sensors.ExergyMeter.FlowExergyMeterexSecOutExergy content of medium flow entering the storage on secondary side
AixLib.Utilities.Sensors.ExergyMeter.FlowExergyMeterexSecInExergy content of medium flow exiting the storage on secondary side
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowconsumerHeatFlow
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowheaterHeatFlow
Modelica.Blocks.Math.GaingainNegative sign to switch the direction of the heat flux
AixLib.Utilities.Sensors.ExergyMeter.HeatExergyMeterexHeatPrimExergy content of the heat flux on primary side
Modelica.Blocks.Sources.RealExpression[n]storageTemperaturesOutputs the temperatures of the single storage layers
Modelica.Blocks.Sources.ConstantpumpMassFlow
AixLib.Fluid.Sources.Boundary_pTexpansionVesselSecExpansion vessel in secondary circuit
AixLib.Fluid.Sources.Boundary_pTexpansionVesselPrimExpansion vessel in primary circuit
Modelica.Blocks.Math.SumcalcExergyDestructionLoss_1Calculate the sum of exergy destruction and loss, calculated from enthalpy flows
Modelica.Blocks.Math.SumcalcExergyDestructionLoss_2Calculate the sum of exergy destruction and loss, calculated from heat flows
Modelica.Blocks.Math.Gaingain1Negative sign to switch the direction of the exergy flow
AixLib.Utilities.Sensors.ExergyMeter.StoredExergyMeterexergyStorageMeterConsumerOutputs the exergy content and rate of change of the consumer volume
AixLib.Utilities.Sensors.ExergyMeter.StoredExergyMeterexergyStorageMeterHeaterOutputs the exergy content and rate of change of the heater volume
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorheaterTemperatureMeasure the temperature in the heater volume
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorconsumerTemperatureMeasure the temperature in the consumer volume

Contents

NameDescription
MediumMedium in the sensor