Small library made as final project for the course Modeling and Simulation of Cyber-Physical Systems. It contains models for batteries, photovoltaics modules, converters and control systems.
- Download the library MicroGrid.
- Go to folder
MicroGrid
and load the modelpackage.mo
. This act will load all the models into the Working tab in the Modelica-compliant software used. - The main package, MicroGrid, consists of six subpackages, named: (1) Examples, (2) Electrical, (3) Storage, (4) PhotoVoltaics, (5) Control and (6) Sensors. The microgrid example is within (1) Examples, named
MicroGrid_Example.mo
. Other examples are available inElectrical/Examples
and inControl/Examples
. - The model
Examples/MicroGrid_Example.mo
can be simulated in different manners, depending on the Modelica-compliant software being used. For OpenModelica and Dymola, the user should move to Simulation tab and by clicking the Simulate button. For SystemModeler, the Simulate button is located in the Modeling tab.
This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the GNU Public License version 3.
Copyright (C) 2018-2019, Marcelo de Castro Fernandes and Luigi Vanfretti.
This work was supported in part by the Engineering Research Center Program of the National Science Foundation and the Department of Energy under NSF Award Number EEC-1041877 and the CURENT Industry Partnership Program.