modelSensibleEnthalpyFlowRate
Extends from BuildingSystems.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor, BuildingSystems.Fluid.BaseClasses.IndexMassFraction, Modelica.Icons.RoundSensor.
Information
This model outputs the sensible enthalphy flow rate of the medium in the flow between its fluid ports. In particular, if the total enthalpy flow rate is
Ḣtot = Ḣsen + Ḣlat,
where Ḣsen = ṁ (1-Xw) cp,air, then this sensor outputs Ḣ = Ḣsen.
If the parameter tau is non-zero, then the measured
specific sensible enthalpy hout that is used to
compute the sensible enthalpy flow rate
Ḣsen = ṁ hout
is computed using a first order differential equation.
See
BuildingSystems.Fluid.Sensors.UsersGuide for an explanation.
For a sensor that measures
Ḣtot, use
BuildingSystems.Fluid.Sensors.EnthalpyFlowRate.
For a sensor that measures
Ḣlat, use
BuildingSystems.Fluid.Sensors.LatentEnthalpyFlowRate.
The sensor is ideal, i.e., it does not influence the fluid.
The sensor can only be used with medium models that implement the function
enthalpyOfNonCondensingGas(T).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Initialization | |||
| Modelica.Units.SI.SpecificEnthalpy | h_out_start | Medium.enthalpyOfNonCondensingGas(T = Medium.T_default) | Initial or guess value of measured specific sensible enthalpy |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | H_flow | Sensible enthalpy flow rate, positive if from port_a to port_b |
Revisions
-
October 19, 2020, by Antoine Gautier:
Changed default value fortaufrom1to0.
This is for #1406. -
February 25, 2020, by Michael Wetter:
Changed icon to display its operating state.
This is for #1294. -
January 18, 2016 by Filip Jorissen:
Using parametertauInvsince this now exists in BuildingSystems.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor. This is for #372. -
September 10, 2013, by Michael Wetter:
Changed medium declaration in theextendsstatement toreplaceableto avoid a translation error in OpenModelica. -
August 31, 2013, by Michael Wetter:
Removed default valuetau=0as the base class already setstau=1. This change was made so that all sensors use the same default value. -
December 18, 2012, by Michael Wetter:
Moved computation ofi_wto new base class BuildingSystems.Fluid.BaseClasses.IndexWater. The value of this parameter is now assigned dynamically and does not require to be specified by the user. -
November 3, 2011, by Michael Wetter:
Movedder(h_out) := 0;from the initial algorithm section to the initial equation section as this assignment does not conform to the Modelica specification. -
August 10, 2011 by Michael Wetter:
Added parameteri_wand an assert statement to make sure it is set correctly. Without this change, Dymola cannot differentiate the model when reducing the index of the DAE. -
June 3, 2011 by Michael Wetter:
Revised implementation to add dynamics in such a way that the time constant increases as the mass flow rate tends to zero. This can improve the numerics. -
February 22, by Michael Wetter:
Improved code that searches for index of 'water' in the medium model. -
September 9, 2009 by Michael Wetter:
First implementation. Implementation is based on enthalpy sensor ofModelica.Fluid.