modelHeaterCooler_u

Model that tests a heat exchanger model with reverse flow

Extends from Modelica.Icons.Example.

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