Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses

Package with base classes for Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison

Information

This package contains base classes that are used to construct the models in Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.

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

Package Content

Name Description
Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ExteriorWall ExteriorWall Model of an exterior wall with Spawn-controlled surface conditions
Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.InteriorWall InteriorWall Model of an interior wall with Spawn-controlled surface conditions
Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ReferenceSurfaces ReferenceSurfaces Model that contains Eplus OutputVariable used to validate ZoneSurface
Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ZoneSurfaces ZoneSurfaces Example model with two EnergyPlus unconditioned zones with their separating surfaces modeled in Modelica

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ExteriorWall Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ExteriorWall

Model of an exterior wall with Spawn-controlled surface conditions

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ExteriorWall

Information

This is a model of the heat transfer through an exterior wall, which is connected to an EnergyPlus Zone Heat Balance through Buildings.ThermalZones.EnergyPlus_9_6_0.ZoneSurface object on the interior surface and a Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable to read the exterior surface temperature.

This model can be used in a Spawn simulation to substitute the heat conduction calculation performed by EnergyPlus with a Buildings.HeatTransfer.Conduction.MultiLayer object.

Extends from Buildings.HeatTransfer.Conduction.BaseClasses.PartialConstruction (Partial model for multi-layer constructions).

Parameters

TypeNameDefaultDescription
Genericlayersredeclare parameter Building...Construction definition from Data.OpaqueConstructions
StringsurNam Name of EnergyPlus Surface
AreaA Wall area [m2]
Initialization
BooleansteadyStateInitialfalse=true initializes dT(0)/dt=0, false initializes T(0) at fixed temperature using T_a_start and T_b_start
TemperatureT_a_start293.15Initial temperature at port_a, used if steadyStateInitial = false [K]
TemperatureT_b_start293.15Initial temperature at port_b, used if steadyStateInitial = false [K]

Modelica definition

model ExteriorWall "Model of an exterior wall with Spawn-controlled surface conditions" extends Buildings.HeatTransfer.Conduction.BaseClasses.PartialConstruction; parameter String surNam "Name of EnergyPlus Surface"; parameter Modelica.Units.SI.Area A "Wall area"; replaceable parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic layers "Construction definition from Data.OpaqueConstructions"; Buildings.ThermalZones.EnergyPlus_9_6_0.ZoneSurface sur(surfaceName=surNam) "Wall interior surface"; HeatTransfer.Conduction.MultiLayer walCon( A=A, layers=layers) "Wall construction"; HeatTransfer.Sources.PrescribedHeatFlow heaSurExt "Exterior surface heat transfer rate"; Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor TSurInt "Interior surface temperature"; HeatTransfer.Sources.PrescribedHeatFlow heaSurInt "Prescribed heat flow rate"; Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable extSurHea( name="Surface Outside Face Conduction Heat Transfer Rate", key=surNam); Modelica.Blocks.Math.Gain inv(k=-1) "Invert the sign of the heat flow signal"; equation connect(heaSurExt.port, walCon.port_a); connect(sur.Q_flow, heaSurInt.Q_flow); connect(heaSurInt.port, walCon.port_b); connect(TSurInt.port, walCon.port_b); connect(TSurInt.T, sur.T); connect(extSurHea.y, inv.u); connect(inv.y, heaSurExt.Q_flow); end ExteriorWall;

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.InteriorWall Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.InteriorWall

Model of an interior wall with Spawn-controlled surface conditions

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.InteriorWall

Information

This is a model of the heat transfer through an interior wall, which is connected to an EnergyPlus Zone Heat Balance through Buildings.ThermalZones.EnergyPlus_9_6_0.ZoneSurface objects on both side of the wall.

This model can be used in a Spawn simulation to substitute the heat conduction calculation performed by EnergyPlus with a Buildings.HeatTransfer.Conduction.MultiLayer object.

Extends from Buildings.HeatTransfer.Conduction.BaseClasses.PartialConstruction (Partial model for multi-layer constructions).

Parameters

TypeNameDefaultDescription
Genericlayersredeclare parameter Building...Construction definition from Data.OpaqueConstructions
StringsurNam_a Name of EnergyPlus Surface (port a)
StringsurNam_b Name of EnergyPlus Surface (port b)
AreaA Wall area [m2]
Initialization
BooleansteadyStateInitialfalse=true initializes dT(0)/dt=0, false initializes T(0) at fixed temperature using T_a_start and T_b_start
TemperatureT_a_start293.15Initial temperature at port_a, used if steadyStateInitial = false [K]
TemperatureT_b_start293.15Initial temperature at port_b, used if steadyStateInitial = false [K]

Modelica definition

model InteriorWall "Model of an interior wall with Spawn-controlled surface conditions" extends Buildings.HeatTransfer.Conduction.BaseClasses.PartialConstruction; parameter String surNam_a "Name of EnergyPlus Surface (port a)"; parameter String surNam_b "Name of EnergyPlus Surface (port b)"; parameter Modelica.Units.SI.Area A "Wall area"; replaceable parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic layers "Construction definition from Data.OpaqueConstructions"; Buildings.ThermalZones.EnergyPlus_9_6_0.ZoneSurface sur_a(surfaceName=surNam_a) "Wall surface (port a)"; Buildings.ThermalZones.EnergyPlus_9_6_0.ZoneSurface sur_b(surfaceName=surNam_b) "Wall surface (port b)"; Buildings.HeatTransfer.Conduction.MultiLayer walCon( A=A, layers=layers) "Wall conduction"; Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor TSur_a "Surface temperature (port a)"; Buildings.HeatTransfer.Sources.PrescribedHeatFlow heaSur_a "Surface heat transfer rate (port a)"; Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor TSur_b "Surface temperature (port b)"; Buildings.HeatTransfer.Sources.PrescribedHeatFlow heaSur_b "Surface heat transfer rate (port b)"; equation connect(walCon.port_a, TSur_a.port); connect(TSur_a.T, sur_a.T); connect(sur_a.Q_flow, heaSur_a.Q_flow); connect(heaSur_a.port, walCon.port_a); connect(sur_b.Q_flow, heaSur_b.Q_flow); connect(heaSur_b.port, walCon.port_b); connect(TSur_b.port, walCon.port_b); connect(TSur_b.T, sur_b.T); end InteriorWall;

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ReferenceSurfaces Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ReferenceSurfaces

Model that contains Eplus OutputVariable used to validate ZoneSurface

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ReferenceSurfaces

Information

This model simulates the envelope of a single family house with EnergyPlus and is used as a baseline to the Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.SurfaceComparison validation model which compare that baseline to the same building, but using Spawn connectors for some interior and exterior walls.

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Modelica definition

model ReferenceSurfaces "Model that contains Eplus OutputVariable used to validate ZoneSurface" extends Modelica.Blocks.Icons.Block; inner Buildings.ThermalZones.EnergyPlus_9_6_0.Building building( idfName=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/Data/ThermalZones/EnergyPlus_9_6_0/Examples/SingleFamilyHouse_TwoSpeed_ZoneAirBalance/SingleFamilyHouse_TwoSpeed_ZoneAirBalance.idf"), epwName=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw"), weaName=Modelica.Utilities.Files.loadResource( "modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"), usePrecompiledFMU=false, computeWetBulbTemperature=false) "Building model"; Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable TGarAir( name="Zone Mean Air Temperature", key="LIVING ZONE", y(unit="K")) "Garage air temperature"; Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable TIntWalLivSur( name="Surface Inside Face Temperature", key="Living:Interior", y(unit="K")) "Interior wall living room surface temperature"; Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable TIntWalGarSur( name="Surface Inside Face Temperature", key="Garage:Interior", y(unit="K")) "Interior wall garage surface temperature"; Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable TWesWalGarSur( name="Surface Inside Face Temperature", key="Garage:WestWall", y(unit="K")) "West wall garage surface temperature"; Buildings.ThermalZones.EnergyPlus_9_6_0.OutputVariable TEasWalGarSur( name="Surface Inside Face Temperature", key="Garage:EastWall", y(unit="K")) "East wall garage surface temperature"; end ReferenceSurfaces;

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ZoneSurfaces Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ZoneSurfaces

Example model with two EnergyPlus unconditioned zones with their separating surfaces modeled in Modelica

Buildings.ThermalZones.EnergyPlus_9_6_0.Validation.SurfaceComparison.BaseClasses.ZoneSurfaces

Information

This model simulates the envelope of a single family house with EnergyPlus but uses Buildings.ThermalZones.EnergyPlus_9_6_0.ZoneSurface to model the heat transfer through the garage exterior (east and west facing) and interior walls.

Extends from BaseClasses.ReferenceSurfaces (Model that contains Eplus OutputVariable used to validate ZoneSurface).

Parameters

TypeNameDefaultDescription
IntegernSta3Number of states

Modelica definition

model ZoneSurfaces "Example model with two EnergyPlus unconditioned zones with their separating surfaces modeled in Modelica" extends BaseClasses.ReferenceSurfaces; parameter Integer nSta = 3 "Number of states"; BaseClasses.InteriorWall int( layers=intWal, surNam_a="Garage:Interior", surNam_b="Living:Interior", A=16.87) "Interior wall between living room and garage"; BaseClasses.ExteriorWall wes( layers=extWal, surNam="Garage:WestWall", A=14.87) "West wall of garage"; BaseClasses.ExteriorWall eas( layers=extWal, surNam="Garage:EastWall", A=14.87) "East wall of garage"; protected parameter HeatTransfer.Data.Solids.GypsumBoard gyp( x=0.0127, k=0.16, c=837, d(displayUnit="kg/m3") = 801, nStaRef=nSta) "Gypsum or Plaster Board 1/2 in"; parameter HeatTransfer.Data.Solids.InsulationBoard ins( x=0.09, k=0.043, c=837, d(displayUnit="kg/m3") = 10.0, nStaRef=nSta) "Mineral Wool/Fiber Batt R-11"; parameter HeatTransfer.Data.Solids.Concrete CB11( x=0.2032000, k=1.048000, c=837, d(displayUnit="kg/m3") = 1105, nStaRef=nSta) "Concrete Block 8 in HW Hol."; parameter HeatTransfer.Data.Solids.GypsumBoard stu( x=0.025389841, k=0.6918309, c=836.8000, d(displayUnit="kg/m3") = 1858.142, nStaRef=nSta) "Stucco layer 1 in"; parameter HeatTransfer.Data.OpaqueConstructions.Generic intWal( nLay=3, material={gyp,ins,gyp}, absSol_a=0.75, absSol_b=0.75) "Interior wall construction"; parameter HeatTransfer.Data.OpaqueConstructions.Generic extWal( nLay=2, material={stu,CB11}, absSol_a=0.92, absSol_b=0.92) "Exterior garage wall construction"; end ZoneSurfaces;