Buildings.Applications.DataCenters.DXCooled.Examples

Collection of models that illustrate model use and test models

Information

This package contains examples for the use of models that can be found in Buildings.Applications.DataCenters.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Applications.DataCenters.DXCooled.Examples.DXCooledAirsideEconomizer DXCooledAirsideEconomizer Example that illustrates the use of Buildings.Fluid.HeatExchanger.DXCoil in a data center room

Buildings.Applications.DataCenters.DXCooled.Examples.DXCooledAirsideEconomizer Buildings.Applications.DataCenters.DXCooled.Examples.DXCooledAirsideEconomizer

Example that illustrates the use of Buildings.Fluid.HeatExchanger.DXCoil in a data center room

Buildings.Applications.DataCenters.DXCooled.Examples.DXCooledAirsideEconomizer

Information

This example illustrates how to use Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.VariableSpeed in a cooling system for data center rooms.

System description

A air-cooled direct expansion (DX) cooling system with an airside economizer is used for a data center room. For simplicity, the data center room has a constant cooling load. The DX cooling system includes a variable-speed compressor, a cooling coil and a variable speed fun. The airside economizer is located before DX package to pre-cool the mixed air.

Control logic

Cooling mode control

This system can run in three cooling modes: free cooling (FC) mode, partially mechanical cooling (PMC) mode and fully mechanical cooling (FMC) mode.In FC mode, only the airside economizer is commanded to run. The supply air temperature is maintained by adjusting the outdoor air damper. In PMC mode, the airside economizer and the DX cooling coil are commanded to run together. And in FMC mode, only the DX cooling coil is commanded to run. To avoid frequent switching, a deadband of 1 Kelvin and a waiting time of 120 s are used.

A demonstration on how to switch among these three cooling modes is shown in Buildings.Applications.DataCenters.DXCooled.Controls.Validation.CoolingMode.

Supply air temperature control

In FC mode, the supply air temperature is controlled by adjusting outdoor air damper. In PMC mode, the outdoor air damper is fully open, and the speed of compressor in the DX unit can be adjusted to maintain the supply air temperature. In FMC mode, the outdoor air damper is fully closed and the supply air temperature is maintained by manipulating the compressor speed. In this case, the supply air temperature setpoint is set as 18 °C.

Room temperature control

The room temperature is maintained at 24°C by adjusting the speed of the supply air fan.

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Applications.DataCenters.ChillerCooled.Examples.BaseClasses.PostProcess (Post-processing).

Parameters

TypeNameDefaultDescription
replaceable package MediumBuildings.Media.AirMedium model
TemperatureTASup_nominal286.15Nominal air temperature supplied to room [K]
TemperatureTRooSet298.15Nominal room air temperature [K]
TemperatureTAirSupSet291.13Nominal room air temperature [K]
HeatFlowRateQRooInt_flow500000Internal heat gains of the room [W]
HeatFlowRateQRooC_flow_nominal-2*QRooInt_flow[W]
MassFlowRatemA_flow_nominalQRooC_flow_nominal/1006/(TAS...Nominal air mass flow rate [kg/s]
HeatFlowRateQCoiC_flow_nominalQRooC_flow_nominalCooling load of coil [W]
RealminSpeFan0.2Minimum fan speed ratio required by variable speed fans
DXCoildatCoidatCoi(nSta=4, sta={Building...Coil data

Connectors

TypeNameDescription
replaceable package MediumMedium model
BusweaBusWeather data bus

Modelica definition

model DXCooledAirsideEconomizer "Example that illustrates the use of Buildings.Fluid.HeatExchanger.DXCoil in a data center room" extends Modelica.Icons.Example; extends Buildings.Applications.DataCenters.ChillerCooled.Examples.BaseClasses.PostProcess ( fulMecCooSig( y=if cooModCon.y == Integer(Buildings.Applications.DataCenters.Types.CoolingModes.FullMechanical) then 1 else 0), parMecCooSig( y=if cooModCon.y == Integer(Buildings.Applications.DataCenters.Types.CoolingModes.PartialMechanical) then 1 else 0), PHVAC(y=varSpeDX.P + fan.P), PIT(y=roo.QRoo_flow), freCooSig( y=if cooModCon.y == Integer(Buildings.Applications.DataCenters.Types.CoolingModes.FreeCooling) then 1 else 0)); replaceable package Medium = Buildings.Media.Air "Medium model"; // Air temperatures at design conditions parameter Modelica.Units.SI.Temperature TASup_nominal=286.15 "Nominal air temperature supplied to room"; parameter Modelica.Units.SI.Temperature TRooSet=298.15 "Nominal room air temperature"; parameter Modelica.Units.SI.Temperature TAirSupSet=291.13 "Nominal room air temperature"; ///////////////////////////////////////////////////////// // Cooling loads parameter Modelica.Units.SI.HeatFlowRate QRooInt_flow=500000 "Internal heat gains of the room"; parameter Modelica.Units.SI.HeatFlowRate QRooC_flow_nominal=-2*QRooInt_flow; //////////////////////////////////////////////////////////// // DX Coil parameter Modelica.Units.SI.MassFlowRate mA_flow_nominal=QRooC_flow_nominal/ 1006/(TASup_nominal - TRooSet) "Nominal air mass flow rate"; parameter Modelica.Units.SI.HeatFlowRate QCoiC_flow_nominal= QRooC_flow_nominal "Cooling load of coil"; parameter Real minSpeFan = 0.2 "Minimum fan speed ratio required by variable speed fans"; Buildings.Examples.ChillerPlant.BaseClasses.SimplifiedRoom roo( redeclare package Medium = Medium, rooLen=50, rooHei=3, rooWid=40, QRoo_flow=QRooInt_flow, m_flow_nominal=mA_flow_nominal, nPorts=2) "Simplified data center room"; Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.VariableSpeed varSpeDX( redeclare package Medium = Medium, dp_nominal=400, datCoi=datCoi, minSpeRat=0, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, show_T=true, T_start=303.15) "Variable speed DX coil"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( pAtmSou=Buildings.BoundaryConditions.Types.DataSource.Parameter, filNam=Modelica.Utilities.Files.loadResource("modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos")) "Weather data reader"; Buildings.BoundaryConditions.WeatherData.Bus weaBus "Weather data bus"; Buildings.Fluid.Movers.SpeedControlled_y fan( redeclare package Medium = Medium, energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState, addPowerToMedium=false, per(pressure(V_flow=mA_flow_nominal*{0,1,2}/1.2, dp=500*{2,1,0})), use_inputFilter=true) "Supply air fan"; Modelica.Blocks.Sources.Constant TRooAirSet(k=TRooSet) "Room air temperature setpoint"; Buildings.Fluid.Sensors.TemperatureTwoPort senTemSupAir( redeclare package Medium = Medium, m_flow_nominal=mA_flow_nominal) "Temperature sensor for supply air"; Modelica.Blocks.Sources.Constant SATSetPoi(k=TAirSupSet) "Supply air temperature set point"; parameter Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.DXCoil datCoi( nSta=4, sta={ Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.Stage( spe=900/60, nomVal= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.NominalValues( Q_flow_nominal=QCoiC_flow_nominal*(3/8), COP_nominal=3, SHR_nominal=0.8, TEvaIn_nominal=TRooSet, m_flow_nominal=mA_flow_nominal), perCur= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Examples.PerformanceCurves.Curve_I()), Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.Stage( spe=1200/60, nomVal= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.NominalValues( Q_flow_nominal=QCoiC_flow_nominal*(1/2), COP_nominal=3, SHR_nominal=0.8, TEvaIn_nominal=TRooSet, m_flow_nominal=mA_flow_nominal), perCur= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Examples.PerformanceCurves.Curve_I()), Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.Stage( spe=1800/60, nomVal= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.NominalValues( Q_flow_nominal=QCoiC_flow_nominal*(3/4), COP_nominal=3, SHR_nominal=0.8, TEvaIn_nominal=TRooSet, m_flow_nominal=mA_flow_nominal), perCur= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Examples.PerformanceCurves.Curve_II()), Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.Stage( spe=2400/60, nomVal= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Data.Generic.BaseClasses.NominalValues( Q_flow_nominal=QCoiC_flow_nominal, COP_nominal=3, SHR_nominal=0.8, TEvaIn_nominal=TRooSet, m_flow_nominal=mA_flow_nominal), perCur= Buildings.Fluid.HeatExchangers.DXCoils.AirCooled.Examples.PerformanceCurves.Curve_III())}) "Coil data"; Buildings.Fluid.Actuators.Dampers.MixingBox eco( redeclare package Medium = Medium, mOut_flow_nominal=mA_flow_nominal, mRec_flow_nominal=mA_flow_nominal, mExh_flow_nominal=mA_flow_nominal, use_inputFilter=false, dpDamExh_nominal=0.27, dpDamOut_nominal=0.27, dpDamRec_nominal=0.27, dpFixExh_nominal=20, dpFixOut_nominal=20, dpFixRec_nominal=20) "Airside economizer"; Buildings.Fluid.Sources.Outside out( redeclare package Medium = Medium, nPorts=2) "Boundary conditions for outside air"; Buildings.Applications.DataCenters.DXCooled.Controls.CoolingMode cooModCon( dT=1, tWai=120) "Cooling mode controller"; Buildings.Fluid.Actuators.Dampers.Exponential dam1( redeclare package Medium = Medium, m_flow_nominal=mA_flow_nominal, dpDamper_nominal=0.27) "Open only when free cooling mode is activated"; Buildings.Fluid.Actuators.Dampers.Exponential dam2( redeclare package Medium = Medium, m_flow_nominal=mA_flow_nominal, y_start=0, dpDamper_nominal=0.27) "Open when mechanical cooling is activated"; Buildings.Fluid.Sensors.TemperatureTwoPort senTemMixAir( redeclare package Medium = Medium, m_flow_nominal=mA_flow_nominal) "Temperature sensor for mixed air"; Buildings.Applications.DataCenters.DXCooled.Controls.AirsideEconomizer ecoCon( minOAFra=0.05, Ti=240, gai=0.5) "Economzier controller"; Modelica.Blocks.Sources.RealExpression freCoo( y=if cooModCon.y == Integer(Buildings.Applications.DataCenters.Types.CoolingModes.FreeCooling) then 1 else 0) "Set true if free cooling mode is on"; Modelica.Blocks.Math.Feedback feedback1 "Feedback signal"; Modelica.Blocks.Sources.Constant const(k=1) "Constant output with value 1"; Buildings.Controls.Continuous.LimPID fanSpe( Td=1, yMin=minSpeFan, Ti=240, k=0.5, reverseActing=false) "Fan speed controller"; Buildings.Applications.DataCenters.DXCooled.Controls.Compressor speCon( k=1, Ti=120) "Speed controller for DX units"; equation connect(weaDat.weaBus, weaBus); connect(fan.port_a, senTemSupAir.port_b); connect(senTemSupAir.port_a, varSpeDX.port_b); connect(weaBus, out.weaBus); connect(dam2.port_b, varSpeDX.port_a); connect(dam1.port_b, senTemSupAir.port_a); connect(SATSetPoi.y, cooModCon.TSupSet); connect(eco.port_Sup, senTemMixAir.port_a); connect(senTemMixAir.port_b, dam1.port_a); connect(senTemMixAir.port_b, dam2.port_a); connect(SATSetPoi.y, ecoCon.TMixAirSet); connect(senTemMixAir.T, ecoCon.TMixAirMea); connect(ecoCon.y, eco.y); connect(feedback1.y, dam2.y); connect(out.ports[1], eco.port_Out); connect(eco.port_Exh, out.ports[2]); connect(weaBus.TDryBul, cooModCon.TOutDryBul); connect(fan.port_b, roo.airPorts[1]); connect(eco.port_Ret, roo.airPorts[2]); connect(const.y, feedback1.u1); connect(cooModCon.y, ecoCon.cooMod); connect(TRooAirSet.y, fanSpe.u_s); connect(roo.TRooAir, fanSpe.u_m); connect(fanSpe.y, fan.y); connect(roo.TRooAir, cooModCon.TRet); connect(weaBus.TDryBul, varSpeDX.TConIn); connect(cooModCon.y, sigCha.u); connect(freCoo.y, dam1.y); connect(freCoo.y, feedback1.u2); connect(SATSetPoi.y, speCon.TMixAirSet); connect(senTemSupAir.T, speCon.TMixAirMea); connect(cooModCon.y, speCon.cooMod); connect(speCon.y, varSpeDX.speRat); end DXCooledAirsideEconomizer;