Extends from Buildings.BaseClasses.BaseIconExamples (Icon for Examples packages).
Name | Description |
---|---|
HeatGain | Test model for the HeatGain model |
LongWaveRadiationGainDistribution | Test model for long-wave radiation gain |
LongWaveRadiationExchange | Test model for long-wave radiation exchange |
RadiationTemperature | Test model for the radiation temperature |
BaseClasses | Package with base classes for room models |
Type | Name | Default | Description |
---|---|---|---|
Area | AFlo | 50 | Floor area [m2] |
model HeatGain "Test model for the HeatGain model" import Buildings; package MediumA = Buildings.Media.GasesPTDecoupled.MoistAir "Medium model";Buildings.RoomsBeta.BaseClasses.HeatGain heatGain(redeclare package Medium = MediumA, AFlo=AFlo); Modelica.Blocks.Sources.Constant qConGai_flow(k=0) "Convective heat gain"; Modelica.Blocks.Sources.Constant qRadGai_flow1(k=0) "Radiative heat gain"; Modelica.Blocks.Routing.Multiplex3 multiplex3_1; Modelica.Blocks.Sources.Constant qLatGai_flow(k=10) "Latent heat gain"; Buildings.Fluid.Sensors.SensibleEnthalpyFlowRate QSen_flow(redeclare package Medium = MediumA, m_flow_nominal=2E-4); Buildings.Fluid.Sensors.LatentEnthalpyFlowRate QLat_flow(redeclare package Medium = MediumA, m_flow_nominal=2E-4); Buildings.Fluid.Sources.Boundary_pT boundary( redeclare package Medium = MediumA, nPorts=1); Modelica.Thermal.HeatTransfer.Sources.FixedTemperature fixedTemperature(T=273.15); inner Modelica.Fluid.System system; Buildings.Utilities.Diagnostics.AssertEquality assertEquality; parameter Modelica.SIunits.Area AFlo=50 "Floor area";Modelica.Blocks.Math.Gain gainCon(k=AFlo); Modelica.Blocks.Math.Gain gainLat(k=AFlo); Buildings.Utilities.Diagnostics.AssertEquality assertEquality1; Buildings.Fluid.MixingVolumes.MixingVolume vol( nPorts=2, redeclare package Medium = MediumA, V=AFlo*2.5); equationconnect(qRadGai_flow1.y,multiplex3_1. u1[1]); connect(qConGai_flow.y,multiplex3_1. u2[1]); connect(qLatGai_flow.y, multiplex3_1.u3[1]); connect(multiplex3_1.y, heatGain.qGai_flow); connect(heatGain.QLat_flow, QSen_flow.port_a); connect(QSen_flow.port_b, QLat_flow.port_a); connect(fixedTemperature.port, heatGain.QCon_flow); connect(assertEquality.u2, QSen_flow.H_flow); connect(gainCon.y, assertEquality.u1); connect(gainCon.u, qConGai_flow.y); connect(assertEquality1.u2, QLat_flow.H_flow); connect(gainLat.y, assertEquality1.u1); connect(qLatGai_flow.y, gainLat.u); connect(boundary.ports[1], vol.ports[1]); connect(vol.ports[2], QLat_flow.port_b); end HeatGain;
Type | Name | Default | Description |
---|---|---|---|
ParameterConstruction | datConExt[NConExt] | datConExt(each A=1) | Data for exterior construction |
ParameterConstructionWithWindow | datConExtWin[NConExtWin] | datConExtWin(each A=1, each ... | Data for exterior construction with window |
ParameterConstruction | datConPar[NConPar] | datConPar(each A=1) | Data for partition construction |
ParameterConstruction | datConBou[NConBou] | datConBou(each A=1) | Data for construction boundary |
ParameterSurface | surBou[NSurBou] | surBou(each A=1) | Record for data of surfaces whose heat conduction is modeled outside of this room |
Exterior constructions | |||
Integer | nConExt | 1 | Number of exterior constructions |
Integer | nConExtWin | 1 | Number of window constructions |
Partition constructions | |||
Integer | nConPar | 1 | Number of partition constructions |
Boundary constructions | |||
Integer | nConBou | 1 | Number of constructions that have their outside surface exposed to the boundary of this room |
Integer | nSurBou | 1 | Number of surface heat transfer models that connect to constructions that are modeled outside of this room |
model LongWaveRadiationGainDistribution "Test model for long-wave radiation gain" extends Buildings.RoomsBeta.BaseClasses.Examples.BaseClasses.PartialLongWaveRadiation; import Buildings;Buildings.RoomsBeta.BaseClasses.LongWaveRadiationGainDistribution lonWavRadGai( nConExt=nConExt, nConExtWin=nConExtWin, nConPar=nConPar, nConBou=nConBou, nSurBou=nSurBou, final datConExt = datConExt, final datConExtWin = datConExtWin, final datConPar = datConPar, final datConBou = datConBou, final surBou = surBou, haveShade=true) "Distribution for long wave radiative heat gains (e.g., due to equipment and people)"; protected Modelica.Blocks.Sources.Constant QRad_flow(k=1) "Radiative heat gain"; Modelica.Blocks.Sources.Constant zer[NConExtWin](each k=0) "Outputs zero. This block is needed to send a signal to the shading connector if no window is used in the room model"; equationconnect(conConExt.port_a, lonWavRadGai.conExt); connect(conConExtWin.port_a, lonWavRadGai.conExtWin); connect(conConExtWinFra.port_a, lonWavRadGai.conExtWinFra); connect(conConPar_a.port_a, lonWavRadGai.conPar_a); connect(conConPar_b.port_a, lonWavRadGai.conPar_b); connect(conConBou.port_a, lonWavRadGai.conBou); connect(conSurBou.port_a, lonWavRadGai.conSurBou); connect(QRad_flow.y, lonWavRadGai.Q_flow); connect(zer.y, lonWavRadGai.uSha); end LongWaveRadiationGainDistribution;
Type | Name | Default | Description |
---|---|---|---|
ParameterConstruction | datConExt[NConExt] | datConExt(each A=1) | Data for exterior construction |
ParameterConstructionWithWindow | datConExtWin[NConExtWin] | datConExtWin(each A=1, each ... | Data for exterior construction with window |
ParameterConstruction | datConPar[NConPar] | datConPar(each A=1) | Data for partition construction |
ParameterConstruction | datConBou[NConBou] | datConBou(each A=1) | Data for construction boundary |
ParameterSurface | surBou[NSurBou] | surBou(each A=1) | Record for data of surfaces whose heat conduction is modeled outside of this room |
Exterior constructions | |||
Integer | nConExt | 1 | Number of exterior constructions |
Integer | nConExtWin | 1 | Number of window constructions |
Partition constructions | |||
Integer | nConPar | 1 | Number of partition constructions |
Boundary constructions | |||
Integer | nConBou | 1 | Number of constructions that have their outside surface exposed to the boundary of this room |
Integer | nSurBou | 1 | Number of surface heat transfer models that connect to constructions that are modeled outside of this room |
model LongWaveRadiationExchange "Test model for long-wave radiation exchange" extends Buildings.RoomsBeta.BaseClasses.Examples.BaseClasses.PartialLongWaveRadiation; import Buildings;Buildings.RoomsBeta.BaseClasses.LongWaveRadiationExchange lonWavRadGai( nConExt=nConExt, nConExtWin=nConExtWin, nConPar=nConPar, nConBou=nConBou, nSurBou=nSurBou, final datConExt = datConExt, final datConExtWin = datConExtWin, final datConPar = datConPar, final datConBou = datConBou, final surBou = surBou, linearizeRadiation = true) "Distribution for long wave radiative heat gains (e.g., due to equipment and people)"; Buildings.HeatTransfer.Radiosity.Constant radSou[NConExtWin](each k=-10) "Radiosity source for window"; equationconnect(conConExt.port_a, lonWavRadGai.conExt); connect(conConExtWin.port_a, lonWavRadGai.conExtWin); connect(conConExtWinFra.port_a, lonWavRadGai.conExtWinFra); connect(conConPar_a.port_a, lonWavRadGai.conPar_a); connect(conConPar_b.port_a, lonWavRadGai.conPar_b); connect(conConBou.port_a, lonWavRadGai.conBou); connect(conSurBou.port_a, lonWavRadGai.conSurBou); connect(radSou.JOut, lonWavRadGai.JInConExtWin); end LongWaveRadiationExchange;
Type | Name | Default | Description |
---|---|---|---|
ParameterConstruction | datConExt[NConExt] | datConExt(each A=1) | Data for exterior construction |
ParameterConstructionWithWindow | datConExtWin[NConExtWin] | datConExtWin(each A=1, each ... | Data for exterior construction with window |
ParameterConstruction | datConPar[NConPar] | datConPar(each A=1) | Data for partition construction |
ParameterConstruction | datConBou[NConBou] | datConBou(each A=1) | Data for construction boundary |
ParameterSurface | surBou[NSurBou] | surBou(each A=1) | Record for data of surfaces whose heat conduction is modeled outside of this room |
Exterior constructions | |||
Integer | nConExt | 1 | Number of exterior constructions |
Integer | nConExtWin | 1 | Number of window constructions |
Partition constructions | |||
Integer | nConPar | 1 | Number of partition constructions |
Boundary constructions | |||
Integer | nConBou | 1 | Number of constructions that have their outside surface exposed to the boundary of this room |
Integer | nSurBou | 1 | Number of surface heat transfer models that connect to constructions that are modeled outside of this room |
model RadiationTemperature "Test model for the radiation temperature" extends Buildings.RoomsBeta.BaseClasses.Examples.BaseClasses.PartialLongWaveRadiation; import Buildings;Buildings.RoomsBeta.BaseClasses.RadiationTemperature radTem( nConExt=nConExt, nConExtWin=nConExtWin, nConPar=nConPar, nConBou=nConBou, nSurBou=nSurBou, final datConExt=datConExt, final datConExtWin=datConExtWin, final datConPar=datConPar, final datConBou=datConBou, final surBou=surBou, haveShade=true) "Radiative temperature"; Modelica.Blocks.Sources.Constant uSha[NConExtWin](each k=0.5) "Shade control signal"; protected Modelica.Thermal.HeatTransfer.Components.ThermalConductor conGlaUns[ NConExtWin](each G=100) "Heat conductor"; Modelica.Thermal.HeatTransfer.Components.ThermalConductor conGlaSha[ NConExtWin](each G=100) "Heat conductor"; Modelica.Thermal.HeatTransfer.Components.ThermalConductor conSha[NConExtWin]( each G=100) "Heat conductor"; Modelica.Thermal.HeatTransfer.Sources.FixedTemperature bouGlaUns[NConExtWin]( each T=293.15) "Boundary condition"; Modelica.Thermal.HeatTransfer.Sources.FixedTemperature bouGlaSha[NConExtWin]( each T=293.15) "Boundary condition"; Modelica.Thermal.HeatTransfer.Sources.FixedTemperature bouSha[NConExtWin]( each T=293.15) "Boundary condition"; equationconnect(conConExt.port_a, radTem.conExt); connect(conConExtWin.port_a, radTem.conExtWin); connect(conConExtWinFra.port_a, radTem.conExtWinFra); connect(conConPar_a.port_a, radTem.conPar_a); connect(conConPar_b.port_a, radTem.conPar_b); connect(conConBou.port_a, radTem.conBou); connect(conSurBou.port_a, radTem.conSurBou); connect(uSha.y, radTem.uSha); connect(bouGlaUns.port, conGlaUns.port_b); connect(bouGlaSha.port, conGlaSha.port_b); connect(bouSha.port, conSha.port_b); connect(radTem.glaUns, conGlaUns.port_a); connect(radTem.glaSha, conGlaSha.port_a); connect(radTem.sha, conSha.port_a); end RadiationTemperature;