Research Article

Translating Building Information Modeling to Building Energy Modeling Using Model View Definition

Algorithm 5

Generated ModelicaBEM code block of the two-story building model presenting the floor instance, the roof instance, and the room instance at the upper level.
Floor instance
//Floor information of upper level
PBIM.BIMPackage.Floor F2(structure(material={Floors206671},final nLay=1),
area=48.0000000000001,tilt=3.14159265358979,azi=3.14159265358979);
Roof instance
//Roof information of lower level
PBIM.BIMPackage.Roof F2206671(structure(material={Floors206671},final nLay=1),
area=48.0000000000001,tilt=0,azi=0);
Room instance
//Room information of upper level
PBIM.BIMPackage.Roof Room2(...
,datConExt(layers={Walls206727.structure,...,R1.structure},
A={Walls206727.area,...,R1.area},
til={Walls206727.tilt,...,R1.tilt},
azi={Walls206727.azi,...,R1.azi}),
nConExtWin=0, nConBou=0, nConPar=0,
, surBou(A={F2.area},
absIR={F2.structure.absIR_a},
absSol={F2.structure.absSol_a},
til={F2.tilt}),nPorts=1);