The aim of this document is to provide useful technical models of all the devices involved in the management of the microgrid studied in project DER-IREC22@Microgrid. The devices modeled are a domestic wind generator, a photovoltaic array generator and a battery to storage energy.

One of the challenges of this project is to develop a control system to optimize the operation of the microgrid according to technical and economical criteria. That means the algorithms deployed will have to consider the technical behaviour of these devices to find the best solution.

For each device, the most relevant variables affecting the performance have been identified. The study applies only for steady state regime, falling outside the scope of this work package the study of transient analysis.

The models have been implemented in Simulink software, by Mathworks, but special care has been taken to guarantee the model is fully implementable in standard programming languages such as C/C++ or Java.

For each device, there is a brief description of its principle of operation and the main variables involved, a full explanation of the model developed in Simulink and the results of some simulations. To study the impact of relevant variables, the simulations have been conducted using real data from datasheets devices and weather data from the actual IREC facilities where the microgrid will be located. Finally, we summarize the information with a black-box model with a list of input variables, output variables and device parameters.

For the wind generator the most important variable is wind speed, since the power generated depends cubically on this variable. Although its effect is much smaller, the dependence of the density of air has also been modeled. Even if urban environments are not well suited for the location of wind turbines, IREC facilities are near the sea so they can benefit from sea breezes and the absence of nearby buildings that could act as walls. The maximum wind power production occurs during the colder months. Unfortunately, it is difficult to accurately predict the wind speed and its temporal variation is very fast.

Photovoltaic generator main variable is the irradiance (solar radiation) and to a lower level, temperature. The location may be considered appropriate in terms of solar radiation. The largest photovoltaic power output will occur in spring-summer daytime peak demand. Solar radiation received by the photovoltaic array is also affected by weather changes, as clouds passing by.

In the case of the battery, which can represent either a battery for energy storage in the microgrid or a battery of an electric vehicle (EV), the main variable is the intensity of charging/discharging. Although at present the charging current is regulated by the battery charger and the EV recharging point only limits the maximum current, the technical control of the microgrid will consider the option to modify the maximum load current to achieve optimal management.