LBL logo

Buildings.Rooms.Validation.TestConditionalConstructions

Package that tests rooms with few constructions only

Information

This package tests the room model for special cases where there room only has certain constructions, such as only exterior construction, only partitions or only surface boundary conditions. These test cases are not realistic rooms, but rather test the correct implementation of the room model.

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

Package Content

Name Description
Buildings.Rooms.Validation.TestConditionalConstructions.OnlyConstructionBoundary OnlyConstructionBoundary Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallNoWindow OnlyExteriorWallNoWindow Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindow OnlyExteriorWallWithWindow Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowExteriorShade OnlyExteriorWallWithWindowExteriorShade Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowInteriorShade OnlyExteriorWallWithWindowInteriorShade Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.OnlyPartition OnlyPartition Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.OnlySurfaceBoundary OnlySurfaceBoundary Test model for room model
Buildings.Rooms.Validation.TestConditionalConstructions.BaseClasses BaseClasses Package with base classes for Buildings.Rooms.Validation.TestConditionalConstructions

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyConstructionBoundary Buildings.Rooms.Validation.TestConditionalConstructions.OnlyConstructionBoundary

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyConstructionBoundary

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one construction whose other surface boundary condition is exposed by the room model.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt0Number of exterior constructions that do not have a window
IntegernConExtWin0Number of exterior constructions that do have a window
IntegernConPar0Number of partition constructions
IntegernConBou1Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou0Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls
DoubleClearAir13ClearglaSys Data record for the glazing system

Modelica definition

model OnlyConstructionBoundary "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=0, nConExtWin=0, nConPar=0, nConBou=1, nSurBou=0, roo( datConBou(layers={matLayPar}, each A=12, each til=Buildings.Types.Tilt.Floor, each azi=Buildings.Types.Azimuth.W))); Buildings.HeatTransfer.Sources.FixedTemperature TBou1[nConBou](each T=288.15) "Boundary condition for construction"; equation connect(TBou1.port, roo.surf_conBou); end OnlyConstructionBoundary;

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallNoWindow Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallNoWindow

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallNoWindow

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one exterior construction with no window.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt1Number of exterior constructions that do not have a window
IntegernConExtWin0Number of exterior constructions that do have a window
IntegernConPar0Number of partition constructions
IntegernConBou0Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou0Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls
DoubleClearAir13ClearglaSys Data record for the glazing system

Modelica definition

model OnlyExteriorWallNoWindow "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=1, nConExtWin=0, nConPar=0, nConBou=0, nSurBou=0, roo( datConExt(layers={matLayExt}, each A=10, each til=Buildings.Types.Tilt.Floor, each azi=Buildings.Types.Azimuth.W))); end OnlyExteriorWallNoWindow;

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindow Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindow

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindow

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one exterior construction with window.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt0Number of exterior constructions that do not have a window
IntegernConExtWin2Number of exterior constructions that do have a window
IntegernConPar0Number of partition constructions
IntegernConBou0Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou0Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls
DoubleClearAir13ClearglaSys Data record for the glazing system

Modelica definition

model OnlyExteriorWallWithWindow "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=0, nConExtWin=2, nConPar=0, nConBou=0, nSurBou=0, roo( datConExtWin(layers={matLayExt, matLayExt}, each A=10, glaSys={glaSys, glaSys}, each wWin=2, each hWin=2, each fFra=0.1, til={Buildings.Types.Tilt.Floor, Buildings.Types.Tilt.Ceiling}, each azi=Buildings.Types.Azimuth.W))); end OnlyExteriorWallWithWindow;

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowExteriorShade Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowExteriorShade

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowExteriorShade

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one exterior construction with window and exterior shade.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt0Number of exterior constructions that do not have a window
IntegernConExtWin2Number of exterior constructions that do have a window
IntegernConPar0Number of partition constructions
IntegernConBou0Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou0Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls

Modelica definition

model OnlyExteriorWallWithWindowExteriorShade "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=0, nConExtWin=2, nConPar=0, nConBou=0, nSurBou=0, roo( datConExtWin(layers={matLayExt, matLayExt}, each A=10, glaSys={glaSys, glaSys}, each wWin=2, each hWin=2, each fFra=0.1, til={Buildings.Types.Tilt.Floor, Buildings.Types.Tilt.Ceiling}, each azi=Buildings.Types.Azimuth.W)), glaSys(haveExteriorShade=true)); Modelica.Blocks.Sources.Constant uSha(k=0.5) "Control signal for the shading device"; Modelica.Blocks.Routing.Replicator replicator(nout=max(1,nConExtWin)); equation connect(uSha.y,replicator. u); connect(roo.uSha,replicator. y); end OnlyExteriorWallWithWindowExteriorShade;

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowInteriorShade Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowInteriorShade

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyExteriorWallWithWindowInteriorShade

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one exterior construction with window and interior shade.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt0Number of exterior constructions that do not have a window
IntegernConExtWin2Number of exterior constructions that do have a window
IntegernConPar0Number of partition constructions
IntegernConBou0Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou0Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls

Modelica definition

model OnlyExteriorWallWithWindowInteriorShade "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=0, nConExtWin=2, nConPar=0, nConBou=0, nSurBou=0, roo( datConExtWin(layers={matLayExt, matLayExt}, each A=10, glaSys={glaSys, glaSys}, each wWin=2, each hWin=2, each fFra=0.1, til={Buildings.Types.Tilt.Floor, Buildings.Types.Tilt.Ceiling}, each azi=Buildings.Types.Azimuth.W)), glaSys(haveInteriorShade=true)); Modelica.Blocks.Sources.Constant uSha(k=0.5) "Control signal for the shading device"; Modelica.Blocks.Routing.Replicator replicator(nout=max(1,nConExtWin)); equation connect(uSha.y,replicator. u); connect(roo.uSha,replicator. y); end OnlyExteriorWallWithWindowInteriorShade;

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyPartition Buildings.Rooms.Validation.TestConditionalConstructions.OnlyPartition

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlyPartition

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one partition construction.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt0Number of exterior constructions that do not have a window
IntegernConExtWin0Number of exterior constructions that do have a window
IntegernConPar1Number of partition constructions
IntegernConBou0Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou0Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls
DoubleClearAir13ClearglaSys Data record for the glazing system

Modelica definition

model OnlyPartition "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=0, nConExtWin=0, nConPar=1, nConBou=0, nSurBou=0, roo( datConPar(layers={matLayPar}, each A=10, each til=Buildings.Types.Tilt.Floor, each azi=Buildings.Types.Azimuth.W))); end OnlyPartition;

Buildings.Rooms.Validation.TestConditionalConstructions.OnlySurfaceBoundary Buildings.Rooms.Validation.TestConditionalConstructions.OnlySurfaceBoundary

Test model for room model

Buildings.Rooms.Validation.TestConditionalConstructions.OnlySurfaceBoundary

Information

This model tests Buildings.Rooms.MixedAir for the case of having only one surface with specified boundary conditions.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialTestModel (Partial model that is used to build the test cases).

Parameters

TypeNameDefaultDescription
IntegernConExt0Number of exterior constructions that do not have a window
IntegernConExtWin0Number of exterior constructions that do have a window
IntegernConPar0Number of partition constructions
IntegernConBou0Number of surface that are connected to constructions that are modeled inside the room
IntegernSurBou1Number of surface that are connected to the room air volume
Insulation100Concrete200matLayExt Construction material for exterior walls
Brick120matLayPar Construction material for partition walls
DoubleClearAir13ClearglaSys Data record for the glazing system

Modelica definition

model OnlySurfaceBoundary "Test model for room model" extends Modelica.Icons.Example; extends BaseClasses.PartialTestModel( nConExt=0, nConExtWin=0, nConPar=0, nConBou=0, nSurBou=1, roo( surBou(each A=15, each absIR=0.9, each absSol=0.9, each til=Buildings.Types.Tilt.Floor))); Buildings.HeatTransfer.Sources.FixedTemperature TBou[nSurBou](each T=288.15) "Boundary condition for construction"; HeatTransfer.Conduction.MultiLayer conOut[nSurBou]( each A=15, each layers = matLayPar) "Construction that is modeled outside of room"; equation connect(TBou.port, conOut.port_b); connect(roo.surf_surBou, conOut.port_a); end OnlySurfaceBoundary;

Automatically generated Mon Jul 13 14:29:45 2015.