modelThermostaticMixingValve

A model for a thermostatic mixing valve

Information

This model implements a thermostatic mixing valve, which uses a PI feedback controller to mix hot and cold fluid to achieve a specified mixed water outlet temperature.

If the mixed water temperature cannot be provided within a tolerance of relTol, averaged over the whole simulation period, then an assertion warning will be written at the end of the simulation.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatemMix_flow_nominalNominal mixed water flow rate to fixture
Buildings.Controls.OBC.CDL.Types.SimpleControllercontrollerTypeBuildings.Controls.OBC.CDL.Types.SimpleController.PIType of controller
Control gains
Realk1Gain of controller
RealTi0.5Time constant of integrator block
RealTd0.1Time constant of derivative block
Advanced
RealrelTol0.005Relative tolerance on energy balance, if not met, a warning will be issued at end of simulation

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_hotPort for hot water supply
Modelica.Fluid.Interfaces.FluidPort_aport_colPort for domestic cold water supply
Modelica.Blocks.Interfaces.RealInputTMixSetTemperature setpoint of mixed water outlet
Modelica.Blocks.Interfaces.RealInputyMixSetMixed water fractional flow rate at TMixSet, as fraction of mMix_flow_nominal

Components

TypeNameDefaultDescription
Buildings.Fluid.Sensors.TemperatureTwoPortsenTHotHot water temperature
Buildings.Fluid.Sensors.TemperatureTwoPortsenTColCold water temperature
Buildings.Fluid.Sensors.TemperatureTwoPortsenTMixMixed water temperature
Buildings.Controls.OBC.CDL.Reals.PIDconPID
Buildings.Controls.OBC.CDL.Reals.DivideratEneRatio of actual over required energy (must be near 1 if load is satisfied)
Buildings.Fluid.FixedResistances.JunctionjunMixing of hot water and cold water

Contents

NameDescription
MediumWater media model
EnergyMeterprotectedBlock that outputs integrated energy, bounded away from zero

Revisions

  • December 7, 2023, by David Blum:
    Added junction.
  • October 17, 2023, by Michael Wetter:
    Revised implementation.
  • September 11, 2023 by David Blum:
    Updated for release.
  • June 16, 2022 by Dre Helmns:
    Initial Implementation.