Next Article in Journal
Advancing a New Generation of Sustainability-Based Assessments for Electrical Energy Systems: Ontario as an Illustrative Application—A Review
Next Article in Special Issue
An Automated Machine Learning Approach towards Energy Saving Estimates in Public Buildings
Previous Article in Journal
Optimal Sliding-Mode Control of Semi-Bridgeless Boost Converters Considering Power Factor Corrections
Previous Article in Special Issue
Automated Generation of Energy Profiles for Urban Simulations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Advances in the Co-Simulation of Detailed Electrical and Whole-Building Energy Performance

1
National Renewable Energy Laboratory, Golden, CO 80401, USA
2
Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA
3
Department of Systems Engineering, Colorado State University, Fort Collins, CO 80523, USA
*
Author to whom correspondence should be addressed.
Energies 2023, 16(17), 6284; https://doi.org/10.3390/en16176284
Submission received: 28 June 2023 / Revised: 16 August 2023 / Accepted: 23 August 2023 / Published: 29 August 2023
(This article belongs to the Special Issue Energy Efficiency through Building Simulation)

Abstract

:
This article describes recent co-simulation advances for the simultaneous modeling of detailed building electrical distribution systems and whole-building energy performance. The co-simulation architecture combines the EnergyPlus® engine for whole-building energy modeling with a new Modelica library for building an electrical distribution system model that is based on harmonic power flow. This new library allows for a higher-fidelity modeling of electrical power flows and losses within buildings than is available with current building electrical modeling software. We demonstrate the feasibility of the architecture by modeling a simple, two-zone thermal chamber with internal power electronics converters and resistive loads, and we validate the model using experimental data. The proposed co-simulation capability significantly expands the capabilities of building electrical distribution system models in the context of whole-building energy modeling, thus enabling more complex analyses than would have been possible with individual building performance simulation tools that are used to date.

1. Introduction

The value of using building performance simulation to understand and optimize the mechanical and thermal performance of buildings is well established. Recent trends in building performance simulation research have increased the interest in similar high-fidelity models for building electrical performance, such as detailed electrical load behavior and distribution system efficiency. Grid-interactive efficient building applications require energy-consumption trends at hourly or subhourly time steps, rather than at monthly or annual intervals [1]. Similarly, utility planning activities—such as energy efficiency incentive planning, transmission and distribution planning, and policy and rate design—often need 15 min interval data and energy consumption estimates by end use [2]. In these applications, the ability to accurately represent the electrical performance of building loads and the building distribution system complements the thermal and mechanical system models currently in use.
Accurate and detailed building electrical distribution system models provide a variety of benefits, both for traditional energy efficiency analysis and grid-interactive efficient building applications [3]. Modelers are able to compare the efficiency of different distribution topologies; this capability is useful in evaluating the benefits of direct current (DC) distribution systems with and without on-site photovoltaic (PV) generation [4,5,6,7]. Electrical simulation also more accurately models reactive power consumption (useful for grid planning; (confer [2]) and provides granular insight into the building-scale impacts of utility control strategies, such as conservation voltage reduction, which are usually only analyzed at the utility scale [8,9].
Finally, electrical distribution system models enable investigation of the interaction between electrical systems and heating, ventilation, and air conditioning (HVAC) systems, allowing researchers to answer the following question: can higher-efficiency electrical distribution systems reduce building cooling load, thereby contributing to additional energy savings? In high-performing buildings, the magnitude and timing of heat gains from electrical loads have a substantial impact on building performance [10]. The same is true for data centers: increasing the efficiency of energy delivery substantially reduces cooling load and HVAC consumption [11,12]. Research of other building types has found that, in cooling-dominated climates, the reduction in cooling energy attributable to more efficient electrical distribution outweighs the increase in heating energy, thus delivering more energy savings overall than the electrical distribution savings alone [13]. These research efforts all required some degree of sequential or co-simulation to evaluate the combined electrical and thermal performance of the buildings studied.
A rich body of research has leveraged the Modelica language [14,15] to enable co-simulations of building systems. Implementations have evolved from bespoke, engine-to-engine translators to middleware-based architectures [16,17] to interoperable modules that are based on the open Functional Mock-up Interface (FMI) standard for co-simulation and model exchange [18,19]. To date, these efforts have focused on robust co-simulations of the building envelope, HVAC, other mechanical systems, and building control algorithms [20,21,22]. The Modelica Standard Library provides a basic set of electrical component models. The Modelica Buildings Library also includes an electrical package [23]; however, the simplified models used are better suited to traditional utility-scale transmission and distribution system analysis than to detailed performance evaluation of building electrical distribution systems.
In this article, we describe an advance in co-simulation capability that combines the existing strengths of EnergyPlus® [24] for whole-building energy simulations with the Building Electrical Efficiency Analysis Model (BEEAM), a newly developed Modelica library for the harmonic power-flow simulation of building electrical distribution systems [25,26]. The co-simulation capability leverages the FMI standard and is compatible with any Modelica-based co-simulation workflow. It unlocks more detailed modeling and co-simulations of building electrical distribution system performance than has previously been available. We first describe the technical implementation of the co-simulation workflow. We then demonstrate the workflow using a simple two-zone thermal chamber with internal power electronics converters and resistive loads. We present the model architecture, a demonstration model, simulation results, and validation using experimental measurements.

2. Methods

2.1. Model Architecture

In co-simulations, multiple simulation engines, or simulators, are coupled such that they exchange data via state variables. The purpose of co-simulation is to allow each engine to simulate, in detail, those aspects of the model that they are best suited to represent. The proposed co-simulation capability couples a recent version of EnergyPlus [27] with the newly developed BEEAM Modelica library [26]. EnergyPlus can model most aspects of whole-building energy performance, such as heat gains from building loads, heat transfer, and HVAC system performance. The BEEAM models the details of building electrical distribution system performance, including power flows, harmonics, and system efficiency.
In EnergyPlus, lighting and miscellaneous electrical loads are typically driven by schedules, whereas HVAC system loads (both thermal and electrical) are calculated based on the building’s internal heat gains, heat exchange with the surrounding environment, and the HVAC equipment’s performance characteristics. Like loads, electrical losses within the building distribution system contribute internal heat gains to the building. However, electrical distribution losses are rarely incorporated into whole-building energy models, in part because few tools exist which accurately predict such losses. In the proposed co-simulation architecture (Figure 1), calculated electrical distribution system loads are an output from EnergyPlus and an input to the BEEAM, while calculated electrical distribution system losses are an output from the BEEAM and an input to EnergyPlus. Data exchange is performed using the FMI standard version 2.0 [19]; see Section 2.1.3.
The proposed architecture captures the zone-level interaction among the building internal loads, the heating and cooling demand placed on the HVAC system, electricity demand, and losses in the building electrical distribution system. These quantities are interdependent; electrical distribution losses affect HVAC load, HVAC load affects electricity demand, and electrical demand affects electrical distribution losses. For certain electrical distribution topologies, distribution system losses are non-trivial, and failing to model them degrades the accuracy of the building energy-consumption estimates [4]. Co-simulation allows the modeler to simultaneously represent both the electrical and thermal behavior of the building accurately and in detail. This increases model accuracy and enables higher-fidelity analyses of building performance. Examples of questions that can be answered with the proposed architecture include the following:
  • How does the coincidence of on-site PV generation and building load influence the efficiency of energy delivery?
  • What is the impact of Power-over-Ethernet switch and cabling losses on zone cooling demand?
  • What is the overall energy efficiency of AC versus DC distribution for data centers?

2.1.1. Electrical Simulation

The components of the proposed electrical distribution system were modeled using the BEEAM library, which was developed by several contributing authors [26]. The BEEAM models electrical distribution systems in buildings, including conventional alternating current (AC), direct current (DC), and hybrid systems. A major focus of the library is the accurate modeling of the behavior of distribution systems containing nonlinear power electronic loads and sources. Conventional power-system analysis techniques do not adequately model nonlinear loads because their underlying assumption is that the devices in the distribution system are linear (no waveform distortion): existing tools for modeling building electrical distribution systems, such as the electrical package of the Modelica Buildings Library [23] or the conventional power flow model in ESP-r [28], model AC power system voltages and currents at the fundamental frequency only (typically 50 Hz or 60 Hz). In contrast, a realistic representation of the power of electronic devices requires modeling of the nonlinear (distorted) waveforms they produce and the downstream effects on electrical distribution system equipment. Harmonic power flow (HPF) models capture these nonlinear effects by modeling system voltage and currents not only at the fundamental frequency, but also at its multiples, or “harmonics”, through using a Fourier transformation to accurately represent the distorted waveforms in the frequency domain. The BEEAM’s representation of an electrical distribution system is an extension of HPF. In addition, the BEEAM constructs electrical distribution models with interconnected 2-port and 1-port networks. This is a more flexible representation than existing tools, which typically assume a pre-determined network topology (single-phase, balanced three-phase, etc.).
In comparison to existing tools, the BEEAM therefore provides the following benefits:
  • Ability to flexibly model arbitrary electrical distribution topologies (AC or DC, or single-phase or multi-phase) alone or in combination;
  • Ability to flexibly model arbitrary power flows between the electric grid, loads, on-site PV generation, and on-site storage;
  • Robust and accurate modeling of harmonic voltage and currents;
  • Accurate representation of the highly nonlinear behavior of power electronics converters;
  • Ability to compute component-level losses throughout the building electrical distribution system.
Conceptually, the BEEAM models a building electrical distribution system as a directed graph consisting of electrical buses (nodes) and branches (edges). For example, Figure 2 shows a graph with five nodes and four edges, which captures the topology of the five-bus, four-branch electrical distribution system shown in Figure 1.
The power-flow relationships within such a system may be summarized by the pair of equations as follows:
s S i P Source , s L i P Load , = i , k B i P Branch , i k i N
P Branch , i k + P Branch , k i = P Loss , i , k P Branch , i k , P Branch , k i , i , k B
Sets N and B represent all buses and branches in the power system, respectively. The bus power balance Equation (1) states that for each bus i N , the total generated power P Source , s entering the node from sources s S i is connected at the bus minus the total consumed power P Load , , thus leaving the node to loads L i , which are connected at the bus and are equal to the sum of power leaving the node via the system branches. In (1), P Branch , i k (which may be positive or negative) describes the power at bus i flowing toward bus k, which is leaving bus i and entering branch i , k , and B i describes the set of branches i , k that are connected to node i. Equation (2) states that the branch electrical loss P Loss , i , k , which is a function of the power flows associated with the branch and other variables, equals the sum of power flows entering each end of the branch. These equations omit many modeling details, such as voltage, current, reactive power, harmonics, and the electrical laws that define the behavior of linear and nonlinear system branches. Although greatly simplified, Equations (1) and (2) are sufficient to describe the relationships needed for co-simulation (see Section 2.1.3). Othee et al. [25] provided a full mathematical treatment of the BEEAM, including equations for voltage-current relationships, power balance, transformer ratios, and converter losses (AC/DC, DC/DC, and DC/AC).
The BEEAM leverages the HPF technique to solve the system of equations that define the distribution system behavior. Prior research by contributing authors has shown that HPF strikes a balance between accuracy and computational efficiency in modeling electrical systems that contain power electronics converters and other nonlinear loads [29]. Like conventional power flow, HPF models the electrical distribution system in the frequency domain through using a set of complex algebraic equations (recall that whereas conventional power flow models the system fundamental frequency, HPF models multiple frequencies). Systems of nonlinear algebraic equations can be solved with nonlinear iterative techniques, such as Newton–Raphson, without requiring numeric integration (Figure 3).
Therefore, power flow (both conventional and HPF) enjoys a substantial advantage in computational efficiency compared to the time-domain simulation of AC systems. The BEEAM uses adjacent equations to represent the nonlinear device behavior and conversion efficiency as the voltage, current, and power interactions among the harmonic frequencies. This enables the library to accurately represent highly nonlinear waveforms such as those produced by single-phase power electronics converters. The BEEAM includes models for a variety of power electronics converters, include rectifiers, inverters, bi-directional AC/DC converters, and DC/DC converters.
The BEEAM is implemented as a Modelica library. Modelica is an object-oriented, equation-based modeling language that describes the physical systems to be simulated as a collection of simultaneous equations [14]. Typically, these equations represent the underlying physics of the system and are organized hierarchically using a set of interconnected blocks. The equations in these blocks result in a system of differential-algebraic equations, which are solved using various numerical methods. The advantage of using Modelica is that the modeler can focus on the fundamental physics of the system (in this case, the HPF equations) and offload the task of providing a numerical solution to the model for a specific Modelica implementation. The BEEAM has been tested with both the open-source OpenModelica [30] and commercial Dymola [31] implementations of Modelica.

2.1.2. Building Energy Simulation

EnergyPlus is a whole-building energy simulation program developed by the U.S. Department of Energy., and it was first released in 2001 [24]. EnergyPlus includes several algorithms for simulating heat and mass balance, and it allows for the detailed simulation of building thermal envelopes, HVAC systems (e.g., fans, heating coils, and cooling coils), and central plant components (e.g., boilers, chillers, and pumps). EnergyPlus has been validated using ASHRAE Standard 140 [32].
EnergyPlus describes the energy balance of building thermal zones via
C z d T z d t = = 1 N Loads Q ˙ + s = 1 N Surf h s A s T s T z + i = 1 N Zones m ˙ i C p T i T z + m ˙ C p T T z + Q ˙ sys
in which T z is the zone temperature, C z d T z d t represents the energy stored in the zone air, Q ˙ represents the internal heat gains from loads in the zone, h s A s T s T z represents the convective heat transfer from zone surfaces, m ˙ i C p T i T z represents heat transfer due to interzone air mixing, m ˙ C p T T z represents heat transfer due to outside air infiltration, and Q ˙ sys represents the heat energy delivered by zone air systems (adapted from Equation (2.1) [33]). Heat gains from internal loads Q ˙ are a function of building services and occupant behavior, Q ˙ sys is a function of the building’s HVAC system performance and is related to the HVAC input energy, and the other expressions represent the heat transfer between zones. Similar equations exist for radiative forcing. EnergyPlus also models many other relationships within the building, but the zone energy balance is most relevant for understanding co-simulations with the BEEAM.

2.1.3. Co-Simulation Implementation and Data Exchange

The electrical loads and losses in a building’s distribution system relate directly to the heat gains in the building zones. Co-simulation requires mapping the electrical model to the thermal model and vice versa:
P Load , = f Q ˙ , Q ˙ sys ,
Q ˙ = g P Load , , P Loss , i , k ,
Equations (4) and (5) are conceptual; their exact implementation varies by building and component. For example, the energy consumption from electrical lights in a zone driven by a schedule in the whole-building energy model (EnergyPlus) might be mapped to the load imposed on a particular lighting circuit in the electrical distribution model (BEEAM). Similarly, the same lighting load might induce driver losses (modeled in the BEEAM), which correspond to the heat gains in the plenum above the building zone that the lights serve (modeled in EnergyPlus). These interdependencies in turn affect the thermal (heating or cooling) load on the building’s HVAC system.
The FMI standard [34] allows for the exchange of this information between simulation tools via co-simulation, in which each model has a built-in solver, or via model-through-model exchange, in which the models require an external solver. A simulation or model exported using this standard is called an a functional mockup unit (FMU). A co-simulation FMU is, in essence, a black box executable program that computes model outputs when given the correct input connections and is driven by a controlling simulation manager. This has the advantage in that complicated simulation workflows and numerical solvers can be pre-packaged or compiled into an FMU, which are then used within an equation-oriented environment such as Modelica. The beauty of this approach is that mapping functions f and g may be tailored as needed to the specifics of the building being modeled without a need for re-imagining the internal implementation of either simulation engine.
The specific co-simulation configuration used for this work was an electrical model created within Dymola with an embedded EnergyPlus FMU. Figure 4 depicts this arrangement for the demonstration model described in the following section. Appendix A describes the technical implementation of the co-simulation.

2.2. Validation Experiment

To demonstrate the proposed co-simulation capability and to validate the accuracy of the data exchange mechanism, we modeled the behavior of a two-zone thermal chamber with internal electrical loads, as well as validated the model using a series of laboratory experiments. Although simple, the experiment provides concrete examples of mapping functions f and g, which are described by (4) and (5), and therefore demonstrate a complete electrical–thermal co-simulation model.
The experimental thermal chamber used was a Steca PF-166 chest refrigerator. The chamber was partitioned internally into conditioned and unconditioned zones. The conditioned zone was cooled via a simple cooling water loop and coil; the unconditioned zone had no direct cooling. Both zones had internal heat gains produced by a simple electrical distribution system consisting of power electronic converters, fans, and resistive loads. Figure 5 displays the physical layout of the experiment. We modeled the thermal chamber and cooling loop using EnergyPlus, and the electrical devices were modeled using the BEEAM. Section 2.2.1 and Section 2.2.2 describe the electrical and thermal models, respectively.
The configuration of the electrical devices approximately mimics the configuration of a building with loads in a conditioned space (e.g., light-emitting diode [LED] lighting in an occupied room) and power electronics conversion equipment in an adjacent, unconditioned space (e.g., LED drivers in a plenum). The load in the conditioned zone consisted of two  32.7   Ω  load resistors; each load resistor was connected to the output of a laptop power supply (AC/DC converter), which was located in the unconditioned zone. The two power supplies used in the experiment were Hewlett Packard (HP) models 677777-002 and 608428-002, each rated at 90 W and with nominal output voltages of 19.5 VDC and 19.0 VDC, respectively. The load resistors consumed approximately 11 W each. Each zone was well mixed using a small 5 VDC fan; each fan consumed approximately 0.5 W. The two fans were fed from a small, dedicated AC/DC power supply located in the conditioned zone. A Chroma 66205 digital power meter measured the total electrical input power.
Similar to a building, the thermal chamber’s internal thermal mass and insulation (R-value) vary across the physical space. The aggregate R-value of the chamber envelope was approximately 2.9 m 2 K/W, and the R-value of the ceiling tile used as a vertical partition was approximately 0.26 m 2 K/W. The conditioned zone used a liquid cooling system, with water pumped through a cooling coil from a cooling water reservoir. The cooling water reservoir contained a fixed mass of water that was continually cycled through the cooling coil, causing the cooling water temperature to rise as it absorbed heat energy from the thermal chamber. During the experiments, an Endress-Hauser Picomag flow meter measured the cooling water flow rate, and an Onset HOBO data logger with multiple temperature probes recorded the air temperatures of the conditioned and unconditioned zones, the ambient temperature, as well as the water inlet and outlet temperatures. The air temperature probes were shielded to minimize the effects of radiative gains on the measured temperatures. The pump was external to the thermal chamber, and its energy consumption was not recorded.
We conducted four experiments: three to calibrate the properties of the thermal chamber model, and one to validate the final coupled model. The first three experiments characterized the chamber envelope, cooling coil and cooling water loop, and the properties of the partition between the conditioned and unconditioned zones, respectively. The model properties calibrated during each experiment were set to fixed values in later experiments. These calibration experiments are not described in detail in this article; however, Section 2.2.2 provides the chamber model’s calibrated properties. The fourth and final experiment provided measurements so as to validate the co-simulation model.
Prior to the validation (fourth) experiment, we opened the thermal chamber and allowed it to reach equilibrium with the laboratory ambient environment. The validation experiment then proceeded in two stages. In the first stage, we closed the chamber and activated the electric loads but not the cooling water loop. Internal heat gains from the electric loads caused the thermal chamber to heat up: the internal temperature of the conditioned chamber rose to approximately 65 C over the course of 40 h. After 40 h, we activated the cooling system, thus allowing the internal air temperature to rapidly decrease to a steady-state value of approximately 39 C . The experiment concluded after 52 h. Charts of the experimental results with comparisons to the modeled data are provided in Section 3.

2.2.1. Electrical Model

Figure 6 provides a single-line diagram of the electrical distribution system used in the validation experiment. The electrical model consists of three AC/DC power electronics converters (the two HP laptop power supplies plus the small DC fan power supply), two fixed-load resistors ( 32.7   Ω each), and two small DC circulation fans modeled as fixed 0.5 W DC loads. We obtained independent efficiency and harmonic characterization data for each of the HP laptop power supplies via laboratory measurement; we used these to construct AC/DC converter models as described in [25]. The characterization data showed that the actual power supply output voltage varied slightly with load. Therefore, we modeled the power supply output voltages at their measured values for 10% loading (approximately  9 W): 19.92 VDC for the HP 677777-002 and 19.51 VDC for the HP 608428-002. We modified the BEEAM to vary the power supply voltage as a function of load, which is a recommended enhancement. Characterization data for the fan power supply were not available. Therefore, we modeled this power supply using the efficiency curve of a generic 24 VDC, 25 W LED driver, but with the output voltage scaled to 5 VDC.
The EnergyPlus model was embedded in the BEEAM model as an FMU, as described in Section 2.1.3. The BEEAM model independently summed the measured load power and converter losses for the conditioned and unconditioned zones (see Figure 6), as well as provided these values as inputs to the EnergyPlus FMU. This data transfer represents the mapping function g of Equation (5).
To demonstrate bidirectional data exchange, we modeled the load resistors with a temperature coefficient of resistance derived from the experimental data, such that their resistance (and therefore power consumption) varied slightly with the conditioned zone temperature. The modeled effect of zone temperature on the load power was small and had negligible impact on the validation results; furthermore, it was included primarily to demonstrate the data export from EnergyPlus to the BEEAM, that is, the mapping function f of Equation (4).

2.2.2. Thermal Model

We modeled the thermal chamber and cooling system in EnergyPlus. The geometry of the model (Figure 7) followed the refrigerator unit manufacturer’s documentation. The unit’s single internal chamber was partitioned into a conditioned zone (left) and an unconditioned zone (upper-right). The small chamber at the lower-right of the unit contained the compressor in the original refrigerator. The compressor was not in operation during the experiment, and the compressor chamber was modeled as a thermal zone at the laboratory ambient temperature.
The thermal properties of the chamber envelope were based on the material properties specified by the manufacturer: an outer housing of 0.7 mm painted steel, 100 mm of insulation with an insulation value of 19 mW/K, and an inner housing of 0.7 mm aluminum. In the experimental thermal chamber (Figure 5b), the barrier between the conditioned and unconditioned zones was penetrated by a metal rod (which provides structure for sensors) and several small holes were created. To model the effect of these discontinuities, we added an airflow mixing-rate variable that captures the additional heat transfer between the two zones. This approach enabled us to achieve alignment between the modeled and measured zone temperature values without requiring a detailed thermal bridge model. The envelope thermal properties and the properties of the partition were experimentally calibrated via a set of three experiments:
  • We removed the chamber partition and cooling system, then introduced a known, fixed internal heat source to produce a response in the chamber internal temperature. We used the steady-state temperature to calibrate the insulation properties, and the transient response was used to calibrate the chamber’s overall thermal mass.
  • We introduced the cooling water loop to the chamber (still with the partition removed), heated the chamber, and allowed the cooling loop to cool the chamber to a steady-state temperature. We used this experiment to calibrate the properties of the cooling model.
  • We introduced the partition between the thermal zones, then performed a heating/cooling cycle with a fixed internal heat source in one zone only. We enabled the cooling loop only after the chamber had heated to a steady-state temperature. With this experiment, we calibrated the insulation properties of the inner partition, the thermal mass of each zone, and the air mixing between the zones.
These experiments yielded a well-calibrated thermal model for the chamber and cooling loop. Table 1 lists the final calibrated values.
The internal heat gains from the loads and power supplies were modeled as Electric-Equipment objects with values driven by the EnergyPlus external interface, as described in Appendix A.1. Because the experiment used mixing fans, we assumed a uniform internal air temperatures in each chamber and assigned each load object a convection ratio of 1.0. Because the chamber was closed (no external air is delivered from an HVAC system, that is, no Q ˙ sys ), and because we lacked the characterization data for the cooling coil required to implement a full-fidelity coil model in EnergyPlus, we represented the delivered cooling, Q ˙ , as a “negative load” rather than a built-up cooling coil. We described the heat transfer using a simple thermal resistance equation between the water and air “reservoirs”,
Q ˙ = T Air T Water R Coil
in which T Air is the modeled temperature of the conditioned zone air, T Water is the measured entering temperature of the cooling water, and R Coil is a thermal resistance for the cooling water coil, calibrated to 0.75 W/K. This simple cooling model performed well because the coil temperature remained consistently above the dew point, and because the coil entering and leaving water temperatures were nearly identical throughout the entire experiment. We implemented this model as a negative heat gain using EnergyPlus Energy Management System code, which allows for the customization of EnergyPlus internal behavior.
The Energy Management System code also overrode the normal weather input so as to set the ambient temperature to the measured temperature of the laboratory, as well as to set the wind speed and solar irradiance to zero (which is consistent with an indoor laboratory environment). Ambient temperature and the measured temperature of the cooling water were provided as model inputs via schedules.

2.2.3. Model Summary

The coupled electrical and thermal models accepted ambient conditions, operating schedules, and rated loads as inputs, and they predicted the total electrical input power and thermal chamber internal temperatures as outputs. Table 2 summarizes the model inputs, model outputs, and calibrated model parameters for both the electrical and thermal models. The model inputs comprise the measured values imposed as schedules or fixed values in the models, while the model outputs comprise the simulated values that were compared to the experimental data so as to validate the accuracy of the co-simulation (see Section 3). The calibrated model parameters were derived from or calibrated based on independent laboratory experiments, as described in Section 2.2.1 and Section 2.2.2, except for the temperature coefficient of the load resistances, which was estimated directly from the measured power in the validation experiment. This last parameter had a negligible impact on the model outputs, and it was included primarily to demonstrate bidirectional data exchange (see Section 2.2.1). The model parameters that were not calibrated, such as the converter power and voltage ratings, are not listed in the table.

3. Results

We simulated the coupled model using Dymola with an explicit Euler integration method and a fixed time step of 60 s. The model inputs from the measured data were as documented in Table 2. The FMU used the FMI 2.0 standard. Under this configuration, the simulation was numerically stable. (However, we note that an initial attempt to simulate both models as compiled FMUs when using Dymola required a first-order lag block between the FMUs in order for the simulation to be stable. This limitation is an artifact of the Dymola solver and was therefore abandoned in favor of the single-FMU configuration of Figure 4.)
Figure 8 displays the time-series results of the validation experiments, including comparisons with the model outputs for conditioned zone temperature, unconditioned zone temperature, and electrical input power. As described in Section 2.2, the cooling system was disabled (off) during hours 0–40 and enabled (on) during hours 40–52. The conditioned and unconditioned zones reached the modeled steady-state temperature rises of 65 C  and  63 C , respectively, by hour 25. Shortly after cooling began, both zones reached a second steady-state temperature of approximately 39 C , and remained at that temperature until the conclusion of the experiment.
The modeled outputs closely tracked the measured data. The BEEAM model underpredicted the electrical input power by approximately 1 W. We did not verify the load resistances (the model uses the nominal values), nor did we characterize the AC/DC converter powering the DC fans. These are two potential sources of the error in predicted power. The EnergyPlus model also slightly underpredicted the total temperature rise of the conditioned zone during the unconditioned period; this is expected given the underprediction of the internal gains. The thermal dynamics of the model aligned well with the measured data.
To quantify the accuracy of the model, we calculated the normalized mean bias error (NMBE) and the coefficient of variation in the root-mean-square error (CV(RMSE)) per the formulas defined in ASHRAE Guideline 14 [35],
NMBE = i = 1 n y i y ^ i n p × y ¯ ,
CV ( RMSE ) = i = 1 n y i y ^ i 2 n p y ¯ ,
in which n is the number of observations, y i represent the measured observations, y ^ i represent the modeled observations, y ¯ is the arithmetic mean of the measured data, and p = 1 for the calibrated simulations. (Although we reference ASHRAE Guideline 14 for the NMBE and CV(RMSE) formulas, it does not otherwise directly apply to the model validation performed in this work.) Because the raw measured and modeled data were not fully time-aligned, the NMBE and CV(RMSE) calculations used 15 min averages for each time series. Table 3 provides the values of the validation metrics for each model output of interest. Note that the negative value for NMBE for the unconditioned zone temperatures indicated that the model underpredicts the measured values.

4. Discussion

The simulation results demonstrate the stable co-simulation of a whole-building energy model (EnergyPlus) with a detailed electrical distribution system performance model (BEEAM). When given well-calibrated input models, the co-simulation can also be highly accurate. In this case, the demonstration model closely replicated the results of the validation experiment, including electrical input power and zone temperatures.
More importantly, the validation experiment demonstrated the validity of the data exchange between the electrical and thermal models. In the experiment, approximately 6 W of the modeled 29 W of internal heat gains (21%) represented the losses associated with the power electronics converters. Had these losses not been included in the model, the internal temperature and cooling load prediction errors would have been substantial. The same principle extends to whole-building models with many thermal zones, many loads, and complex electrical distribution systems. By capturing the interaction between the behavior of a building’s electrical and thermal systems, the proposed co-simulation framework enabled more complex, comprehensive analyses of the energy efficiency, as well as allowed for the co-optimization of building electrical and thermal performance.
This validation study model uses a simple Euler integration method. Although variable-step and adaptive-step methods can exhibit improved performance, co-simulation using an EnergyPlus FMU requires fixed, predetermined time steps (implying a fixed-step integration method). In addition, the selected integration method has minimal impact on the model performance in this case because the harmonic power-flow equations are algebraic, not differential. However, the integration method is an important consideration for more complex models.

4.1. Limitations

The proposed co-simulation capability shows significant promise but is, at present, subject to several practical limitations. Presently, each co-simulation requires bespoke modeling, with simulation settings and interconnections between the BEEAM and EnergyPlus model being individually enumerated by the modeler. Little automation infrastructure for FMU-based co-simulation currently exists within the building performance simulation space. These limitations should be addressed in future work.
The experimental validation also had several limitations:
  • As previously mentioned, the AC/DC power supply serving the circulation fans was not characterized. Therefore, its efficiency curve remains unknown. This was a potential source of error in the prediction of electrical input power.
  • The high circulation rate of the cooling water relative to the load and the coil characteristics resulted in nearly identical coil entering and leaving water temperatures. Because the temperature difference was very small, random errors and/or biases in the measured water temperatures frequently resulted in a calculated cooling energy that was physically impossible (such as negative cooling or steady-state cooling that significantly exceeded the thermal chamber’s internal heat gains). As a result, the experimental cooling energy data were unusable, and we did not attempt to compare them to the modeled cooling energy.
  • Because accuracy specifications were not available for all the of the instrumentation used in the experiment, we did not perform an uncertainty analysis. It is therefore unknown whether the model outputs match the measured data within the experimental uncertainty. Nevertheless, the calculated error metrics were low.
The scope of the experimental validation was limited by laboratory-access restrictions related to the COVID-19 pandemic. We recommend that future work include more extensive experimental validation.

4.2. Future Work

We recommend future work to further validate the accuracy of the BEEAM and of the co-simulation models that incorporate the BEEAM so as to investigate the scalability of such co-simulation models, and, in particular, to provide automation that enables the use of co-simulation in large-scale analyses. For validation, co-simulation demonstrations using real building systems should be considered. In addition, the capability should be validated for a diversity of building types, system configurations, and electrical components. Full-building distribution systems also require much larger, more complex electrical distribution models. Future work should investigate the scalability of the BEEAM to accommodate such models. Finally, without advances in automation, Modelica- and FMU-based co-simulation models have limited application in large-scale analyses. Future work for co-simulation automation should include developing common model architecture and data exchange standards to allow for the programmatic construction of the BEEAM models; developing model articulation capabilities for Modelica; and implementing Modelica-based workflows for large-scale parametric analyses, including FMU-based simulation, as recommended by [36]. These capabilities will enable the use of co-simulation models at the same level of sophistication that single-engine physics-based building models are used today.

5. Conclusions

We describe and demonstrate an advance in co-simulation capability that combines the BEEAM—a Modelica library for detailed modeling of building electrical distribution systems—with the whole-building energy modeling capabilities of EnergyPlus. The BEEAM library is also compatible with other Modelica libraries, permitting more complex co-simulations. We verified the stability of the demonstration model and validated its accuracy compared to a laboratory demonstration by using a simple two-zone thermal chamber with internal electrical equipment. The proposed capability significantly expands the fidelity of building electrical distribution system modeling in the context of whole-building energy modeling, thus enabling more complex analyses than would have been possible with the individual building performance simulation tools that are used to date.

Author Contributions

Conceptualization: S.F., R.B. and J.C.; Funding Acquisition: S.F., R.B. and O.G.; Methodology: S.F., B.B. and D.L.G.; Project Administration: S.F. and R.B.; Supervision: S.F., R.B. and J.C.; Visualization: S.F., B.B., D.L.G., K.C. and J.S.; Writing—Original Draft: S.F., B.B., D.L.G., K.C., A.O. and J.S.; Writing—Review and Editing: S.F., K.C., J.S., O.G., R.B. and J.C.; Resources: B.B., R.B., O.G. and J.C.; Software: B.B., K.C. and A.O.; Validation: B.B. and K.C.; Data Curation: D.L.G. and J.S.; Formal Analysis: D.L.G.; Investigation: D.L.G., K.C., A.O. and J.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was authored in part by the National Renewable Energy Laboratory, operated by the Alliance for Sustainable Energy, LLC, for the U.S. Department of Energy (DOE) under Contract No. DE-AC36-08GO28308, and by Lawrence Berkeley National Laboratory, operated for the DOE under Contract No. DE-AC02-05CH11231. Funding was provided by the DOE Office of Energy Efficiency and Renewable Energy Building Technologies Office Emerging Technologies Program. The views expressed in this article do not necessarily represent the views of the DOE or the U.S. Government.

Data Availability Statement

The data and models that support the findings of this study are openly available in the BEEAM code repository at https://github.com/NREL/BEEAM/releases/tag/v0.2.0-beta (accessed on 1 June 2023).

Acknowledgments

The authors thank Arthur Santos of Colorado State University for providing characterization data for the power electronics converters used in the validation study.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Co-Simulation Technical Implementation

This appendix describes the technical implementation of FMI-based cosimulation between EnergyPlus and Modelica.

Appendix A.1. EnergyPlus External Interface

EnergyPlus uses a text Input Data File (IDF) that defines objects to represent building components and processes. The EnergyPlus Input Output Reference [37] describes the available IDF objects in detail; the objects most pertinent to co-simulation with the BEEAM are described here. Heat from electrical loads is introduced to building zones using ElectricEquipment objects, which are parameterized by an operation schedule and a design power level. These objects can be used to represent heat gains from electrical distribution equipment, such as power electronics converters. For FMI-based co-simulation, these objects can be driven by external models by defining the operation schedule value as an FMU input variable. To configure the model for this FMU data exchange, the modeler defines an ExternalInterface:FunctionalMockupUnitExport:To:Schedule object and references this schedule from the ElectricEquipment object, which represents the electrical device. The design level of the ElectricEquipment must be set equal to the units of the external signal (e.g., 1 W for an external signal with units of watts).
Outputs of the EnergyPlus model to be made available to external models are defined using ExternalInterface:FunctionalMockupUnitExport:From:Variable objects; each such object makes one internal EnergyPlus variable available as a readable output of the FMU. The final object necessary for FMU setup is setting the ExternalInterface object to the value “FunctionalMockupUnitExport”, which defines the creation of an external FMU.

Appendix A.2. Functional Mockup Interface

As described in Section 2.1.3, the FMI standard forms the basis for the co-simulation implementation. In addition to defining their own internal models or interfacing with existing FMUs, Modelica environments such as Dymola can also export Modelica models as FMUs for model exchange or co-simulation. In Dymola, the “Export FMU” function in the graphical user interface implements this feature. (Note that this capability requires a compiler and appropriate license to function.) FMU export allows for several simulation configurations, including Modelica model plus FMU, dual FMUs imported into a Modelica model, or multi-FMU co-simulation using the System Structure and Parameterization standard [38], as is conducted in the OpenStudio® Analysis Framework [36].
EnergyPlus models are not defined in Modelica, but they can nevertheless be converted to compliant FMUs by using the EnergyPlusToFMU software version 3.1.0 developed by Nouidui et al. [39]. EnergyPlusToFMU is an open-source, freely available command line utility that creates an FMU from an EnergyPlus model. The EnergyPlus model must first be prepared with appropriate ExternalInterface objects as described in Appendix A.1. Then, EnergyPlusToFMU compiles the model and any required files into a ZIP archive that contains the following:
  • All required model files;
  • An extensible markup language (XML) description file that lists the input and output variables;
  • A platform-specific executable (DLL or EXE) file for simulation.
This ZIP archive is an FMU of the co-simulation type, meaning that the EnergyPlus solver is built into the FMU. EnergyPlusToFMU now supports both the FMI 1.0 and 2.0 standards; FMI 2.0 allows derivative information with respect to states and inputs, as well as other improvements [40].
A successful FMU compilation of an EneryPlus model has several requirements:
  • Because EnergyPlus’ minimum simulation time step is 60 s, the model cannot run faster than or communicate with a time step smaller than 60 s.
  • EnergyPlus simulates full days only; therefore, the total model simulation time must be a multiple of 86,400 s (1 day). With a 60 s time step, this implies 1440 total steps for each full day of simulation.
  • The StopTime property of the FMU must be defined; it cannot be left blank as is typically performed for ad-hoc simulations.
  • Communication with the EnergyPlus FMU can only occur at the time step of the EnergyPlus model. Therefore, the total number of time steps for the overall simulation must be specified such that the FMI communication step size matches the native EnergyPlus model time step.
Once compiled, the validity of an FMU can be verified using the FMI Compliance Checker [41].

References

  1. Roth, A.; Reyna, J. Grid-Interactive Efficient Buildings Technical Report Series: Whole-Building Controls, Sensors, Modeling, and Analytics; Technical Report NREL/TP-5500-75478; Building Technologies Office: Washington, DC, USA, 2019. [Google Scholar] [CrossRef]
  2. Mims Frick, N.; Wilson, E.J.; Reyna, J.; Parker, A.S.; Present, E.K.; Kim, J.; Hong, T.; Li, H.; Eckman, T. End-Use Load Profiles for the U.S. Building Stock: Market Needs, Use Cases, and Data Gaps; Technical Report NREL/TP-5500-75215; National Renewable Energy Lab. (NREL): Golden, CO, USA, 2019. [Google Scholar] [CrossRef]
  3. Ye, Y.; Faulkner, C.A.; Xu, R.; Huang, S.; Liu, Y.; Vrabie, D.L.; Zhang, J.; Zuo, W. System modeling for grid-interactive efficient building applications. J. Build. Eng. 2023, 69, 106148. [Google Scholar] [CrossRef]
  4. Gerber, D.L.; Vossos, V.; Feng, W.; Marnay, C.; Nordman, B.; Brown, R. A Simulation-Based Efficiency Comparison of AC and DC Power Distribution Networks in Commercial Buildings. Appl. Energy 2018, 210, 1167–1187. [Google Scholar] [CrossRef]
  5. Marchionini, B.; Zheng, S. Direct Current in Buildings: A Look at Current and Future Trends; Technical Report NEMA DCP 1-2018; National Electrical Manufacturers Association: Arlington, VA, USA, 2018. [Google Scholar]
  6. Gal, I.; Lipson, B.; Larsen, T.; Tsisserev, A.; Mereuta, J. DC Microgrids in Buildings; Technical Report, CSA Group: Toronto, ON, USA, 2019. [Google Scholar]
  7. Vossos, V.; Gaillet-Tournier, M.; Gerber, D.; Nordman, B.; Brown, R.; Bernal, W.; Ghatpande, O.; Saha, A.; Michael, D.; Stephen, F. Direct-DC Power in Buildings: Identifying the Best Applications Today for Tomorrow’s Building Sector. In Proceedings of the ACEEE Summer Study on Energy Efficiency in Buildings, Virtual, 17–21 August 2020; p. 15. [Google Scholar]
  8. Sunderman, W.G. Conservation Voltage Reduction System Modeling, Measurement, and Verification. In Proceedings of the PES Transmission and Distribution Conference and Exposition (T&D 2012), Orlando, FL, USA, 7–10 May 2012; pp. 1–4. [Google Scholar] [CrossRef]
  9. Sen, P.K.; Lee, K.H. Conservation Voltage Reduction Technique: An Application Guideline for Smarter Grid. IEEE Trans. Ind. Appl. 2016, 52, 2122–2128. [Google Scholar] [CrossRef]
  10. Johansson, D.; Bagge, H. Simulating Space Heating Demand with Respect to Non-Constant Heat Gains from Household Electricity. J. Build. Perform. Simul. 2011, 4, 227–238. [Google Scholar] [CrossRef]
  11. Pratt, A.; Kumar, P.; Aldridge, T.V. Evaluation of 400 V DC Distribution in Telco and Data Centers to Improve Energy Efficiency. In Proceedings of the INTELEC 07—29th International Telecommunications Energy Conference, Rome, Italy, 30 September–4 October 2007; pp. 32–39. [Google Scholar] [CrossRef]
  12. AlLee, G.; Tschudi, W. Edison Redux: 380 Vdc Brings Reliability and Efficiency to Sustainable Data Centers. IEEE Power Energy Mag. 2012, 10, 50–59. [Google Scholar] [CrossRef]
  13. Fregosi, D.; Ravula, S.; Brhlik, D.; Saussele, J.; Frank, S.; Bonnema, E.; Scheib, J.; Wilson, E. A Comparative Study of DC and AC Microgrids in Commercial Buildings across Different Climates and Operating Profiles. In Proceedings of the 2015 IEEE First International Conference on DC Microgrids (ICDCM), Atlanta, GA, USA, 7–10 June 2015; pp. 159–164. [Google Scholar] [CrossRef]
  14. Mattsson, S.E.; Elmqvist, H. Modelica—An International Effort to Design the Next Generation Modeling Language. IFAC Proc. Vol. 1997, 30, 151–155. [Google Scholar] [CrossRef]
  15. Modelica Association. Modelica—A Unified Object-Oriented Language for Systems Modeling: Language Specification, Version 3.5; Modelica Association: Vienna, Austria, 2021. [Google Scholar]
  16. Trčka, M.; Hensen, J.L.M.; Wetter, M. Co-Simulation of Innovative Integrated HVAC Systems in Buildings. J. Build. Perform. Simul. 2009, 2, 209–230. [Google Scholar] [CrossRef]
  17. Wetter, M. Co-Simulation of Building Energy and Control Systems with the Building Controls Virtual Test Bed. J. Build. Perform. Simul. 2010, 4, 185–203. [Google Scholar] [CrossRef]
  18. Nouidui, T.; Wetter, M.; Zuo, W. Functional Mock-up Unit for Co-Simulation Import in EnergyPlus. J. Build. Perform. Simul. 2013, 7, 192–202. [Google Scholar] [CrossRef]
  19. Modelica Association. Functional Mock-Up Interface for Model Exchange and Co-Simulation, Version 2.0.1; Modelica Association: Vienna, Austria, 2019. [Google Scholar]
  20. Wetter, M.; Zuo, W.; Nouidui, T.S.; Pang, X. Modelica Buildings Library. J. Build. Perform. Simul. 2013, 7, 253–270. [Google Scholar] [CrossRef]
  21. Wetter, M.; Nouidui, T.; Lorenzetti, D.; Lee, E.A.; Roth, A. Prototyping the Next Generation EnergyPlus Simulation Engine. In Proceedings of the 14th International Conference of the International Building Performance Simulation Association (BS2015), Hyderabad, India, 7–9 December 2015; pp. 403–410. [Google Scholar]
  22. Wetter, M.; Bonvini, M.; Nouidui, T.S. Equation-Based Languages—A New Paradigm for Building Energy Modeling, Simulation and Optimization. Energy Build. 2015, 117, 290–300. [Google Scholar] [CrossRef]
  23. Bonvini, M.; Wetter, M.; Nouidui, T.S. A Modelica Package for Building-to-Electrical Grid Integration. In Proceedings of the 5th BauSim Conference, Aachen, Germany, 22–24 September 2014; pp. 6–13. [Google Scholar]
  24. Crawley, D.B.; Lawrie, L.K.; Winkelmann, F.C.; Buhl, W.F.; Huang, Y.J.; Pedersen, C.O.; Strand, R.K.; Liesen, R.J.; Fisher, D.E.; Witte, M.J.; et al. EnergyPlus: Creating a New-Generation Building Energy Simulation Program. Energy Build. 2001, 33, 319–331. [Google Scholar] [CrossRef]
  25. Othee, A.; Cale, J.; Santos, A.; Frank, S.; Zimmerle, D.; Ghatpande, O.; Duggan, G.; Gerber, D. A Modeling Toolkit for Comparing AC and DC Electrical Distribution Efficiency in Buildings. Energies 2023, 16, 3001. [Google Scholar] [CrossRef]
  26. Othee, A.; Ball, B.; Frank, S. Building Electrical Efficiency Analysis Model (BEEAM). 2022. Available online: https://github.com/NREL/BEEAM/releases/tag/v0.2.0-beta (accessed on 1 June 2023).
  27. EnergyPlus Development Team. EnergyPlus 9.4.0. Available online: https://github.com/NREL/EnergyPlus/releases/tag/v9.4.0 (accessed on 23 March 2021).
  28. Clarke, J.A.; Kelly, N.J. Integrating Power Flow Modelling with Building Simulation. Energy Build. 2001, 33, 333–340. [Google Scholar] [CrossRef]
  29. Santos, A.; Cale, J.; Othee, A.; Gerber, D.; Frank, S.; Duggan, G.; Zimmerle, D.; Brown, R. Comparison of Load Models for Estimating Electrical Efficiency in DC Microgrids. In Proceedings of the 3rd IEEE International Conference on DC Microgrids, Matsue, Japan, 20–23 May 2019. [Google Scholar]
  30. Fritzson, P.; Pop, A.; Abdelhak, K.; Ashgar, A.; Bachmann, B.; Braun, W.; Bouskela, D.; Braun, R.; Buffoni, L.; Casella, F.; et al. The OpenModelica Integrated Environment for Modeling, Simulation, and Model-Based Development. Model. Identif. Control. Nor. Res. Bull. 2020, 41, 241–295. [Google Scholar] [CrossRef]
  31. Dymola. 2020. Available online: https://www.3ds.com/products-services/catia/products/dymola/ (accessed on 1 June 2023).
  32. Judkoff, R.; Neymark, J. Model Validation and Testing: The Methodological Foundation of ASHRAE Standard 140. In Proceedings of the ASHRAE 2006 Annual Meeting, Quebec, QC, USA, 25 June 2006. [Google Scholar]
  33. U.S. Department of Energy. EnergyPlus Documentation: Engineering Reference, Version 9.4.0; U.S. Department of Energy: Washington, DC, USA, 2020. [Google Scholar]
  34. Blochwitz, T.; Otter, M.; Arnold, M.; Bausch, C.; Clauß, C.; Elmqvist, H.; Junghanns, A.; Mauss, J.; Monteiro, M.; Neidhold, T.; et al. The Functional Mockup Interface for Tool Independent Exchange of Simulation Models. In Proceedings of the 8th International Modelica Conference, Dresden, Germany, 20–22 March 2011. [Google Scholar]
  35. ASHRAE. Measurement of Energy, Demand, and Water Savings; Standard Guideline 14-2014; ASHRAE: Atlanta, GA, USA, 2014. [Google Scholar]
  36. Ball, B.L.; Long, N.; Fleming, K.; Balbach, C.; Lopez, P. An Open Source Analysis Framework for Large-Scale Building Energy Modeling. J. Build. Perform. Simul. 2020, 13, 487–500. [Google Scholar] [CrossRef]
  37. U.S. Department of Energy. EnergyPlus Documentation: Input Output Reference, Version 9.4.0; U.S. Department of Energy: Washington, DC, USA, 2020. [Google Scholar]
  38. Modelica Association. System Structure and Parameterization, Version 1.0; Modelica Association: Vienna, Austria, 2019. [Google Scholar]
  39. Nouidui, T.; Wetter, M.; Dostal, J.; Hu, J. EnergyPlusToFMU. Available online: https://github.com/lbl-srg/EnergyPlusToFMU (accessed on 22 March 2021).
  40. Blockwitz, T.; Otter, M.; Akesson, J.; Arnold, M.; Clauss, C.; Elmqvist, H.; Friedrich, M.; Junghanns, A.; Mauss, J.; Neumerkel, D.; et al. Functional Mockup Interface 2.0: The Standard for Tool Independent Exchange of Simulation Models. In Proceedings of the 9th International MODELICA Conference, Munich, Germany, 3–5 September 2012; pp. 173–184. [Google Scholar] [CrossRef]
  41. Nakhimovski, I.; Fredriksson, E. FMI Compliance Checker. Available online: https://github.com/modelica-tools/FMUComplianceChecker (accessed on 22 March 2021).
Figure 1. Conceptual architecture for co-simulations with the BEEAM and EnergyPlus when using a two-zone example model.
Figure 1. Conceptual architecture for co-simulations with the BEEAM and EnergyPlus when using a two-zone example model.
Energies 16 06284 g001
Figure 2. A graph containing five nodes n and four edges e, which represents the electrical distribution system of Figure 1.
Figure 2. A graph containing five nodes n and four edges e, which represents the electrical distribution system of Figure 1.
Energies 16 06284 g002
Figure 3. General algorithm for solving a power flow model via the Newton–Raphson technique for nonlinear algebraic equations.
Figure 3. General algorithm for solving a power flow model via the Newton–Raphson technique for nonlinear algebraic equations.
Energies 16 06284 g003
Figure 4. Demonstration model in Dymola showing an EnergyPlus FMU (upper-right) embedded within an electrical model.
Figure 4. Demonstration model in Dymola showing an EnergyPlus FMU (upper-right) embedded within an electrical model.
Energies 16 06284 g004
Figure 5. Physical layout of the thermal chamber and internal electrical loads for the validation experiment. Photograph by Daniel Gerber, LBNL; used with permission.
Figure 5. Physical layout of the thermal chamber and internal electrical loads for the validation experiment. Photograph by Daniel Gerber, LBNL; used with permission.
Energies 16 06284 g005
Figure 6. Single-line diagram of the electrical distribution system in the demonstration model.
Figure 6. Single-line diagram of the electrical distribution system in the demonstration model.
Energies 16 06284 g006
Figure 7. Geometry of the thermal chamber model (front view).
Figure 7. Geometry of the thermal chamber model (front view).
Energies 16 06284 g007
Figure 8. Comparison of the measured and modeled results for the validation experiment.
Figure 8. Comparison of the measured and modeled results for the validation experiment.
Energies 16 06284 g008
Table 1. Thermal Model Calibrated Properties.
Table 1. Thermal Model Calibrated Properties.
DescriptionValueUnit
Thermal transmittance of the chamber envelope0.38W/(m2K)
Thermal transmittance of the interior partition2.316W/(m2K)
Effective surface area of the thermal mass in the conditioned zone0.02m2
Effective thickness of the thermal mass in the conditioned zone0.04m
Effective surface area of the thermal mass in the unconditioned zone0.03m2
Effective thickness of the thermal mass in the unconditioned zone0.11m
Airflow mixing rate between zones0.003m3/s
Zone thermal capacitance multiplier21
Air-to-water thermal resistance of the cooling coil0.75W/K
Table 2. Model Inputs, Parameters, and Outputs.
Table 2. Model Inputs, Parameters, and Outputs.
ModelInputsCalibrated ParametersOutputs
Electrical
  • Load resistance
  • Fan power
  • Converter efficiency curves
  • Temperature coefficient of load resistors
  • Electrical input power
Thermal
  • Ambient temperature
  • Cooling water temperature
  • Cooling on/off schedule
  • Envelope insulation
  • Partition insulation
  • Thermal mass
  • Air exchange
  • Cooling coil thermal resistance
  • Conditioned zone temperature
  • Unconditioned zone temperature
Table 3. Validation Results.
Table 3. Validation Results.
Modeled QuantityNMBE aCV(RMSE) b
Conditioned zone temperature1.4%2.0%
Unconditioned zone temperature−1.1%2.8%
Electrical input power3.4%3.4%
a Normalized mean bias error. b Coefficient of variation in the root-mean-square error.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Frank, S.; Ball, B.; Gerber, D.L.; Cu, K.; Othee, A.; Shackelford, J.; Ghatpande, O.; Brown, R.; Cale, J. Advances in the Co-Simulation of Detailed Electrical and Whole-Building Energy Performance. Energies 2023, 16, 6284. https://doi.org/10.3390/en16176284

AMA Style

Frank S, Ball B, Gerber DL, Cu K, Othee A, Shackelford J, Ghatpande O, Brown R, Cale J. Advances in the Co-Simulation of Detailed Electrical and Whole-Building Energy Performance. Energies. 2023; 16(17):6284. https://doi.org/10.3390/en16176284

Chicago/Turabian Style

Frank, Stephen, Brian Ball, Daniel L. Gerber, Khanh Cu, Avpreet Othee, Jordan Shackelford, Omkar Ghatpande, Richard Brown, and James Cale. 2023. "Advances in the Co-Simulation of Detailed Electrical and Whole-Building Energy Performance" Energies 16, no. 17: 6284. https://doi.org/10.3390/en16176284

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop