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
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea1Heater and cooler
Modelica.Blocks.Sources.ConstantTDbDrybulb temperature
AixLib.Fluid.Sources.Boundary_pTsou_1
AixLib.Fluid.FixedResistances.PressureDropres_11
AixLib.Fluid.FixedResistances.PressureDropres_12
AixLib.Fluid.Sources.Boundary_pTsin_1
Modelica.Blocks.Sources.ConstantPOut
Modelica.Blocks.Sources.RampuControl signal
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea2Heater and cooler
Modelica.Blocks.Math.Gaingain
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea3Heater and cooler
AixLib.Fluid.FixedResistances.PressureDropres_2
AixLib.Fluid.FixedResistances.PressureDropres_3
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea4Heater and cooler
AixLib.Fluid.FixedResistances.PressureDropres_4
AixLib.Fluid.MixingVolumes.MixingVolumemix1
Modelica.Blocks.Math.Addche1
Modelica.Blocks.Math.Addche2
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea5Heater and cooler
AixLib.Fluid.FixedResistances.PressureDropres_1
AixLib.Fluid.FixedResistances.PressureDropres_5
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea6Heater and cooler
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea7Heater and cooler
AixLib.Fluid.FixedResistances.PressureDropres_6
AixLib.Fluid.FixedResistances.PressureDropres_7
AixLib.Fluid.HeatExchangers.HeaterCooler_uhea8Heater and cooler
AixLib.Fluid.FixedResistances.PressureDropres_8
AixLib.Fluid.MixingVolumes.MixingVolumemix2
Modelica.Blocks.Math.Addche9
Modelica.Blocks.Math.Addche10
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem2aTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem2bTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem1aTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem1bTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem3aTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem3bTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem4aTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem4bTemperature sensor
Modelica.Blocks.Math.Addche3
Modelica.Blocks.Math.Addche4
Modelica.Blocks.Math.Addche5
Modelica.Blocks.Math.Addche6
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem6bTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem6aTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem5bTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem5aTemperature sensor
Modelica.Blocks.Math.Addche7
Modelica.Blocks.Math.Addche8
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem8bTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem8aTemperature sensor
AixLib.Fluid.Sensors.TemperatureTwoPortsenTem7bTemperature sensor
AixLib.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 AixLib.Fluid.Interfaces.Examples.
  • April 17, 2008, by Michael Wetter:
    First implementation.