modelPartialDynamicHeaterWithLosses

Partial heater model incl dynamics and environmental losses

Extends from IDEAS.Fluid.Interfaces.TwoPortFlowResistanceParameters (Parameters for flow resistance for models with two ports), IDEAS.Fluid.Interfaces.LumpedVolumeDeclarations (Declarations for lumped volumes).

Information

Description

This is a partial model from which most heaters (boilers, heat pumps) will extend. This model is dynamic (there is a water content in the heater and a dry mass lumped to it) and it has thermal losses to the environment. To complete this model and turn it into a heater, a heatSource has to be added, specifying how much heat is injected in the heatedFluid pipe, at which efficiency, if there is a maximum power, etc. HeatSource models are grouped in IDEAS.Thermal.Components.Production.BaseClasses.

The set temperature of the model is passed as a realInput.The model has a realOutput PEl for the electricity consumption.

See the extensions of this model for more details.

Assumptions and limitations

  1. the temperature of the dry mass is identical as the outlet temperature of the heater
  2. no pressure drop

Model use

Depending on the extended model, different parameters will have to be set. Common to all these extensions are the following:

  1. the environmental heat losses are specified by a time constant. Based on the water content, dry capacity and this time constant, the UA value of the heat transfer to the environment will be set
  2. set the heaterType (useful in post-processing)
  3. connect the set temperature to the TSet realInput connector
  4. connect the flowPorts (flowPort_b is the outlet)
  5. if heat losses to environment are to be considered, connect heatPort to the environment. If this port is not connected, the dry capacity and water content will still make this a dynamic model, but without heat losses to environment,. IN that case, the time constant is not used.

Validation

This partial model is based on physical principles and is not validated. Extensions may be validated.

Examples

See the extensions, like the IdealHeater, the Boiler or air-water heat pump

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.PowerQNomNominal power
Modelica.Units.SI.TimetauHeatLoss7200Time constant of environmental heat losses
Modelica.Units.SI.MassmWater5Mass of water in the condensor
Modelica.Units.SI.HeatCapacitycDry4800Capacity of dry material lumped to condensor
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate
Modelica.Units.SI.ThermalConductanceUALossmWater*vol.mSenFac/tauHeatLossThermal conductance, computed based on time constant and thermal mass
Flow resistance
BooleancomputeFlowResistance (from TwoPortFlowResistanceParameters)true=true, compute flow resistance. Set to false to assume no friction
Booleanfrom_dp (from TwoPortFlowResistanceParameters)false= true, use m_flow = f(dp) else dp = f(m_flow)
BooleanlinearizeFlowResistance (from TwoPortFlowResistanceParameters)false= true, use linear relation between m_flow and dp for any flow rate
RealdeltaM (from TwoPortFlowResistanceParameters)0.1Fraction of nominal flow rate where flow transitions to laminar
BooleandynamicBalancetrueSet to true to use a dynamic balance, which often leads to smaller systems of equations
BooleanhomotopyInitializationtrue= true, use homotopy method
BooleanallowFlowReversaltrue= false to simplify equations, assuming, but not enforcing, no flow reversal. Used only if model has two ports.
Nominal condition
Modelica.Units.SI.PressureDifferencedp_nominal (from TwoPortFlowResistanceParameters)Pressure difference
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsenergyDynamics (from LumpedVolumeDeclarations)Modelica.Fluid.Types.Dynamics.DynamicFreeInitialType of energy balance: dynamic (3 initialization options) or steady state
Modelica.Fluid.Types.DynamicssubstanceDynamics (from LumpedVolumeDeclarations)energyDynamicsType of independent mass fraction balance: dynamic (3 initialization options) or steady state
Modelica.Fluid.Types.DynamicstraceDynamics (from LumpedVolumeDeclarations)energyDynamicsType of trace substance balance: dynamic (3 initialization options) or steady state
Advanced › Dynamics
Modelica.Fluid.Types.DynamicsmassDynamics (from LumpedVolumeDeclarations)energyDynamicsType of mass balance: dynamic (3 initialization options) or steady state, must be steady state if energyDynamics is steady state
Initialization
Medium.AbsolutePressurep_start (from LumpedVolumeDeclarations)Medium.p_defaultStart value of pressure
Medium.TemperatureT_start (from LumpedVolumeDeclarations)Medium.T_defaultStart value of temperature
Medium.MassFraction[Medium.nX]X_start (from LumpedVolumeDeclarations)Medium.X_defaultStart value of mass fractions m_i/m
Medium.ExtraProperty[Medium.nC]C_start (from LumpedVolumeDeclarations)fill(0, Medium.nC)Start value of trace substances
Medium.ExtraProperty[Medium.nC]C_nominal (from LumpedVolumeDeclarations)fill(1E-2, Medium.nC)Nominal value of trace substances. (Set to typical order of magnitude.)
Dynamics
RealmSenFac (from LumpedVolumeDeclarations)1Factor for scaling the sensible thermal mass of the volume

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputTSetTemperature setpoint
Modelica.Blocks.Interfaces.RealOutputPElElectrical consumption
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortheatPort for thermal losses to environment
Modelica.Fluid.Interfaces.FluidPort_aport_aFluid inlet
Modelica.Fluid.Interfaces.FluidPort_bport_bFluid outlet

Revisions

  • February 4, 2025, by Jelger Jansen:
    Added Modelica.Units. to one or multiple parameter(s) due to the removal of import in IDEAS/package.mo. See #1415 .
  • June 5, 2018 by Filip Jorissen:
    Cleaned up implementation for #821.
  • March, 2014, by Filip Jorissen:
    Annex60 compatibility