blockMixingValveControl

Mixing valve controller

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

This model implements a generic controller for a three-way mixing valve. Three operating modes are supported:

  • Heating: the controller tracks a minimum supply temperature.
  • Cooling: the controller tracks a maximum supply temperature.
  • Change-over: the controller tracks either a minimum or a maximum supplied temperature depending on the actual value of the integer input modChaOve (1 for heating, 2 for cooling). The model instantiates only one PI block to limit the number of state variables in large models. Therefore the PI gain is independent from the change-over mode: the reverse action is modeled by taking the opposite value of the PI block output. Eventually the integral part is reset whenever the change-over mode is switched.

See Buildings.DHC.Loads.BaseClasses.Controls.Validation.MixingValveControl for a simulation with change-over.

Parameters

TypeNameDefaultDescription
Buildings.DHC.Loads.BaseClasses.Types.DistributionTypetypDisBuildings.DHC.Loads.BaseClasses.Types.DistributionType.HeatingWaterType of distribution system
Realk0.1Gain of controller
RealTi10Time constant of integrator block

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.IntegerInputmodChaOveOperating mode in change-over (1 for heating, 2 for cooling)
Buildings.Controls.OBC.CDL.Interfaces.RealInputTSupSetSupply temperature set point
Buildings.Controls.OBC.CDL.Interfaces.RealInputTSupMesSupply temperature (measured)
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyValValve control signal

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantzerZero constant
Buildings.Controls.OBC.CDL.Integers.GreaterEqualThresholdtoBooConversion to boolean (true if cooling mode)
Buildings.Controls.OBC.CDL.Reals.PIDWithResetresConTSupPI controller tracking supply temperature
Buildings.Controls.OBC.CDL.Reals.PIDconTSupPI controller tracking supply temperature
Buildings.Controls.OBC.CDL.Reals.MinnegParNegative part of control signal
Buildings.Controls.OBC.CDL.Reals.MaxposParPositive part of control signal
Buildings.Controls.OBC.CDL.Reals.MultiplyByParameteroppOpposite value
Buildings.Controls.OBC.CDL.Reals.SwitchswiLogical switch
Buildings.Controls.OBC.CDL.Logical.Sources.ConstantfixModFixed operating mode
Buildings.Controls.OBC.CDL.Integers.ChangechaEvaluate the integer input u to check if its value changes

Revisions

  • February 21, 2020, by Antoine Gautier:
    First implementation.