Skip to content

Controls

Controllers of the closed-loop model: the controls of trano's Buildings models without events (smooth limits and set point changes, hysteresis as fast bistable states, anti-windup PI). The width of every smooth transition and the switching time of every hysteresis are parameters (dU, dY, dMax, dT, dtSet, tau), at values that reproduce the switching controllers by default; wider transitions and slower switches give a controller that collocation and gradient-based calibration can follow

FastSmoothBuildings.Controls, package (source)

Class Description
smoothMaxN Smooth maximum of a vector
Hysteresis y goes to 1 when u rises above uHigh and back to 0 when u falls below uLow (CDL Hysteresis), as a bistable state switching within tau
PI PI controller with limits and anti-windup (Modelica LimPID: back-calculation with Ni), its integral relaxed to the reset value while disabled
PartialEmissionControl Emission control of a zone (trano EmissionControl): set point of its day schedule, output y to the valve or the ideal emitter
EmissionP Variant PController: P controller (IDEAS LimPID) between 0 and 1
EmissionPI Variant default: PI heating loop of Buildings G36 ControlLoops (k = 0.1, Ti = 900 s)
EmissionOnOff Variant onoff: on below the set point minus half the band, off above it plus half the band
EmissionMonitored Variant MonitoredSetpoint: P controller (IDEAS LimPID) between 0 and 1 towards a set point read from external data
CollectorControl Collector control of a pump (trano CollectorControl): on when a valve opens beyond 0.5, off when all are below 0.01, the speed from a P controller holding the head at dp_nominal
ThreeWayValveControl Three-way valve control (trano ThreeWayValveControl): P controller on the supply temperature measured downstream (filtered by tauSen)
BoilerDemand Demand of a production (trano BoilerControl, variant simple): on when a valve of its circuits opens beyond 0.5, off when all are below 0.01
BoilerTemperatureControl Firing of a boiler without storage (trano Buildings boiler): P controller (k) on the boiler temperature, while there is demand
HeatPumpControl Control of trano's air-to-water heat pump (Buildings model): heating curve, heating season, buffer charged between TSupSet - dTHys/2 and TSupSet + dTHys/2, compressor PI on the condenser outlet towards TSupSet + dTHys (minimum speed yComMin); the minimum on and off times of the safety control are not modelled
Validation Validation models of the package

Controllers of the closed-loop model, after the controls of trano's Buildings models, without events: smooth limits and set point changes, hysteresis as fast bistable states, anti-windup PI controllers. The width of every smooth transition and the switching time of every hysteresis are parameters (see Smoothing).