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 |
FreeFloating
|
Illustrates the use of the 5R1C thermal zone in free-floating conditions |
FreeFloatingHVAC
|
Illustrates the use of the 5R1C HVAC thermal zone in free-floating conditions |
HeatingCooling
|
Illustrates the use of the 5R1C thermal zone with heating and cooling |
HeatingCoolingHVAC
|
Illustrates the use of the 5R1C HVAC thermal zone connected to a ventilation system |
Illustrates the use of the 5R1C thermal zone in free-floating conditions
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
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")) ;
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) ;
Modelica.Blocks.Sources.Constant intGains(k=10) ;
equation
connect(zon5R1C.weaBus, weaDat.weaBus);
connect(zon5R1C.intSenGai, intGains.y);
end FreeFloating;
Illustrates the use of the 5R1C HVAC thermal zone in free-floating conditions
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
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")) ;
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) ;
Modelica.Blocks.Sources.Constant intGains(k=10) ;
Modelica.Blocks.Sources.Constant latGains(k=0) ;
equation
connect(zonHVAC.weaBus, weaDat.weaBus);
connect(latGains.y, zonHVAC.intLatGai);
connect(intGains.y, zonHVAC.intSenGai);
end FreeFloatingHVAC;
Illustrates the use of the 5R1C thermal zone with heating and cooling
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
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) );
Modelica.Blocks.Math.Sum sumHeaCoo(nin=2)
;
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow preHeaCoo
;
Modelica.Blocks.Math.Gain gaiHea(k=1E6) ;
Buildings.Controls.Continuous.LimPID conHeaPID(
Ti=300,
k=0.1,
reverseActing=true,
strict=true) ;
Modelica.Blocks.Sources.Constant TSetHea(k=273.15 + 20)
;
Modelica.Blocks.Sources.Constant TSetCoo(k=273.15 + 27)
;
Modelica.Blocks.Routing.Multiplex2 multiplex2;
Modelica.Blocks.Math.Gain gaiCoo(k=-1E6) ;
Buildings.Controls.Continuous.LimPID conCooPID(
Ti=300,
k=0.1,
reverseActing=false,
strict=true) ;
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;
Illustrates the use of the 5R1C HVAC thermal zone connected to a ventilation system
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
extends FreeFloatingHVAC(zonHVAC(nPorts=2));
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow preHeaCoo
;
Modelica.Blocks.Math.Gain gaiHea(k=1E6) ;
Controls.Continuous.LimPID conHeaPID(
Ti=300,
k=0.1,
reverseActing=true,
strict=true) ;
Modelica.Blocks.Sources.Constant TSetHea(k=273.15 + 20) ;
Fluid.Sources.MassFlowSource_T sou(
redeclare package Medium =
Buildings.Media.Air,
use_m_flow_in=true,
T=280.15,
nPorts=1) ;
Modelica.Blocks.Sources.Constant TSetCoo(k=273.15 + 27)
;
Controls.Continuous.LimPID conCooPID(
Ti=300,
k=0.1,
yMax=0.07,
reverseActing=false,
strict=true) ;
Modelica.Blocks.Math.Gain gaiCoo(k=1) ;
Fluid.Sources.Boundary_pT sin(
redeclare package Medium =
Buildings.Media.Air,
nPorts=1) ;
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;