modelFlowExergyMeter

Extends from AixLib.Fluid.Interfaces.PartialTwoPort (Partial component with two ports), Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Information

Overview

The model calculates the exergy content of a medium flow consisting of multiple substances. The reference environment is variable and 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 sensor is ideal, i.e., it does not influence the fluid.

  • by Marc Baranski and Roozbeh Sangi:
    implemented

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)
Modelica.Blocks.Interfaces.RealInput[Medium.nX]X_refReference composition
Modelica.Blocks.Interfaces.RealInputT_refReference temperature
Modelica.Blocks.Interfaces.RealInputp_refReference pressure
Modelica.Blocks.Interfaces.RealOutputexergyFlowExergy content of the medium flow

Components

TypeNameDefaultDescription
Modelica.Fluid.Sources.Boundary_pTreferenceEnvironmentThe reference environment used for exergy calculations
Modelica.Fluid.Sensors.MassFlowRatemassFlowRateMass flow rate of the medium flow used in exergy calculations
Modelica.Fluid.Sensors.SpecificEntropyspecificEntropySpecific entropy of the medium flow used in exergy calculations
Modelica.Fluid.Sensors.SpecificEnthalpyspecificEnthalpySpecific enthalpy of the medium flow used in exergy calculations
Modelica.Fluid.Sensors.SpecificEnthalpyspecificEnthalpyRefSpecific enthalpy of the reference environment
Modelica.Fluid.Sensors.SpecificEntropyspecificEntropy_refSpecific entropy of the reference environment
Modelica.Blocks.Math.AddenthalpyDifferenceDifference between enthalpy content of medium flow and reference environment
Modelica.Blocks.Math.AddentropyDifferenceDifference between entropy content of medium flow and reference environment
Modelica.Blocks.Math.ProductproductWithReferenceTemperatureCalculate the product of reference temperature and entropy
Modelica.Blocks.Math.AddspecificExergySpecific exergy as difference of enthalpy and product of reference temperature and entropy
Modelica.Blocks.Math.ProductexergyFlowRateExergy flow rate as product of specific exergy and mass flow rate