Buildings.ThermalZones.ISO13790.Examples

Collection of models that illustrate model use and test models

Information

This packages contains examples for reduced order model applications.

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

Package Content

Name Description
Buildings.ThermalZones.ISO13790.Examples.FreeFloating FreeFloating Illustrates the use of the 5R1C thermal zone in free-floating conditions
Buildings.ThermalZones.ISO13790.Examples.FreeFloatingHVAC FreeFloatingHVAC Illustrates the use of the 5R1C HVAC thermal zone in free-floating conditions
Buildings.ThermalZones.ISO13790.Examples.HeatingCooling HeatingCooling Illustrates the use of the 5R1C thermal zone with heating and cooling
Buildings.ThermalZones.ISO13790.Examples.HeatingCoolingHVAC HeatingCoolingHVAC Illustrates the use of the 5R1C HVAC thermal zone connected to a ventilation system

Buildings.ThermalZones.ISO13790.Examples.FreeFloating Buildings.ThermalZones.ISO13790.Examples.FreeFloating

Illustrates the use of the 5R1C thermal zone in free-floating conditions

Buildings.ThermalZones.ISO13790.Examples.FreeFloating

Information

This model illustrates the use of Buildings.ThermalZones.ISO13790.Zone5R1C.Zone in a free-floating case (i.e. no heating or cooling)

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

Modelica definition

model FreeFloating "Illustrates the use of the 5R1C thermal zone in free-floating conditions" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= Modelica.Utilities.Files.loadResource("modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos")) "weather data"; Zone5R1C.Zone zon5R1C( airRat=0.5, AWin={0,0,3,0}, UWin=1.8, AWal={12,12,9,12}, ARoo=16, UWal=1.3, URoo=1.3, UFlo=1, AFlo=16, VRoo=16*3, redeclare replaceable Buildings.ThermalZones.ISO13790.Data.Light buiMas, nOrientations=4, surTil={1.5707963267949,1.5707963267949,1.5707963267949,1.5707963267949}, surAzi={3.1415926535898,-1.5707963267949,0,1.5707963267949}, gFac=0.5) "Thermal zone"; Modelica.Blocks.Sources.Constant intGains(k=10) "internal heat gains in Watt"; equation connect(zon5R1C.weaBus, weaDat.weaBus); connect(zon5R1C.intSenGai, intGains.y); end FreeFloating;

Buildings.ThermalZones.ISO13790.Examples.FreeFloatingHVAC Buildings.ThermalZones.ISO13790.Examples.FreeFloatingHVAC

Illustrates the use of the 5R1C HVAC thermal zone in free-floating conditions

Buildings.ThermalZones.ISO13790.Examples.FreeFloatingHVAC

Information

This model illustrates the use of Buildings.ThermalZones.ISO13790.Zone5R1C.ZoneHVAC in a free-floating case (i.e. no heating or cooling).

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

Modelica definition

model FreeFloatingHVAC "Illustrates the use of the 5R1C HVAC thermal zone in free-floating conditions" extends Modelica.Icons.Example; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= Modelica.Utilities.Files.loadResource("modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos")) "weather data"; Zone5R1C.ZoneHVAC zonHVAC( airRat=0.5, AWin={0,0,3,0}, UWin=1.8, AWal={12,12,9,12}, ARoo=16, UWal=1.3, URoo=1.3, UFlo=1, AFlo=16, VRoo=16*3, nOrientations=4, surTil={1.5707963267949,1.5707963267949,1.5707963267949,1.5707963267949}, surAzi={3.1415926535898,-1.5707963267949,0,1.5707963267949}, gFac=0.5, redeclare package Medium = Buildings.Media.Air, redeclare Buildings.ThermalZones.ISO13790.Data.Light buiMas) "Thermal zone"; Modelica.Blocks.Sources.Constant intGains(k=10) "Internal heat gains"; Modelica.Blocks.Sources.Constant latGains(k=0) "Latent gains"; equation connect(zonHVAC.weaBus, weaDat.weaBus); connect(latGains.y, zonHVAC.intLatGai); connect(intGains.y, zonHVAC.intSenGai); end FreeFloatingHVAC;

Buildings.ThermalZones.ISO13790.Examples.HeatingCooling Buildings.ThermalZones.ISO13790.Examples.HeatingCooling

Illustrates the use of the 5R1C thermal zone with heating and cooling

Buildings.ThermalZones.ISO13790.Examples.HeatingCooling

Information

This model illustrates the use of Buildings.ThermalZones.ISO13790.Zone5R1C.Zone with heating and cooling.

Extends from FreeFloating (Illustrates the use of the 5R1C thermal zone in free-floating conditions).

Modelica definition

model HeatingCooling "Illustrates the use of the 5R1C thermal zone with heating and cooling" extends FreeFloating(zon5R1C( airRat=0.5, AWin={0,0,3,0}, UWin=1.8, AWal={12,12,9,12}, ARoo=16, UWal=1.3, URoo=1.3, AFlo=16, VRoo=16*3, redeclare Buildings.ThermalZones.ISO13790.Data.Light buiMas, gFac=0.5) "Thermal zone"); Modelica.Blocks.Math.Sum sumHeaCoo(nin=2) "Sum of heating and cooling heat flow rate"; Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow preHeaCoo "Prescribed heat flow for heating and cooling"; Modelica.Blocks.Math.Gain gaiHea(k=1E6) "Gain for heating"; Buildings.Controls.Continuous.LimPID conHeaPID( Ti=300, k=0.1, reverseActing=true, strict=true) "Controller for heating"; Modelica.Blocks.Sources.Constant TSetHea(k=273.15 + 20) "Set-point for heating"; Modelica.Blocks.Sources.Constant TSetCoo(k=273.15 + 27) "Set-point for cooling"; Modelica.Blocks.Routing.Multiplex2 multiplex2; Modelica.Blocks.Math.Gain gaiCoo(k=-1E6) "Gain for cooling"; Buildings.Controls.Continuous.LimPID conCooPID( Ti=300, k=0.1, reverseActing=false, strict=true) "Controller for cooling"; equation connect(sumHeaCoo.y, preHeaCoo.Q_flow); connect(conHeaPID.y, gaiHea.u); connect(TSetHea.y, conHeaPID.u_s); connect(multiplex2.y,sumHeaCoo. u); connect(conCooPID.u_s, TSetCoo.y); connect(conCooPID.y, gaiCoo.u); connect(conHeaPID.y, gaiHea.u); connect(gaiHea.y, multiplex2.u1[1]); connect(gaiCoo.y, multiplex2.u2[1]); connect(gaiCoo.u, conCooPID.y); connect(preHeaCoo.port, zon5R1C.heaPorAir); connect(zon5R1C.TAir, conCooPID.u_m); connect(zon5R1C.TAir, conHeaPID.u_m); end HeatingCooling;

Buildings.ThermalZones.ISO13790.Examples.HeatingCoolingHVAC Buildings.ThermalZones.ISO13790.Examples.HeatingCoolingHVAC

Illustrates the use of the 5R1C HVAC thermal zone connected to a ventilation system

Buildings.ThermalZones.ISO13790.Examples.HeatingCoolingHVAC

Information

This model illustrates the use of Buildings.ThermalZones.ISO13790.Zone5R1C.ZoneHVAC with heating and cooling. Cooling is delivered by a ventilation system with supply air temperature of 7°C.

Extends from FreeFloatingHVAC (Illustrates the use of the 5R1C HVAC thermal zone in free-floating conditions).

Modelica definition

model HeatingCoolingHVAC "Illustrates the use of the 5R1C HVAC thermal zone connected to a ventilation system" extends FreeFloatingHVAC(zonHVAC(nPorts=2)); Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow preHeaCoo "Prescribed heat flow for heating and cooling"; Modelica.Blocks.Math.Gain gaiHea(k=1E6) "Gain for heating"; Controls.Continuous.LimPID conHeaPID( Ti=300, k=0.1, reverseActing=true, strict=true) "Controller for heating"; Modelica.Blocks.Sources.Constant TSetHea(k=273.15 + 20) "Set-point for heating"; Fluid.Sources.MassFlowSource_T sou( redeclare package Medium = Buildings.Media.Air, use_m_flow_in=true, T=280.15, nPorts=1) "source of air"; Modelica.Blocks.Sources.Constant TSetCoo(k=273.15 + 27) "Set-point for cooling"; Controls.Continuous.LimPID conCooPID( Ti=300, k=0.1, yMax=0.07, reverseActing=false, strict=true) "Controller for cooling"; Modelica.Blocks.Math.Gain gaiCoo(k=1) "Gain for cooling"; Fluid.Sources.Boundary_pT sin( redeclare package Medium = Buildings.Media.Air, nPorts=1) "sink"; equation connect(conHeaPID.y,gaiHea. u); connect(TSetHea.y,conHeaPID. u_s); connect(conHeaPID.y,gaiHea. u); connect(gaiHea.y, preHeaCoo.Q_flow); connect(conCooPID.u_s,TSetCoo. y); connect(gaiCoo.u,conCooPID. y); connect(sin.ports[1], zonHVAC.ports[1]); connect(preHeaCoo.port, zonHVAC.heaPorAir); connect(sou.ports[1], zonHVAC.ports[2]); connect(sou.m_flow_in, gaiCoo.y); connect(zonHVAC.TAir, conCooPID.u_m); connect(zonHVAC.TAir, conHeaPID.u_m); end HeatingCoolingHVAC;