modelClosedLoop

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

System Configuration

This example demonstrates the implementation of a primary-only chiller plant with two identical chillers, two headed variable speed chilled water pumps, and two headed constant speed condenser water pumps. The system schematics is as shown below.

image

The model makes following assumptions:

  • The room supply air flow rate equals the nominal air flow rate mAir_flow_nominal.
  • The air flow returns to the cooling coil includes 70% of the return room air and 30% of the outdoor air.
  • The room air supply temperature setpoint is 18 °C.
  • The return room air temperature is 28 °C.
  • The room air supply temperature is controlled by a direct acting PID controller. It modulates the valve that controls the chilled water flow into the cooling coil.
  • The chilled water reset request is generated as below:
    1. If the air supply temperature is 3 °C higher than its setpoint by more than 2 minutes, it generates 3 requests.
    2. If the air supply temperature is 2 °C higher than its setpoint by more than 2 minutes, it generates 2 requests.
    3. If the output of the PID controller that controls the supply air temperature is greater than 0.95, it generates 1 request. When it becomes less than 0.85, it generates 0 request.
  • For the chiller plant request, if the output of the PID controller that controls the supply air temperature is greater than 0.95, it generates 1 request. When it becomes less than 0.1, it generates 0 request.

The chiller plant is controlled based on the ASHRAE Guideline 36, and implemented using the sequence Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.Controller.

Parameters

TypeNameDefaultDescription
Modelica.Media.Interfaces.Types.TemperatureTRet301.15Room return air temperature
Modelica.Units.SI.MassFlowRatemAir_flow_nominal10Nominal mass flow rate of air
Modelica.Units.SI.MassFlowRatemWater_flow_nominal6Nominal mass flow rate of water
Modelica.Units.SI.ThermalConductanceUA_nominal4748Total thermal conductance at nominal flow, from textbook

Connectors

TypeNameDefaultDescription
Buildings.BoundaryConditions.WeatherData.BusweaBusWeather data bus

Components

TypeNameDefaultDescription
Buildings.Examples.ChillerPlant.Guideline36.BaseClasses.Guideline36chiPlaChiller plant with controller
Buildings.Fluid.HeatExchangers.WetCoilEffectivenessNTUcooCoiAir handler unit cooling coil
Buildings.Fluid.Sources.Boundary_pTsinAirAir sink
Buildings.BoundaryConditions.WeatherData.ReaderTMY3weaDatWeather data reader
Buildings.Fluid.Actuators.Valves.TwoWayLinearcooCoiValCooling coil valve
Buildings.Fluid.FixedResistances.JunctionmixAirMix return air and outdoor air
Buildings.Fluid.Sources.MassFlowSource_ToutAirOutdoor air
Buildings.Fluid.Sources.MassFlowSource_TretAirReturn air
Buildings.Fluid.Sensors.TemperatureTwoPortsupAirTemSupply air temperature
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantairSupTemSetSupply air temperature setpoint
Buildings.Controls.OBC.CDL.Reals.SubtracttemDifDifference between supply air temperature and its setpoint
Buildings.Controls.OBC.CDL.Reals.HysteresishysHigher than setpoint by 3 degC
Buildings.Controls.OBC.CDL.Reals.Hysteresishys1Higher than setpoint by 2 degC
Buildings.Controls.OBC.CDL.Logical.TrueDelaytruDelCheck if the temperature has been higher than setpoint by sufficient time
Buildings.Controls.OBC.CDL.Logical.TrueDelaytruDel1Check if the temperature has been higher than setpoint by sufficient time
Buildings.Controls.OBC.CDL.Integers.SwitchchiWatResReqChilled water reset request
Buildings.Controls.OBC.CDL.Integers.Sources.ConstantconIntConstant three
Buildings.Controls.OBC.CDL.Integers.SwitchintSwi1Chilled water reset request
Buildings.Controls.OBC.CDL.Integers.Sources.ConstantconInt1Constant two
Buildings.Controls.OBC.CDL.Reals.PIDconPIDChilled water valve control
Buildings.Controls.OBC.CDL.Reals.GreaterThresholdgreThrSend one request when the input is greater than threshold and it is less than threshold minus hysteresis
Buildings.Controls.OBC.CDL.Integers.Sources.ConstantconInt2Constant one
Buildings.Controls.OBC.CDL.Integers.Sources.ConstantconInt3Constant zero
Buildings.Controls.OBC.CDL.Integers.SwitchintSwi2Chilled water reset request
Buildings.Fluid.Sources.Boundary_pTbouReference pressure
Buildings.Controls.OBC.CDL.Integers.SwitchchiPlaReqChiller plant request
Buildings.Controls.OBC.CDL.Reals.GreaterThresholdgreThr1Send one request when the input is greater than threshold and it is less than threshold minus hysteresis

Contents

NameDescription
MediumW
MediumA

Revisions

  • March 12, 2024, by Jianjun Hu:
    First implementation.