the future of building modeling modeling operations and ... buildings trac… · modeling...

9
The future of building modeling Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed Michael Wetter Simulation Research Group August 12, 2012 1

Upload: others

Post on 05-Apr-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

The future of building modeling

Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Michael Wetter

Simulation Research Group

August 12, 2012

1

Page 2: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Higher flexibility is needed from simulation tools to support new building technologies and building operations

2

Rapid prototyping

Real-time monitoring to verifydesign intent

Development of control sequences

Workforce training

REAL-TIME BUILDING ENERGY SIMULATION USING ENERGYPLUS AND THE BUILDING CONTROLS VIRTUAL TEST BED

Xiufeng Pang1, Prajesh Bhattacharya1, Zheng O’Neill2, Philip Haves1, Michael Wetter1, and

Trevor Bailey2 1 Lawrence Berkeley National Laboratory, Berkeley, CA, USA

2 United Technologies Research Center, East Hartford, CT, USA

ABSTRACT Most commercial buildings do not perform as well in practice as intended by the design and their performances often deteriorate over time. Reasons include faulty construction, malfunctioning equipment, incorrectly configured control systems and inappropriate operating procedures (Haves et al., 2001, Lee et al., 2007). To address this problem, the paper presents a simulation-based whole building performance monitoring tool that allows a comparison of building actual performance and expected performance in real time. The tool continuously acquires relevant building model input variables from existing Energy Management and Control System (EMCS). It then reports expected energy consumption as simulated of EnergyPlus. The Building Control Virtual Test Bed (BCVTB) is used as the software platform to provide data linkage between the EMCS, an EnergyPlus model, and a database. This paper describes the integrated real-time simulation environment. A proof-of-concept demonstration is also presented in the paper.

INTRODUCTION EnergyPlus (US DOE, 2010; Crawley et al., 2001) is a detailed first principles based simulation tool that calculates the building heating and cooling loads, and disaggregates energy end uses and other variables required for a comprehensive comparison of simulated and measured performance . Conventionally, EnergyPlus is used for off-line building energy simulation analyze design for new construction and retrofit, size HVAC equipment, and model energy and water use in buildings. With the increasing need to improve building performance, the use of simulation to assess the actual performance of buildings is starting to gain more attention (Haves et al. 2001, Liu et al. 2003, Ramirez et al. 2005). This paper describes a proof-of-concept implementation of EnergyPlus in a real-time application, which represents a step towards the development and deployment of simulation-based building performance assessment techniques. Real-time building simulation, as opposed to off-line building simulation, refers to the use of a building model whose simulation time is synchronized with real time, as represented by the computer clock. Updated values of the input variables are acquired

dynamically at each step-time. With the wide deployment of Energy Management and Control Systems (EMCS) in buildings and the development of open protocols such as BACnet, the sensor and control signal information from various component and systems in a building is more acccessible (Salsbury et al. 2000). This makes it possible to acquire the real-time EnergyPlus dynamic input variables from the EMCS including but not limited to weather data, operation schedules, control set points. However, the EMCS does not normally have all the necessary model input variables that are needed for real-time simulation, e.g. solar radiation, wind speed and direction and additional instrumentation is required to accomadate these needs. The Building Controls Virtual Test Bed (BCVTB), recently developed by Lawrence Berkeley National Laboratory (LBNL), has provided a platform to synchronize EnergyPlus simulation time to real-time and exchange data with EMCS in the real-time mode as well (Wetter, 2010; Nouidui et al., 2011). It is an extension of Ptolemy II, a software environment for heterogeneous modeling and simulation. Ptolemy II is a free open-source software developed at the University of California, Berkeley. This paper describes the integrated real-time simulation environment as well as the additional instrumentation required by the real-time simulation. A proof-of-concept demonstration is then described.

SYSTEM INFRASTRUCTURE Figure 1 shows the overall system architecture. It consists of two sub-systems: (i) the EMCS that serves as the data acquisition system and (ii) the real-time simulation environment that integrates the EnergyPlus simulation, database and the data

Figure 1 Overall system architecture

!

!"#$!%

&'()*+,%--%

"#$%&'!(&)*&+!

,-./0)'1+!#2'1+!

3)')4)5&!#2'1+! 3)')4)5&!

6%&+7890/5!

.*/)0'1+*%21+3)/'1(4%54617(4+*4'%58"2%

"#$%&'!:)'&;)8!

6<-5'-%7!,&%51+5!=!21%'+10!*&>-2&5!

#**-'-1%)0!?%5'+/.&%')'-1%!

Proceedings of Building Simulation 2011: 12th Conference of International Building Performance Simulation Association, Sydney, 14-16 November.

- 2890 -

!"#$%&'()&*+()&,-$$).&/0$&12')&3+1$&42(!'+(,&!0$&,"5&23&-1"6%&3'(&'()&1+60!+(6&12'),.&7(& ,!$-& 89:%& !0$& ;<=/;& ,!'#!,& '& >$#1& ?@A& ,4#+-!&

*0+40&+(B2C$,&D')+'(4$&?EFA&!2&4'14"1'!$&!0$&+(425G+(6&,21'#&+##')+'!+2(,&'()&!0$&,21'#&#')+'!+2(&'H,2#H$)&HI& )+33$#$(!& #225& ,"#3'4$,& 32#& 5"1!+-1$& H1+()& -2,+G!+2(,.& D')+'(4$& +,& '& #'IG!#'4+(6& H',$)& )'I1+60!+(6&,+5"1'!+2(& -#26#'5.& 7!& +,& ,$1$4!$)& H$4'",$& +!& 4'(&425-"!$& 1+60!& !#'(,5+!!'(4$&23&425-1$J&3$($,!#'!+2(&,I,!$5,& *+!0& 1+60!G#$)+#$4!+(6& ,0')$,.& K+(4$& !0$&!"#$%#&'(& 1+H#'#I& )2$,& (2!& ,"--2#!& !0$& 52)$1+(6& 23&B$($!+'(&H1+(),%&*$&",$&!0$&4'-'H+1+!I&23&D')+'(4$&!2&425-"!$& !0$& 1+60!& #$)+#$4!+2(& 23& !0$& H1+(),%& '()& !2&425-"!$&!0$&,21'#&+##')+'!+2(&)+,!#+H"!+2(&+(&!0$&#225.&/0+,& *',& '40+$B$)& HI& 4'14"1'!+(6& +(4+)$(!& '()& 'HG,2#H$)&,21'#&+##')+'!+2(&+(&D')+'(4$&32#&)+,!+(4!&H1+()&-2,+!+2(,&'()&2B$#*#+!+(6&!0$&,21'#&+##')+'!+2(&)+,!#+GH"!+2(& 4'14"1'!+2(,& )2($& +(& !0$& #225&52)$1.& 7(& 2"#&42(3+6"#'!+2(%& *$& 42(,+)$#$)& EE& -2,+!+2(,.& ;$4'",$&!0$& ,+5"1'!+2(,&*$#$& 3',!& 425-'#$)& !2& !0$& ,'5-1+(6&!+5$%&'()&2(1I&EE&42(!#21&2-!+2(,&($$)&!2&H$&42(,+)G$#$)%& *$& )+)& '(& $J0'",!+B$& ,$'#40& !2& )$!$#5+($& !0$&2-!+5'1&42(!#21&,+6('1.&&/0$&3+#,!&-2,+!+2(&+,&*+!0&!0$&H1+()&3"11I&#$!#'4!$).&/0$&,$42()&!2&!0$&EE!0&-2,+!+2(&'#$&*+!0&!0$&H1+()&,$!&'!&'(61$,&*+!0&)$6#$$&23&LF%&9M%&9F%&NM%&NF%&EM%&EF%&M%&F%&'()& GM%& #$,-$4!+B$1I%&*0$#$&!0$& 1',!& -2,+!+2(& +,&*+!0& !0$& H1+()& 3"11I& 412,$).& /0$&4'14"1'!$)& +##')+'!+2(& )'!'& +(41")$,& +(4+)$(!& ,21'#&#')+'!+2(&2(&+(!$#+2#&*'11&,"#3'4$,&23&!0$&!$,!&4$11&'()&,21'#& +##')+'!+2(& 'H,2#H$)& +(& 61',,& 1'I$#,& '()& !0$&,0')+(6& 1'I$#& 23& !0$&*+()2*& ,I,!$5.&O!& !0$& $()& 23&!0$& 4'14"1'!+2(%& !0$& #$,"1!,& '#$& *#+!!$(& !2& !0$& 3+1$,&*0+40&*+11&H$&",$)&32#&,!$-&8L:.&&7(& ,!$-& 8L:%& !0$& ;<=/;& ,!'#!,& '& ,4#+-!%& *0+40&

,+5"1'!$,& 5"1!+-1$& +(,!'(4$,& 23& !0$& P2)$1+4'& #225&52)$1&",+(6&QI521'&?EEA.&R'40&52)$1&#$-#$,$(!,&!0$&#225& *+!0& !0$& H1+()& ,$!& !2& '& ,-$4+3+4& -2,+!+2(.& /0$&52)$1&+,&-'#'5$!$#+S$)&",+(6&'&*$'!0$#&3+1$%&12')&3+1$&

',& *$11& ',& +(425+(6& '()& 'H,2#H$)& ,21'#& +##')+'!+2(&-#$G4'14"1'!$)& HI& D')+'(4$.& T+6"#$& EL& ,02*,& '&,4#$$(,02!& 23& !0$& P2)$1+4'& +5-1$5$(!'!+2(& 23& !0$&!$,!& 4$11.& /0+,&52)$1& 42(,+,!,& 23& U& -'#!,V& -'#!& E& )$G3+($,& !0$&0$'!& ,2"#4$,&*0+40&'#$& #$')& 3#25& !0$& 12')&3+1$%&-'#!&N& +,& !0$&>7& 42(!#211$#& 32#&0$'!+(6%& -'#!&9& +,&!0$&>7&42(!#211$#&32#&4221+(6%&-'#!&L&52)$1,&!0$&H"+1)G+(6& $(B$12-$%& -'#!& M& #$-#$,$(!,& !0$&5'!$#+'1& -#2-$#G!+$,& 23& !0$& H"+1)+(6& $(B$12-$%& -'#!& W& -#2B+)$,& !0$&*$'!0$#&)'!'%&'()&-'#!&U&425-"!$,&!0$&+(3+1!#'!+2(&+(&!0$&!$,!&4$11.&7(& ,!$-& 8M:%& !0$&;<=/;& 4'11,& '& >I!02(& ,4#+-!& !2&

4211$4!& !0$&P2)$1+4'& ,+5"1'!+2(& #$,"1!,& 32#& )+33$#$(!&H1+()& -2,+!+2(,& '()& )$!$#5+($,& !0$& 2-!+5'1& -2,+!+2(&*0+40&*+11&1$')&!2&!0$&1$',!&0$'!+(6&'()&4221+(6&12').&/0+,& -2,+!+2(& +,& !0$(& *#+!!$(& +(& '& 3+1$& ('5$)&“chosenposition.txt”.&7(&,!$-&8W:%&!0$&;<=/;&4'11,&'&,4#+-!&*0+40&,'B$,&

!0$&,!'!$&B'#+'H1$,&23& !0$& #225&52)$1&*+!0& !0$&2-!+G5'1&H1+()&-2,+!+2(.&/0$,$&,!'!$&B'#+'H1$,&*+11&H$&",$)&',&+(+!+'1&42()+!+2(,&+(&!0$&($J!&!+5$&,!$-.&/0$&4'-'GH+1+!I& 23& P2)$1+4'& !2& $',+1I& #$+(+!+'1+S$& ,!'!$& B'#+'GH1$,%& !0$& !#'(,-'#$(4I&23&5'C+(6&40'(6$,& !2&52)$1,&'()& !0$& ,$-'#'!+2(& H$!*$$(& -#24$,,& 52)$1%& 42(!#21&+5-1$5$(!'!+2(& '()& ("5$#+4'1& 5$!02),& '#$& +5G-2#!'(!&#$',2(,&*0I&P2)$1+4'&H$+(6&*$11&,"+!$)&,"+!G'H1$&32#&,+5"1'!+2(GH',$)&42(!#21,&2-$#'!+2(,.&7(&,!$-&8U:%&!0$&;<=/;&4'11,&'&,4#+-!&*0+40&#$'),&

!0$& 2-!+5'1& H1+()& -2,+!+2(& 3#25& !0$&“402,$(-2,+!+2(.!J!”  file%& 42(B$#!,& +!& +(!2& '& 42(!#21,&,+6('1%&'()&,$(),&+!&!0#2"60&!0$&+(!$#($!&!2&!0$&'4!"'G!2#&!2&,$!&!0$&-2,+!+2(&23&!0$&H1+().&&T+('11I%& +(& ,!$-& 8X:%& !0$& ;<=/;& 4'11,& '& ,4#+-!&

*0+40& #$Y"$,!,& !0$& 0'#)*'#$& !2& #$-2#!& !0$& '4!"'!+2(&-2,+!+2(& ,$!.& /0+,& +,& *#+!!$(& +!& +(& '& 126& 3+1$.& /0$&;<=/;& !0$(& -'",$,& "(!+1& !0$& ($J!& !+5$& ,!$-& +,&#$'40$)&'()&#$,!'#!,&!0$&-#24$,,.&&

&!"#$%&'()'*"+$,-."/012-3&4'5/0.%/,3'6%-+&7/%8'$3&4'./'5/0.%/,'/0&'/6'.9&'.&3.'5&,,3'/6'.9&'.&3.'6-5",".:

Energy code development

Page 3: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Modular tools provide flexibility needed to support model use along product and building life cycle and leverage investments of multi-disciplinary teamsFlexible modeling using open-source Modelica language

Supports • rapid addition of new component

and system models,• modeling actual feedback control

(continuous time, discrete time, event-driven, state machines),

• emulation of non-ideal and/or faulty equipment and controls,

• initialization of states (history) to test different control sequences in real-time

• use of advanced solvers as needed for controls simulation

Linking tools with measurements using the Building Controls Virtual Test Bed and the Functional Mockup Interface

Supports• integrated analysis through run-

time coupling of simulators• model-based feedback control,

monitoring and hardware-in-the-loop verification through coupling of models with actual equipment

• exchange of models and simulation programs in a standardized format

3

Page 4: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Rapid prototyping allowed comparison of energy efficiency and comfort improvement of heating system with decentralized pumps and controls

4

Wilo Geniax radiator pump

Within one week, developed boiler model, radiator model, simple room model and two system models, consisting of 2400 component models.M. Wetter, Building Simulation, 2009

Figure 4: View of the two-room model in the graph-ical model editor of Dymola.

Fig. 4 is a view of a subset of the system modelas displayed by the graphical model editor of Dy-mola. Each icon encapsulates a model, which mayencapsulate additional models to enable a hierarchi-cal model definition. In Fig. 4, on the left are in-put signals for the room temperature setpoint and theoutside air. Next, there are vertical lines to connectfluid ports at the bottom and top of the floor. (For thetop floor of the building, the model translator will setthe mass flow rates in these pipe segments to zero,as the top ports are not connected.) In the left pipe,we placed a model that computes flow friction. Thegrey boxes in the fluid lines are finite volume mod-els for the radiators. To the right of the radiators arethe circulation pumps, and on top of the radiators arethe room models. The room models contain finitevolume models for computing the transient heat flowthrough the building constructions. Input to the roommodels are the outside temperatures and heat gains.The heat gains were defined by a time table for theleft room, but they were set to zero for the right room.The red connection lines connect the room modelsto the radiators. They equate the temperatures andbalance the convective and radiative heat flows, re-spectively, between radiator and rooms. There is alsoa heat flow connection between the rooms for inter-zonal heat transfer. Above the room models are thepump controllers. This two-room model is then in-stantiated nine times to form a three-storey housewith three vertical distribution lines, and the distri-bution lines are connected to a plant model that con-tains the boiler and the centralized system controller.The total system model is composed of 2400 compo-nent models that form a differential algebraic equa-tion system with 13,200 equations. After the sym-bolic manipulations, there were 8700 equations with300 state variables. Building the system models forthe TRV and the DP systems, including the models

0 2 4 6 8 10 12 14 16 18 20 22 24204060

T [°C

]

Boiler set point, supply and return temperatures

0 2 4 6 8 10 12 14 16 18 20 22 241820

T [°C

]

Room temperatures

0 2 4 6 8 10 12 14 16 18 20 22 240

0.51

Boiler and radiator valve signals

y

0 2 4 6 8 10 12 14 16 18 20 22 24012

Normalized radiator mass flow rates

m /

m0

(a) TRV system

0 2 4 6 8 10 12 14 16 18 20 22 24204060

T [°C

]

Boiler set point, supply and return temperatures

0 2 4 6 8 10 12 14 16 18 20 22 241820

T [°C

]

Room temperatures

0 2 4 6 8 10 12 14 16 18 20 22 240

0.51

Boiler and radiator pump signals

y

0 2 4 6 8 10 12 14 16 18 20 22 24012

Normalized radiator mass flow rates

m /

m0

(b) DP system

Figure 5: Comparison of the dynamic system re-sponse of the TRV and DP systems for a lightweightbuilding. The lower three subfigures show the trajec-tories of the four rooms that are closest and farthestaway from the boiler, with the solid lines correspond-ing to the rooms with heat gains.

for the room, the radiator, the boiler and a first ver-sion of the controllers, took about a week of labor.

Fig. 5 shows the trajectories computed by the twosystem models. In the TRV system, the radiatorvalves open at night since the room temperature fallsbelow their set point temperatures of 20!C. Thiscauses the radiators to release heat to the room, al-though at a lower rate because of the lower supplywater temperature. However, in the DP system, theradiator valves and the boiler switch off while theroom temperature is above the night setback temper-ature, which causes a larger reduction in room tem-perature at night.

- 658 -

Figure 4: View of the two-room model in the graph-ical model editor of Dymola.

Fig. 4 is a view of a subset of the system modelas displayed by the graphical model editor of Dy-mola. Each icon encapsulates a model, which mayencapsulate additional models to enable a hierarchi-cal model definition. In Fig. 4, on the left are in-put signals for the room temperature setpoint and theoutside air. Next, there are vertical lines to connectfluid ports at the bottom and top of the floor. (For thetop floor of the building, the model translator will setthe mass flow rates in these pipe segments to zero,as the top ports are not connected.) In the left pipe,we placed a model that computes flow friction. Thegrey boxes in the fluid lines are finite volume mod-els for the radiators. To the right of the radiators arethe circulation pumps, and on top of the radiators arethe room models. The room models contain finitevolume models for computing the transient heat flowthrough the building constructions. Input to the roommodels are the outside temperatures and heat gains.The heat gains were defined by a time table for theleft room, but they were set to zero for the right room.The red connection lines connect the room modelsto the radiators. They equate the temperatures andbalance the convective and radiative heat flows, re-spectively, between radiator and rooms. There is alsoa heat flow connection between the rooms for inter-zonal heat transfer. Above the room models are thepump controllers. This two-room model is then in-stantiated nine times to form a three-storey housewith three vertical distribution lines, and the distri-bution lines are connected to a plant model that con-tains the boiler and the centralized system controller.The total system model is composed of 2400 compo-nent models that form a differential algebraic equa-tion system with 13,200 equations. After the sym-bolic manipulations, there were 8700 equations with300 state variables. Building the system models forthe TRV and the DP systems, including the models

0 2 4 6 8 10 12 14 16 18 20 22 24204060

T [°C

]

Boiler set point, supply and return temperatures

0 2 4 6 8 10 12 14 16 18 20 22 241820

T [°C

]

Room temperatures

0 2 4 6 8 10 12 14 16 18 20 22 240

0.51

Boiler and radiator valve signals

y

0 2 4 6 8 10 12 14 16 18 20 22 24012

Normalized radiator mass flow rates

m /

m0

(a) TRV system

0 2 4 6 8 10 12 14 16 18 20 22 24204060

T [°C

]

Boiler set point, supply and return temperatures

0 2 4 6 8 10 12 14 16 18 20 22 241820

T [°C

]

Room temperatures

0 2 4 6 8 10 12 14 16 18 20 22 240

0.51

Boiler and radiator pump signals

y

0 2 4 6 8 10 12 14 16 18 20 22 24012

Normalized radiator mass flow rates

m /

m0

(b) DP system

Figure 5: Comparison of the dynamic system re-sponse of the TRV and DP systems for a lightweightbuilding. The lower three subfigures show the trajec-tories of the four rooms that are closest and farthestaway from the boiler, with the solid lines correspond-ing to the rooms with heat gains.

for the room, the radiator, the boiler and a first ver-sion of the controllers, took about a week of labor.

Fig. 5 shows the trajectories computed by the twosystem models. In the TRV system, the radiatorvalves open at night since the room temperature fallsbelow their set point temperatures of 20!C. Thiscauses the radiators to release heat to the room, al-though at a lower rate because of the lower supplywater temperature. However, in the DP system, theradiator valves and the boiler switch off while theroom temperature is above the night setback temper-ature, which causes a larger reduction in room tem-perature at night.

- 658 -

Conventional thermostatic radiator valves Radiator pumps

www.geniax.de

System schematics of radiator valve system

Modelica model of building, HVAC and control sequence

Page 5: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Real-time monitoring informs operator about energy waste based on comparison of simulated and measured building

5

Figure 6 Building total electric power comparison between real-time simulation and off-line simulation using the customized weather file

Figure 7 Building total electric power comparison between real-time simulation and actual measurement

Figure 8 Cooling electric power comparison between real-time simulation and actual measurement

!"!#!$!%!&!'!(!)!

"!*#'*"!+!,!! "!*#(*"!+!,!! "!*#)*"!+!,!! "!*#-*"!+!,!! "!*$!*"!+!,!! "!*$"*"!+!,!!

!"

#$%&'%()*+,-.&*/&01-2%1*3,402*5,67.2%8,(

,99:&%(0*8%6$&.-%,(*$8%()*1$8-,6%;0'*40.-<02*9%&0 20.&:-%60*8%6$&.-%,(

!

#!

%!

'!

)!

"!!

"#!

"%!

"!*#'*"!+!,!! "!*#(*"!+!,!! "!*#)*"!+!,!! "!*#-*"!+!,!! "!*$!*"!+!,!! "!*$"*"!+!,!!

!"

#$%&'%()*+,-.&*/&01-2%1*3,402*5,67.2%8,(

.1-$.& 720'%1-0'

!

"!

#!

$!

%!

&!

'!

"!*#'*"!+!,!! "!*#(*"!+!,!! "!*#)*"!+!,!! "!*#-*"!+!,!! "!*$!*"!+!,!! "!*$"*"!+!,!!

!"

5,,&%()*/&01-2%1*3,402*5,67.2%8,(

.1-$.& 720'%1-0'

20.&:-%60*8%6$&.-%,(*

20.&:-%60*8%6$&.-%,(*

Proceedings of Building Simulation 2011: 12th Conference of International Building Performance Simulation Association, Sydney, 14-16 November.

- 2895 -

Figure 6 Building total electric power comparison between real-time simulation and off-line simulation using the customized weather file

Figure 7 Building total electric power comparison between real-time simulation and actual measurement

Figure 8 Cooling electric power comparison between real-time simulation and actual measurement

!"!#!$!%!&!'!(!)!

"!*#'*"!+!,!! "!*#(*"!+!,!! "!*#)*"!+!,!! "!*#-*"!+!,!! "!*$!*"!+!,!! "!*$"*"!+!,!!

!"

#$%&'%()*+,-.&*/&01-2%1*3,402*5,67.2%8,(

,99:&%(0*8%6$&.-%,(*$8%()*1$8-,6%;0'*40.-<02*9%&0 20.&:-%60*8%6$&.-%,(

!

#!

%!

'!

)!

"!!

"#!

"%!

"!*#'*"!+!,!! "!*#(*"!+!,!! "!*#)*"!+!,!! "!*#-*"!+!,!! "!*$!*"!+!,!! "!*$"*"!+!,!!

!"

#$%&'%()*+,-.&*/&01-2%1*3,402*5,67.2%8,(

.1-$.& 720'%1-0'

!

"!

#!

$!

%!

&!

'!

"!*#'*"!+!,!! "!*#(*"!+!,!! "!*#)*"!+!,!! "!*#-*"!+!,!! "!*$!*"!+!,!! "!*$"*"!+!,!!

!"5,,&%()*/&01-2%1*3,402*5,67.2%8,(

.1-$.& 720'%1-0'

20.&:-%60*8%6$&.-%,(*

20.&:-%60*8%6$&.-%,(*

Proceedings of Building Simulation 2011: 12th Conference of International Building Performance Simulation Association, Sydney, 14-16 November.

- 2895 -

REAL-TIME BUILDING ENERGY SIMULATION USING ENERGYPLUS AND THE BUILDING CONTROLS VIRTUAL TEST BED

Xiufeng Pang1, Prajesh Bhattacharya1, Zheng O’Neill2, Philip Haves1, Michael Wetter1, and

Trevor Bailey2 1 Lawrence Berkeley National Laboratory, Berkeley, CA, USA

2 United Technologies Research Center, East Hartford, CT, USA

ABSTRACT Most commercial buildings do not perform as well in practice as intended by the design and their performances often deteriorate over time. Reasons include faulty construction, malfunctioning equipment, incorrectly configured control systems and inappropriate operating procedures (Haves et al., 2001, Lee et al., 2007). To address this problem, the paper presents a simulation-based whole building performance monitoring tool that allows a comparison of building actual performance and expected performance in real time. The tool continuously acquires relevant building model input variables from existing Energy Management and Control System (EMCS). It then reports expected energy consumption as simulated of EnergyPlus. The Building Control Virtual Test Bed (BCVTB) is used as the software platform to provide data linkage between the EMCS, an EnergyPlus model, and a database. This paper describes the integrated real-time simulation environment. A proof-of-concept demonstration is also presented in the paper.

INTRODUCTION EnergyPlus (US DOE, 2010; Crawley et al., 2001) is a detailed first principles based simulation tool that calculates the building heating and cooling loads, and disaggregates energy end uses and other variables required for a comprehensive comparison of simulated and measured performance . Conventionally, EnergyPlus is used for off-line building energy simulation analyze design for new construction and retrofit, size HVAC equipment, and model energy and water use in buildings. With the increasing need to improve building performance, the use of simulation to assess the actual performance of buildings is starting to gain more attention (Haves et al. 2001, Liu et al. 2003, Ramirez et al. 2005). This paper describes a proof-of-concept implementation of EnergyPlus in a real-time application, which represents a step towards the development and deployment of simulation-based building performance assessment techniques. Real-time building simulation, as opposed to off-line building simulation, refers to the use of a building model whose simulation time is synchronized with real time, as represented by the computer clock. Updated values of the input variables are acquired

dynamically at each step-time. With the wide deployment of Energy Management and Control Systems (EMCS) in buildings and the development of open protocols such as BACnet, the sensor and control signal information from various component and systems in a building is more acccessible (Salsbury et al. 2000). This makes it possible to acquire the real-time EnergyPlus dynamic input variables from the EMCS including but not limited to weather data, operation schedules, control set points. However, the EMCS does not normally have all the necessary model input variables that are needed for real-time simulation, e.g. solar radiation, wind speed and direction and additional instrumentation is required to accomadate these needs. The Building Controls Virtual Test Bed (BCVTB), recently developed by Lawrence Berkeley National Laboratory (LBNL), has provided a platform to synchronize EnergyPlus simulation time to real-time and exchange data with EMCS in the real-time mode as well (Wetter, 2010; Nouidui et al., 2011). It is an extension of Ptolemy II, a software environment for heterogeneous modeling and simulation. Ptolemy II is a free open-source software developed at the University of California, Berkeley. This paper describes the integrated real-time simulation environment as well as the additional instrumentation required by the real-time simulation. A proof-of-concept demonstration is then described.

SYSTEM INFRASTRUCTURE Figure 1 shows the overall system architecture. It consists of two sub-systems: (i) the EMCS that serves as the data acquisition system and (ii) the real-time simulation environment that integrates the EnergyPlus simulation, database and the data

Figure 1 Overall system architecture

!

!"#$!%

&'()*+,%--%

"#$%&'!(&)*&+!

,-./0)'1+!#2'1+!

3)')4)5&!#2'1+! 3)')4)5&!

6%&+7890/5!

.*/)0'1+*%21+3)/'1(4%54617(4+*4'%58"2%

"#$%&'!:)'&;)8!

6<-5'-%7!,&%51+5!=!21%'+10!*&>-2&5!

#**-'-1%)0!?%5'+/.&%')'-1%!

Proceedings of Building Simulation 2011: 12th Conference of International Building Performance Simulation Association, Sydney, 14-16 November.

- 2890 -

!

BCVTB – BACnet Interface

BCVTB

BACnet Reader

Simulator Actor

Database

EnergyPlus

Real-time Simulation Environment

BACnet gateway

Existing sensors & control devices

Additional instrumentation Database

Actor

Application: Performance monitoring and assessment of a real building using the BACnetReader !   Chicago, IL !   Two-storey building (70,000 ft2)

X. Pang et al., Building Simulation, 2011

Page 6: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Development and hardware-in-the-loop verification of control sequence that combines HVAC and shade control to minimize thermal load

6

!!"#$%&'()'*&+,$%&-'.$/-..%'-%0'1$21'/&34&%+/$%&'

!!"#$%&'(5'6.34+%",.7,'1&/8&&7'9&+/"7#'+7-':..2"7#'2.+-,'-&%";&-'<%.3'3&+,$%&3&7/,'.1/+"7&-'"7'=..3>'?,/+/":'

12"7-@'+7-'=..36'?:.7/%.22&-'12"7-@'

)! 6.7:2$,".7,'"#$!%&'()&*(+,! -$./'*.! .#+0! *#&*! *#$! -++1!1+)$'!+2!*#$!3+)$'(4&!!"#$%#&'(! '(5-&-6!7$,$-&*$.! .(1('&-! -$8./'*.!2+-!'+0!&,)!#(7#!1&..!5/(')(,7.!0(*#!&,)!0(*#8+/*!.#&)$!4+19&-$)!*+!+*#$-!$,$-76!.(1/'&*(+,!*++'.!'(.*$)!(,!:;<=>:<?@:A!<*&,)&-)!BCDE!"#$!&99'(4&8*(+,! .#+0.! #+0! *#$! -++1! 1+)$'! +2! *#$! 3+)$'(4&!!"#$%#&'(!'(5-&-6!4&,!5$!/.$)!&.!9&-*!+2!&!.(1/'&*(+,85&.$)! 4+,*-+'.! 2-&1$0+-F! +2! .#&)(,7E! "#(.! )$1+,8.*-&*$.! *#&*! *#$! -++1!1+)$'! +2! *#$!3+)$'(4&!!"#$%)#&'(!'(5-&-6!4&,!5$!/.$)!,+*!+,'6!2+-!0#+'$!5/(')(,7!.(1/'&*(+,.G!5/*!&'.+!&.!9&-*!+2!&!2-&1$0+-F!2+-!.(18/'&*(+,85&.$)!4+,*-+'.!+9$-&*(+,.E!

>:A7.82&-#3&7/,'"#(.!0+-F!0&.!./99+-*$)!56!*#$!:..(.*&,*!<$4-$*&-6!2+-!A,$-76!A22(4($,46!&,)!@$,$0&5'$!A,$-76G!H/(')(,7!"$4#,+'+7($.!I-+7-&1!+2!*#$!JE<E!K$9&-*1$,*!+2!A,$-76!/,)$-!L+,*-&4*!;+E!KA8:LDM8DNL?BBMOB!&,)!56!*#$!L&'(2+-,(&!A,$-76!L+11(..(+,G!I/5'(4!=,*$-$.*!A,$-76!@$.$&-4#!I-+87-&1G!H/(')(,7.!A,)!J.$!A,$-76!A22(4($,46!I-+8

7-&1G!&0&-)!,/15$-!NDD8BD8DNME!P$!0+/')!'(F$!*+!*#&,F!:,)-$0!34;$('!2+-!#(.!./99+-*!(,!)$%$'+9(,7!&,)!(,*$7-&*(,7!.4-(9*.!2+-!-&)(&,4$!4&'4/'&*(+,.E!P$!0+/')!'(F$!*+!*#&,F!A'$&,+-!Q$$!2+-!&''+0(,7!/.!&44$..!*+!*#$!:)%&,4$)!P(,)+0.!"$.*!R&4('(*6E!!=&<&%&7:&,'!SBT!! M. Wetter, W. Zuo and T. S. Nouidui, “Recent 

)$%$'+91$,*.!+2!*#$!3+)$'(4&!5/(')(,7.!'(5-&-6!for  building  energy  and  control  systems,”  in *+,-..%#&'(/ ,0/ 12./ 312/ 4&1.+&51#,&5$/ 6,%.$#-5/7,&0.+.&-.8/ 9+.(%.&:/ ;.+<5&=:/ 65+-2/ >?@@G!MDBBE!!

SMT!! 3E! P$**$-G! PE! U/+! &,)! "E! <E! ;+/()/(G!V3+)$'(,7! +2! ?$&*! "-&,.2$-! (,! @++1.! (,! *#$!3+)$'(4&! VH/(')(,7.V!Q(5-&-6GV! (,!*+,-..%#&'(/,0/!"#$%#&'/A#<"$51#,&/>?@@G!<6),$6G!MDBBE!!

SOT!! "E! <E! ;+/()/(G! 3E! P$**$-! &,)! PE! U/+G!“Validation  of  the  window  model  of  the Modelica Buildings  library,”  in *+,-..%#&'(/ ,0/A#<!"#$%>?@>G!3&)(.+,G!MDBME!!

SCT!! :;<=>:<?@:AG! <*&,)&-)! 3$*#+)! +2! "$.*! 2+-!*#$! A%&'/&*(+,! +2! H/(')(,7! A,$-76! :,&'6.(.!L+19/*$-!I-+7-&1.! W:;<=>:<?@:A!<*&,)&-)!BCD8MDDXYG! :*'&,*&Z! :1$-(4&,! <+4($*6! +2!?$&*(,7G! @$2-(7$-&*(,7! &,)! :(-8L+,)(*(+,(,7!A,7(,$$-.G!MDDXE!!

SNT!! 3E! P$**$-G! VL+8.(1/'&*(+,! +2! 5/(')(,7! $,$-76!&,)!4+,*-+'!.6.*$1.!0(*#!*#$!H/(')(,7!L+,*-+'.![(-*/&'! "$.*! H$)GV! B,"+&5$/ ,0/ !"#$%#&'/*.+0,+<5&-./A#<"$51#,&:/%+'E!OG!,+E!CG!MDBBE!!

S\T!! LE!H-++F.G!AE!:E!Q$$G!]E!Q(/G!<E!;$/$,)+-22$-G!^E!U#&+!&,)!AE!:E!QE!]E!QE!?&(6&,7!U#$,7#$-G!VI*+'$16! ==! –! ?$*$-+7$,$+/.! L+,4/--$,*!3+)$'(,7!&,)!K$.(7,!(,!_&%&GV!H$-F$'$6G!MDDXE!

SXT!! "E!<E!;+/()/(G!3E!P$**$-G!UE!QE!Q(G!]E!I&,7G!IE!Bhattacharya  and  P.  Haves,  “BACnet  and :,&'+7>K(7(*&'! =,*$-2&4$.! +2! *#$! H/(')(,7!Controls  Virtual  Test  Bed,”  in  *+,-..%#&'(/ ,0/12./ @>12/ 4!*AC/ 7,&0.+.&-.:/ D8/ >EF))G?@8/A=%&.=:/C"(1+5$#5:/H,I.<J.+/>?@@G!MDBBE!!

S`T!! I^"?a;E! Sa,'(,$TE! :%&('&5'$Z!#**9Z>>000E96*#+,E+-7>E!

SbT!! IA@QE! Sa,'(,$TE! :%&('&5'$Z!#**9Z>>000E9$-'E+-7>E!

SBDT!!@:K=:;LAE! Sa,'(,$TE! :%&('&5'$Z!#**9Z>>-&).(*$E'5'E7+%>-&)(&,4$>(,)$cE#*1'E!

SBBT!!K61+'&E! Sa,'(,$TE! :%&('&5'$Z!#**9Z>>000EO).E4+1E!

!"

#"

$!"

$#"

%!"

%#"

&!"

'($&(%!$%" '($#(%!$%" '($)(%!$%" '($*(%!$%" '(%$(%!$%" '(%&(%!$%"

+,-./

/0".01"2,32"-456"789"

-:547.;19"

<$#!!"

<$%!!"

<*!!"

<=!!"

<&!!"

!"

&!!"

=!!"

*!!"

'($&(%!$%" '($#(%!$%" '($)(%!$%" '($*(%!$%" '(%$(%!$%" '(%&(%!$%"

>/?4

"-@405;3"3/;.

"7A9"

-:54"7.;19"

B//5C"" B//58"

T. Nouidui et al. Modelica Conference, 2012

!""#$%&'"(&)*+$$

,-.,*)-/$'"0%($,((%*,%1"-$

2,(/3%0$/)'/$.)00$45"*)0,.%6$

!)7"(/$"-$%./3%0$'/%/)$"8$(""#$9$

&0,-*$

:"($)%.;$<0,-*$7"',1"-$

5)%'3()*$*%/%$

ti+1 = ti +!t

="-/("0$',>-%0'$

?%@)$'/%/)$$@%(,%&0)'$

A)%1->$%-*$$.""0,->$0"%*'$

<"3-*%(B$$."-*,1"-'$

C;B',.%0$/)'/$.)00$

:,-*$"71#%0$&0,-*$

7"',1"-$

!%BD/(%.,->$4!%*,%-.)6$

?B-.;("-,E)$1#)$

To find in real-time closed-loop control the optimal control sequence, Modelica was used to compute energy use of different control sequences using a dynamic model.The optimal control signal was sent to the Building Controls Virtual Test Bed, which sent the control action to the physical test cell, and obtained from the test cell new temperatures and radiation data for the next optimization.

Dynamic Modelica model of test cell

Page 7: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Emulation of faulty operations allows workforce training in fault detection and diagnostics

7

Teach correct and faulty operation of HVAC systems.

Ongoing: Expansion to whole-building level, including lighting and daylighting.

http://www.learnHVAC.org http://www.learngreenbuildings.org/

Instructors at community colleges configure fault-detection scenarios to train building professionals.

3D web-based interface with physics-based Modelica models to emulate system response, including control feedbacks and equipment faults.

Page 8: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Dynamic models assess system-level energy & water efficiency of residential water heating in support of energy code development

8

Generation Currently 50-75% efficient.

- Storage tank- Tankless- Tankless & buffer tank- Solar thermal

Distribution Currently 40-75% efficient.

- Topology of pipe network- Pipe diameter and insulation- Distributed buffer tanks

Draw patternsImpact of user behavior

GoalsSupport revision of Title 24.Design recommendations.Input for behavioral programs.

Page 9: The future of building modeling Modeling operations and ... Buildings Trac… · Modeling operations and control strategies with Modelica and the Building Controls Virtual Test Bed

Multidisciplinary collaborative projects for next-generation computational tools for engineered systems

9

ModelicaRapid prototyping & modeling of actual feedback control coupled to dynamic plant models

Three ITEA2 projects: 370 person years, 54 million !

Building Controls Virtual Test BedRun-time coupling of simulators,control systems and data acquisition systems

Functional Mockup InterfaceStandard for coupling of simulators and exchange of models.

ITEA project: 30 partners, > 175 person years, > 28 million !, July 2008 - June 2011

What’s nextInternational Energy Agency Annex 60

“New generation computational tools for building and community energy systems based on the Modelica and Functional Mockup Interface standards.”

5 years, 11 countries, led by LBNL and RWTH Aachen