Differences between revisions 16 and 93 (spanning 77 versions)
Revision 16 as of 2008-07-24 04:32:15
Size: 3913
Comment:
Revision 93 as of 2016-04-22 21:30:42
Size: 6159
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
||<tablestyle="float:right;" bgcolor="#FFFFF0">[[ImageLink(ptolemyEPlusSimuMac.png, , width=500)]] [[BR]] '''~+Links+~'''[[BR]] [:Requirements:Functional Requirements] [[BR]] [:Applications:Simple application] for illustration [[BR]] [:Implementation:Implementation] [[BR]] [:Download:Download] [[BR]] [:Help:Help] || ||<tablestyle="float:right;"#FFFFF0> {{attachment:ptolemyEPlusSimuMac.png||width="500"}} <<BR>> ''BCVTB system model that links !EnergyPlus with Simulink.'' <<BR>> <<BR>> '''~+News+~''' <<BR>> April 21, 2016: [[Download|Version 1.6.0]] has been released. <<BR>> January 30, 2015: [[Download|Version 1.5.0]] has been released. <<BR>> February 16, 2011: A [[https://groups.google.com/group/bcvtb|mailing list]] has been started to provide support. <<BR>> <<BR>>'''~+Links+~'''<<BR>> Documentation: <<BR>> [[http://simulationresearch.lbl.gov/bcvtb/releases/latest/doc/manual/index.xhtml|Manual]] and [[http://simulationresearch.lbl.gov/bcvtb/releases/latest/doc/code/index.html|source code]]. <<BR>> [[Publications]]. <<BR>> [[GettingStarted|Download and getting started]]. <<BR>> [[Help]]. ||
Line 7: Line 7:
This wiki describes the specification and the implementation of the Building Controls Virtual Test Bed (BCVTB). The BCVTB is based on the [http://ptolemy.berkeley.edu/ptolemyII/index.htm Ptolemy II] software environment. The BCVTB allows to couple different simulation programs for distributed simulation of control algorithms and of HVAC, CHP and refrigeration systems.
Line 9: Line 8:
Examples of such programs are [http://www.energyplus.gov EnergyPlus], [http://www.mathworks.com/products/simulink/ MATLAB/Simulink], a [http://www.modelica.org Modelica] simulation environment and a [http://www.bacnet.org/ BACnet] compliant Building Automation System (BAS). In addition to using programs that are coupled to Ptolemy II, Ptolemy II's graphical modeling environment can also be used to define system models for physical devices, communication systems or for post processing and real-time visualization. This coupling middleware allows non-expert !EnergyPlus users to extend !EnergyPlus' capabilities for controls simulation and for system simulation. The Building Controls Virtual Test Bed (BCVTB) is a software environment that allows users to couple different simulation programs for co-simulation, and to couple simulation programs with actual hardware. For example, the BCVTB allows to simulate a building in !EnergyPlus and the HVAC and control system in Modelica, while exchanging data between the software as they simulate. The BCVTB is based on the [[http://ptolemy.berkeley.edu/ptolemyII/index.htm|Ptolemy II]] software environment. The BCVTB allows expert users of simulation to expand the capabilities of individual programs by linking them to other programs. Due to the different programs that may be involved in distributed simulation, familiarity with configuring programs is essential.
Line 11: Line 10:
Typical applications include: Programs that are linked to the BCVTB are

 * the [[http://www.energyplus.net|EnergyPlus]] whole building energy simulation program,
 * the [[http://www.modelica.org|Modelica]] modeling and simulation environment [[http://www.3ds.com/products-services/catia/products/dymola|Dymola]],
 * [[https://www.fmi-standard.org/start|Functional Mock-up Units (FMU)]] for co-simulation and model-exchange for the Functional Mock-up Interface (FMI) 1.0 and 2.0,
 * the [[http://www.mathworks.com/products/matlab|MATLAB]] and [[http://www.mathworks.com/products/simulink/|Simulink]] tools for scientific computing,
 * the [[http://radsite.lbl.gov/radiance/|Radiance]] ray-tracing software for lighting analysis,
 * the [[http://www.esru.strath.ac.uk/Programs/ESP-r.htm|ESP-r]] integrated building energy modeling program,
 * the [[http://http://www.trnsys.com/|TRNSYS]] system simulation program,
 * the [[http://bacnet.sourceforge.net/|BACnet stack]], which allows exchanging data with [[http://www.bacnet.org/|BACnet]] compliant Building Automation System (BAS),
 * the analog/digital interface [[http://www.mccdaq.com/PDFmanuals/USB-1208LS.pdf|USB-1208LS]] from [[http://www.mccdaq.com/index.aspx|Measurement Computing Corporation]] that can be connected to a USB port.

In addition to using programs that are coupled to Ptolemy II, Ptolemy II's graphical modeling environment can also be used to define models for control systems, for physical devices, for communication systems or for post-processing and real-time visualization.

Typical applications of the BCVTB include:
Line 16: Line 29:
Examples are provided with the BCVTB that show how to do distributed simulation. In the examples, we linked the following programs to the BCVTB:
Line 18: Line 30:
 * a development version of !EnergyPlus
 * MATLAB/Simulink
 * a simulation program implemented in C
 * a simulation program implemented in Fortran 90
The C and Fortran 90 simulation program are provided to show developers how to couple a new program to the BCVTB. Such a coupling can be done by calling two C functions that are provided as part of the BCVTB need to be called. The BCVTB also contains examples that show how control models can be implemented directly in Ptolemy II using Ptolemy II's graphical model editor. The control examples include a heterogeneous system consisting of a discrete time controller with a Finite State Machine.
The coupling of Modelica allows using !EnergyPlus for modeling the building heat flow and daylight availability and using Modelica to model innovative building energy and control systems based on the library that is currently in development at http://simulationresearch.lbl.gov/modelica. This allows advanced users to
Line 24: Line 32:
In future versions, we plan to couple a Modelica simulation environment for which we develop a model library for building energy systems (see https://gaia.lbl.gov/bir). This will allow advanced users to
Line 26: Line 33:
 * innovate new HVAC system and control architectures for which models do not yet exist in off-the-shelve building simulation programs, and
 * analyze dynamic effects of HVAC systems, modeled in Modelica, and their local and supervisory control loops, modeled in MATLAB/Simulink, Modelica or Ptolemy.
We will also couple a BACnet compliant Building Automation System to the BCVTB. This will allow testing supervisory control sequences using an !EnergyPlus model to assess the energy and comfort performance of different supervisory control algorithms. It will also allow formal verification of control sequences before deployment to a building.
 * innovate new HVAC system and control architectures for which models do not yet exist in off-the-shelve building simulation programs,
 * analyze dynamic effects of HVAC systems, modeled in Modelica, and their local and supervisory control loops, modeled in MATLAB/Simulink, Modelica or Ptolemy, and
 * simulate virtual experiments prior to full-scale testing in a laboratory or a real building in order to determine the range of required boundary conditions, the type of experiments that need to be conducted and, for example, to improve a control logic in simulation where iterations can be made faster than in an actual experiment.
Line 31: Line 38:
Philip Haves and [:MichaelWetter:Michael Wetter][[BR]] Lawrence Berkeley National Laboratory[[BR]] [http://btech.lbl.gov Building Technologies Department][[BR]] {PHaves, MWetter}@lbl.gov [[MichaelWetter|Michael Wetter]], Thierry S. Nouidui and Philip Haves<<BR>> Lawrence Berkeley National Laboratory<<BR>> [[http://btech.lbl.gov|Building Technologies and Urban Systems Division]]<<BR>> {MWetter,TSNouidui,PHaves}@lbl.gov
Line 33: Line 40:
Note that you can edit almost any page on this wiki in order to contribute to this effort. See HelpForBeginners to get started. == Acknowledgements ==
This research was supported by the Assistant Secretary for Energy Efficiency and Renewable Energy, Office of Building Technologies of the U.S. Department of Energy, under Contract No. DE-AC02-05CH11231.

Special thanks go to Prof. Edward A. Lee and Christopher Brooks from the University of California at Berkeley for their support in integrating the BCVTB functionality into the Ptolemy II software, and implementing the Functional Mock-up Unit for co-simulation import interface in the BCVTB.

We would also like to thank

 * Timothy P. !McDowell from Thermal Energy System Specialists (TESS) for the implementation of the TRNSYS interface.
 * Pieter-Jan Hoes and Roel Loonen from the Technical University of Eindhoven for the implementation of the ESP-r interface.
 * Gregor Henze, Charles Corbin, Anthony Florita and Peter May-Ostendorp from the University of Colorado at Boulder for their contributions to the MATLAB interface and the !EnergyPlus 3.0 upgrade.
 * Rui Zhang from Carnegie Mellon for her contributions to the Windows configuration and the !EnergyPlus 3.1 upgrade.
 * Zhengwei Li from the Georgia Institute of Technology for the implementation of the BACnet interface.
 * Andrew !McNeil from LBNL for providing the Radiance example.

Building Controls Virtual Test Bed

ptolemyEPlusSimuMac.png
BCVTB system model that links EnergyPlus with Simulink.

News
April 21, 2016: Version 1.6.0 has been released.
January 30, 2015: Version 1.5.0 has been released.
February 16, 2011: A mailing list has been started to provide support.

Links
Documentation:
Manual and source code.
Publications.
Download and getting started.
Help.

The Building Controls Virtual Test Bed (BCVTB) is a software environment that allows users to couple different simulation programs for co-simulation, and to couple simulation programs with actual hardware. For example, the BCVTB allows to simulate a building in EnergyPlus and the HVAC and control system in Modelica, while exchanging data between the software as they simulate. The BCVTB is based on the Ptolemy II software environment. The BCVTB allows expert users of simulation to expand the capabilities of individual programs by linking them to other programs. Due to the different programs that may be involved in distributed simulation, familiarity with configuring programs is essential.

Programs that are linked to the BCVTB are

In addition to using programs that are coupled to Ptolemy II, Ptolemy II's graphical modeling environment can also be used to define models for control systems, for physical devices, for communication systems or for post-processing and real-time visualization.

Typical applications of the BCVTB include:

  • performance assessment of integrated building energy and controls systems,
  • development of new controls algorithms, and
  • formal verification of controls algorithms prior to deployment in a building in order to reduce commissioning time.

The coupling of Modelica allows using EnergyPlus for modeling the building heat flow and daylight availability and using Modelica to model innovative building energy and control systems based on the library that is currently in development at http://simulationresearch.lbl.gov/modelica. This allows advanced users to

  • define on the fly new HVAC components and systems in a modular, hierarchical, object-oriented, equation-based graphical modeling environment and couple them to EnergyPlus,

  • innovate new HVAC system and control architectures for which models do not yet exist in off-the-shelve building simulation programs,
  • analyze dynamic effects of HVAC systems, modeled in Modelica, and their local and supervisory control loops, modeled in MATLAB/Simulink, Modelica or Ptolemy, and
  • simulate virtual experiments prior to full-scale testing in a laboratory or a real building in order to determine the range of required boundary conditions, the type of experiments that need to be conducted and, for example, to improve a control logic in simulation where iterations can be made faster than in an actual experiment.

Contact

Michael Wetter, Thierry S. Nouidui and Philip Haves
Lawrence Berkeley National Laboratory
Building Technologies and Urban Systems Division
{MWetter,TSNouidui,PHaves}@lbl.gov

Acknowledgements

This research was supported by the Assistant Secretary for Energy Efficiency and Renewable Energy, Office of Building Technologies of the U.S. Department of Energy, under Contract No. DE-AC02-05CH11231.

Special thanks go to Prof. Edward A. Lee and Christopher Brooks from the University of California at Berkeley for their support in integrating the BCVTB functionality into the Ptolemy II software, and implementing the Functional Mock-up Unit for co-simulation import interface in the BCVTB.

We would also like to thank

  • Timothy P. McDowell from Thermal Energy System Specialists (TESS) for the implementation of the TRNSYS interface.

  • Pieter-Jan Hoes and Roel Loonen from the Technical University of Eindhoven for the implementation of the ESP-r interface.
  • Gregor Henze, Charles Corbin, Anthony Florita and Peter May-Ostendorp from the University of Colorado at Boulder for their contributions to the MATLAB interface and the EnergyPlus 3.0 upgrade.

  • Rui Zhang from Carnegie Mellon for her contributions to the Windows configuration and the EnergyPlus 3.1 upgrade.

  • Zhengwei Li from the Georgia Institute of Technology for the implementation of the BACnet interface.
  • Andrew McNeil from LBNL for providing the Radiance example.

bcvtb: FrontPage (last edited 2016-04-22 21:30:42 by ThierryNouidui)