modelHeatMeter

Measures thermal energy provided between supply and return pipes

Extends from BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Information

This model measures thermal energy provided between a supply and return pipe. It measures the capacity flow rate of the heat transfer fluid and the change in its temperature compared to an external temperature measurement that is input into the port TExt. The sensor does not influence the fluid.

The rate of heat flow is calculated as Q̇ = ṁ cp (T - TExt).

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Timetau (from PartialDynamicFlowSensor)1Time constant at nominal flow rate (use tau=0 for steady-state sensor, but see user guide for potential problems)
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Nominal condition
Modelica.Units.SI.MassFlowRatem_flow_nominal (from PartialFlowSensor)Nominal mass flow rate, used for regularization near zero flow
Advanced
Modelica.Units.SI.MassFlowRatem_flow_small (from PartialFlowSensor)1E-4*m_flow_nominalFor bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required)
Initialization
Modelica.Blocks.Types.InitinitType (from PartialDynamicFlowSensor)Modelica.Blocks.Types.Init.InitialStateType of initialization (InitialState and InitialOutput are identical)
Modelica.Units.SI.TemperatureT_startMedium.T_defaultInitial or guess value of temperature

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.RealInputTExtExternal temperature measurement to calculate temperature difference
Modelica.Blocks.Interfaces.RealOutputQ_flowHeat flow rate

Components

TypeNameDefaultDescription
Medium.TemperatureTTemperature of the passing fluid

Revisions

  • February 1, 2024, by Michael Wetter:
    Revised implementation.
    This is for IBPSA, #1831.
  • February 1, 2024, by Jan Gall:
    First implementation.
    This is for IBPSA, #1831.