Abstract
This memo describes the implementation of calculation models for the operation of heat pumps, solar photovoltaic (PV) panels, and electric batteries within the FLEXor energy optimization tool. The heat pump model can be used to implement ground-source heat pumps, air-source heat pumps, and air-to-air heat pumps. There are two efficiency calculation modes: a simplified model where constant coefficients of performance as given by the user, and a dynamic, temperature-dependent model, where the coefficients of performance are calculated based on source and supply temperatures according to the NS3031 standard. There are also two calculation methods available for the PV system; the first method consists of pre-calculated user-given specific production profiles where the user provides a time-series of electricity generation, while the second method uses geographical and weather data to calculate the production profiles using the Python library Global Solar Energy Estimator. The battery model is a state space model with two variables: charging and discharging of the battery, and independent charging and discharging efficiencies can be implemented. These three models, as well as FLEXor, are implemented in Python.
FLEXor is a simulation and optimization tool for energy generation, demand, and use in the built environment. It is implemented in Python. All the sub-models in FLEXor, including the ones described in this memo, are designed to be self-standing. Thus, they are self-contained, and do not include the control and/or optimization of other components. However, these models are to become part of a larger high-level model, FLEXor, that may include DHW tanks, electric vehicles, and other different components. Therefore, the models are designed to be i)linear, ii)in state space form (when applicable), and iii)transparent. This will allow the high-level model to be fast, lean, relatively simple, and able to leave a component out of the optimization process if necessary.