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
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a (from PartialTwoPort) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialTwoPort) | Fluid connector b (positive design flow direction is from port_a to port_b) | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | X_ref | Reference composition | |
| Modelica.Blocks.Interfaces.RealInput | T_ref | Reference temperature | |
| Modelica.Blocks.Interfaces.RealInput | p_ref | Reference pressure | |
| Modelica.Blocks.Interfaces.RealOutput | exergyFlow | Exergy content of the medium flow |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Sources.Boundary_pT | referenceEnvironment | The reference environment used for exergy calculations | |
| Modelica.Fluid.Sensors.MassFlowRate | massFlowRate | Mass flow rate of the medium flow used in exergy calculations | |
| Modelica.Fluid.Sensors.SpecificEntropy | specificEntropy | Specific entropy of the medium flow used in exergy calculations | |
| Modelica.Fluid.Sensors.SpecificEnthalpy | specificEnthalpy | Specific enthalpy of the medium flow used in exergy calculations | |
| Modelica.Fluid.Sensors.SpecificEnthalpy | specificEnthalpyRef | Specific enthalpy of the reference environment | |
| Modelica.Fluid.Sensors.SpecificEntropy | specificEntropy_ref | Specific entropy of the reference environment | |
| Modelica.Blocks.Math.Add | enthalpyDifference | Difference between enthalpy content of medium flow and reference environment | |
| Modelica.Blocks.Math.Add | entropyDifference | Difference between entropy content of medium flow and reference environment | |
| Modelica.Blocks.Math.Product | productWithReferenceTemperature | Calculate the product of reference temperature and entropy | |
| Modelica.Blocks.Math.Add | specificExergy | Specific exergy as difference of enthalpy and product of reference temperature and entropy | |
| Modelica.Blocks.Math.Product | exergyFlowRate | Exergy flow rate as product of specific exergy and mass flow rate |