Chapter 5. Configuring programs for use with the BCVTB

5.1. Introduction
5.2. Ptolemy II
5.2.1. Synchronous Data Flow (SDF) director
5.2.2. Data Type Conversion
5.3. EnergyPlus
5.3.1. Syntax of the xml file that configures the data mapping between EnergyPlus and the external interface
5.3.2. Example 1: Interface using ExternalInterface:Schedule
5.3.2.1. Create an EnergyPlus idf file
5.3.2.2. Create a configuration file
5.3.2.3. Create a Ptolemy II model
5.3.3. Example 2: Interface using ExternalInterface:Actuator
5.3.3.1. Create an EnergyPlus idf file
5.3.3.2. Create a configuration file
5.3.4. Example 3: Interface using ExternalInterface:Variable
5.3.4.1. Create an EnergyPlus idf file
5.3.4.2. Create a configuration file
5.4. Dymola
5.4.1. Create a Modelica model
5.4.2. Create a Modelica script
5.4.3. Create a Ptolemy II model
5.5. MATLAB
5.5.1. Create a MATLAB script
5.5.2. Create a Ptolemy II model
5.6. Simulink
5.6.1. Create a Simulink Block Diagram
5.6.2. Create a MATLAB script
5.6.3. Create a Ptolemy II model
5.7. ESP-r
5.7.1. Introduction
5.7.2. Configuring ESP-r
5.7.3. Examples
5.7.3.1. HVAC control in MATLAB
5.7.3.2. Solar shading control in Ptolemy II
5.7.4. Developing new applications
5.8. TRNSYS
5.8.1. Introduction
5.8.2. Example: HVAC control in Ptolemy II
5.8.2.1. Create the TRNSYS input file
5.8.2.2. Create a Ptolemy II model
5.9. Functional Mock-up Unit for Co-Simulation Import
5.9.1. Introduction
5.9.2. Import an FMU in the BCVTB
5.9.3. Example: Modelica room model in an FMU
5.9.3.1. Create and export the Modelica model as an FMU
5.9.3.2. Create a Ptolemy II system model
5.10. Custom program using a system command
5.10.1. Create a Ptolemy II model
5.10.2. Configure the ports of the SystemCommand actor
5.10.3. Configure the parameters of the SystemCommand actor
5.11. Radiance
5.11.1. Introduction
5.11.2. Configuring Radiance
5.11.3. Create a Radiance script
5.11.4. Create a Ptolemy II model
5.12. BACnet
5.12.1. Introduction
5.12.2. Reading from BACnet
5.12.2.1. Specification of data that will be read from BACnet
5.12.2.2. Interface to BACnet Stack
5.12.3. Writing to BACnet
5.12.3.1. Specification of data that will be written to BACnet
5.12.3.2. Interface to BACnet Stack
5.12.4. Creating a Ptolemy II model
5.12.4.1. Configuring the BACnetReader
5.12.4.2. Configuring the BACnetWriter
5.12.4.3. Synchronization with real-time
5.13. Analog/Digital Interface
5.13.1. Introduction
5.13.2. Reading from ADInterfaceMCC
5.13.2.1. Specification of data that will be read from ADInterfaceMCC
5.13.2.2. Interface to adInterfaceMCC-Stack
5.13.3. Writing to ADInterfaceMCC
5.13.3.1. Specification of data that will be written to ADInterfaceMCC
5.13.3.2. Interface to adInterfaceMCC-Stack
5.13.4. Creating a Ptolemy II model
5.13.4.1. Configuring the ADInterfaceMCCReader and ADInterfaceMCCWriter
5.13.4.2. Synchronization with real-time

This chapter describes how to configure a simulation model for use with the BCVTB. Before configuring your own simulation, it is recommended to run and modify the examples in the folder bcvtb/examples as described in Chapter 4, Running simulations with the BCVTB.

Setting up an own simulation is easiest if one of the examples in the folder bcvtb/examples is used as a starting point. Configuring a simulation with the BCVTB consists of the following steps, which are described in the next sections: