LBL logo

Buildings.Examples.ChillerPlant.BaseClasses

Package with base classes for Buildings.Examples.ChillerPlant

Information

This package contains base classes that are used to construct the models in Buildings.Examples.ChillerPlant.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

NameDescription
Buildings.Examples.ChillerPlant.BaseClasses.SimplifiedRoom SimplifiedRoom Simplified data center room
Buildings.Examples.ChillerPlant.BaseClasses.WeatherData WeatherData Modified WeatherData by adding wet bulb temperature for output
Buildings.Examples.ChillerPlant.BaseClasses.Controls Controls Package with control components for Buildings.Examples.ChillerPlant


Buildings.Examples.ChillerPlant.BaseClasses.SimplifiedRoom Buildings.Examples.ChillerPlant.BaseClasses.SimplifiedRoom

Simplified data center room

Buildings.Examples.ChillerPlant.BaseClasses.SimplifiedRoom

Information

This is a simplified room model for a data center. There is no heat exchange between the room and ambient environment through the building envelope since it is negligible compared to the heat released by the servers.

Parameters

TypeNameDefaultDescription
replaceable package MediumModelica.Media.Interfaces.Pa...Medium model
LengthrooLen Length of the room [m]
LengthrooWid Width of the room [m]
HeightrooHei Height of the room [m]
PowerQRoo_flow Heat generation of the computer room [W]
MassFlowRatem_flow_nominal Nominal mass flow rate [kg/s]

Connectors

TypeNameDescription
replaceable package MediumMedium model
VesselFluidPorts_bairPorts[nPorts]Fluid inlets and outlets

Modelica definition

model SimplifiedRoom "Simplified data center room"
  replaceable package Medium = Modelica.Media.Interfaces.PartialMedium 
    "Medium model";
  parameter Integer nPorts=0 "Number of parts";
  parameter Modelica.SIunits.Length rooLen "Length of the room";
  parameter Modelica.SIunits.Length rooWid "Width of the room";
  parameter Modelica.SIunits.Height rooHei "Height of the room";
  parameter Modelica.SIunits.Power QRoo_flow 
    "Heat generation of the computer room";

  Buildings.Fluid.MixingVolumes.MixingVolume rooVol(
    nPorts=nPorts,
    redeclare each package Medium = Medium,
    V=rooLen*rooWid*rooHei,
    final T_start=293.15,
    m_flow_nominal=m_flow_nominal) "Volume of air in the room";
  Modelica.Fluid.Vessels.BaseClasses.VesselFluidPorts_b airPorts[nPorts](
      redeclare each package Medium = Medium) "Fluid inlets and outlets";
  Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow QSou 
    "Heat source of the room";
  Modelica.Blocks.Sources.Ramp ramp(
    height=QRoo_flow,
    offset=0,
    duration=36000,
    startTime=0);
  parameter Modelica.SIunits.MassFlowRate m_flow_nominal 
    "Nominal mass flow rate";
equation 
  connect(rooVol.ports, airPorts);
  connect(QSou.port, rooVol.heatPort);
  connect(ramp.y, QSou.Q_flow);
end SimplifiedRoom;

Buildings.Examples.ChillerPlant.BaseClasses.WeatherData Buildings.Examples.ChillerPlant.BaseClasses.WeatherData

Modified WeatherData by adding wet bulb temperature for output

Buildings.Examples.ChillerPlant.BaseClasses.WeatherData

Information

This is a modified model of the weather data reader Buildings.BoundaryConditions.WeatherData.ReaderTMY3. It outputs the wet bulb temperature in addition to the other data.

Extends from Buildings.BoundaryConditions.WeatherData.ReaderTMY3 (Reader for TMY3 weather data).

Parameters

TypeNameDefaultDescription
StringfilNam Name of weather data file
Data source
DataSourcepAtmSouBuildings.BoundaryConditions...Atmospheric pressure
PressurepAtm101325Atmospheric pressure (used if pAtmSou=Parameter) [Pa]
DataSourceTDryBulSouBuildings.BoundaryConditions...Dry bulb temperature
TemperatureTDryBul293.15Dry bulb temperature (used if TDryBul=Parameter) [K]
DataSourcerelHumSouBuildings.BoundaryConditions...Relative humidity
RealrelHum0.5Relative humidity (used if relHum=Parameter) [1]
DataSourcewinSpeSouBuildings.BoundaryConditions...Wind speed
VelocitywinSpe1Wind speed (used if winSpe=Parameter) [m/s]
DataSourcewinDirSouBuildings.BoundaryConditions...Wind direction
AnglewinDir1.0Wind direction (used if winDir=Parameter) [rad]
DataSourceHGloHorSouBuildings.BoundaryConditions...Global horizontal radiation
RadiantEnergyFluenceRateHGloHor100Global horizontal radiation (used if HGloHor=Parameter) [W/m2]
DataSourceHDifHorSouBuildings.BoundaryConditions...Diffuse horizontal radiation
RadiantEnergyFluenceRateHDifHor50Diffuse horizontal radiation (used if HDifHor=Parameter) [W/m2]
Sky temperature
SkyTemperatureCalculationcalTSkyBuildings.BoundaryConditions...Computation of black-body sky temperature

Connectors

TypeNameDescription
input RealInputpAtm_inInput pressure [Pa]
input RealInputTDryBul_inInput dry bulb temperature [K]
input RealInputrelHum_inInput relative humidity [1]
input RealInputwinSpe_inInput wind speed [m/s]
input RealInputwinDir_inInput wind direction [rad]
input RealInputHGloHor_inInput global horizontal radiation [W/m2]
input RealInputHDifHor_inInput diffuse horizontal radiation [W/m2]
BusweaBusWeather Data Bus
SolarSubBussolBusSub bus with solar position

Modelica definition

block WeatherData 
  "Modified WeatherData by adding wet bulb temperature for output"
  extends Buildings.BoundaryConditions.WeatherData.ReaderTMY3;
  Buildings.Utilities.Psychrometrics.TWetBul_TDryBulXi tWetBul_TDryBulXi(
      redeclare package Medium = Buildings.Media.PerfectGases.MoistAir, TDryBul(
        displayUnit="degC"));
equation 
  connect(chePre.POut, tWetBul_TDryBulXi.p);
  connect(tWetBul_TDryBulXi.TWetBul, weaBus.TWetBul);
  connect(cheTemDryBul.TOut, tWetBul_TDryBulXi.TDryBul);
  connect(cheRelHum.relHumOut, tWetBul_TDryBulXi.Xi[1]);
end WeatherData;

Automatically generated Thu Jul 26 10:24:39 2012.