modelHeaterCooler_u

Model that tests a heat exchanger model with reverse flow

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Model that tests the basic class that is used for the heater models. It adds and removes heat for forward and reverse flow. The top and bottom models should give similar results, although the sign of the temperature difference over the components differ because of the reverse flow. The model computes differences in results that are expected to be close to each other after the initial transients decayed. All temperature sensors are configured as steady-state sensors to avoid differences in temperature due to the dynamic response of the sensor.

Components

TypeNameDefaultDescription
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea1Heater and cooler
Modelica.Blocks.Sources.ConstantTDbDrybulb temperature
Annex60.Fluid.Sources.Boundary_pTsou_1
Annex60.Fluid.FixedResistances.PressureDropres_11
Annex60.Fluid.FixedResistances.PressureDropres_12
Annex60.Fluid.Sources.Boundary_pTsin_1
Modelica.Blocks.Sources.ConstantPOut
Modelica.Blocks.Sources.RampuControl signal
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea2Heater and cooler
Modelica.Blocks.Math.Gaingain
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea3Heater and cooler
Annex60.Fluid.FixedResistances.PressureDropres_2
Annex60.Fluid.FixedResistances.PressureDropres_3
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea4Heater and cooler
Annex60.Fluid.FixedResistances.PressureDropres_4
Annex60.Fluid.MixingVolumes.MixingVolumemix1
Modelica.Blocks.Math.Addche1
Modelica.Blocks.Math.Addche2
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea5Heater and cooler
Annex60.Fluid.FixedResistances.PressureDropres_1
Annex60.Fluid.FixedResistances.PressureDropres_5
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea6Heater and cooler
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea7Heater and cooler
Annex60.Fluid.FixedResistances.PressureDropres_6
Annex60.Fluid.FixedResistances.PressureDropres_7
Annex60.Fluid.HeatExchangers.HeaterCooler_uhea8Heater and cooler
Annex60.Fluid.FixedResistances.PressureDropres_8
Annex60.Fluid.MixingVolumes.MixingVolumemix2
Modelica.Blocks.Math.Addche9
Modelica.Blocks.Math.Addche10
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem2aTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem2bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem1aTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem1bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem3aTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem3bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem4aTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem4bTemperature sensor
Modelica.Blocks.Math.Addche3
Modelica.Blocks.Math.Addche4
Modelica.Blocks.Math.Addche5
Modelica.Blocks.Math.Addche6
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem6bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem6aTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem5bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem5aTemperature sensor
Modelica.Blocks.Math.Addche7
Modelica.Blocks.Math.Addche8
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem8bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem8aTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem7bTemperature sensor
Annex60.Fluid.Sensors.TemperatureTwoPortsenTem7aTemperature sensor

Contents

NameDescription
Medium

Revisions

  • November 2, 2016, by Michael Wetter:
    Changed assertions to blocks that compute the difference, and added the difference to the regression results.
    This is for issue 564.
  • May 30, 2014, by Michael Wetter:
    Changed initialization of mass dynamics to avoid overspecified system of equations if the medium model is incompressible.
  • January 24, 2013, by Michael Wetter:
    Increased parameter startTime of the assert block and set initial conditions to Modelica.Fluid.Types.Dynamics.FixedInitial.
  • July 11, 2011, by Michael Wetter:
    Changed model to sensors with two fluid ports. Moved model to Annex60.Fluid.Interfaces.Examples.
  • April 17, 2008, by Michael Wetter:
    First implementation.