This repository houses my contributions to MathWorks' Excellence in Innovation Project 204, as part of my MSc in Automation and Systems Engineering at the Federal University of Santa Catarina. The project focuses on the development of a DC microgrid integrating a regenerative fuel cell with a photovoltaic panel.
The project delves into the feasibility and efficiency of green hydrogen as a sustainable energy storage solution in microgrids. It includes detailed modeling of unitized regenerative fuel cell (URFC) documented in report.mlx
for in-depth understanding and provides a microgrid.slx
file for simulation to analyze the system's behavior and performance, thus fostering advancements in sustainable energy practices.
- Michael Barbosa - Graduate Student, Federal University of Santa Catarina
- Gustavo de Andrade - Supervisor, Federal University of Santa Catarina
This project has the following dependencies:
-
MATLAB: MATLAB is a high-level programming language and environment used for numerical computation, visualization, and algorithm development. It is the main software used for developing and running the simulations in this project.
-
Simulink: Simulink is an extension of MATLAB that provides a graphical environment for modeling, simulating, and analyzing dynamic systems. It is used to create the
microgrid.slx
Simulink model in this project. -
Simscape: Simscape is a multidomain physical modeling and simulation tool that allows you to model and simulate complex systems. It is used in this project to model the regenerative fuel cell and other components of the microgrid system.
This project is licensed under the MIT License - see the file for details.
The Simulink model, microgrid.slx
, is shown below. This model represents the DC microgrid integrating a regenerative fuel cell with a photovoltaic panel.
To run the simulation and analyze the system's behavior and performance, follow these steps:
-
Make sure you have MATLAB, Simulink, and Simscape installed and properly configured in your MATLAB environment.
-
Open the
microgrid.slx
model in Simulink. -
Click on the "Run" button in Simulink to start the simulation.
-
Once the simulation is complete, you can use the Simulation Data Inspector to explore the simulation results or use the scopes insed the lock scopes.
The figure below shows the results of the simulation using the default scenario:
The default scenario involves applying a current to the URFC that was calculated using numerical optimal control. This calculation will be explained in detail in my master's thesis (a link will be added after publication). You can modify the applied current by changing the scenario in the "Signal Editor" block.
Power Delivery Scenarios:
- Optimal_Trajectory (DEFAULT): The current applied to the URFC is determined by the optimal trajectory calculated using numerical optimal control.
- Constant_Current: A constant current is applied to the URFC.
- Only_Electrolyzer: Only the electrolyzer component of the URFC is powered.
- Only_Fuel_Cell: Only the fuel cell component of the URFC is powered.
IMPORTANT: To improve the simulation time, make sure to check the "Interpolate data" option in the "Signal Editor" block.
You can modify the file input_data_24h.mat
to change the data of solar radiation and power demand in the consumer. You can adjust the values according to your specific scenario or location.
Please note that the solar radiation values in the file are normalized at 1000 W/m^2.
To modify the system parameters, you can edit the values in the following files:
-
photovoltaic_parameters.m
: This file contains the parameters related to the photovoltaic panel, such as number of panels in serie and paralel. -
urfc_parameters.m
: This file contains the parameters for the unitized regenerative fuel cell (URFC), including, stack area and number of cells. -
microgrid_parameters.m
: This file includes the parameters for the microgrid system, such as the bus votage and initial tank value.
If you would like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your contribution.
-
Make your changes and commit them to your branch.
-
Push your branch to your forked repository.
-
Open a pull request to submit your changes for review.
I would like to express my gratitude to the following organizations for their support and contributions to this project:
-
MathWorks for providing the opportunity to work on this project and for their continuous support and guidance.
-
The Federal University of Santa Catarina for their support in my academic endeavors and for providing the necessary resources and facilities for conducting this research.
I would also like to thank my supervisor, Gustavo de Andrade, for his valuable guidance, expertise, and mentorship throughout this project.
-
C. Ogbonnaya, C. Abeykoon, A. Nasser, and A. Turan, “Unitized regenerative proton exchange membrane fuel cell system for renewable power and hydrogen generation: Modelling, simulation, and a case study,” Cleaner Engineering and Technology, vol. 4, p. 100241, Oct. 2021, doi: 10.1016/j.clet.2021.100241.
-
G. A. De Andrade, P. R. Da Costa Mendes, J. G. G. Clúa, and J. E. Normey‐Rico, “Control of a grid assisted PV-H2 production system: A comparative study between optimal control and hybrid MPC,” Journal of Process Control, vol. 92, pp. 220–233, Aug. 2020, doi: 10.1016/j.jprocont.2020.06.008.
-
E. Batzelis, G. Anagnostou, C. Chakraborty, and B. Pal, “Computation of the Lambert W function in photovoltaic modeling,” in Lecture notes in electrical engineering, 2020, pp. 583–595. doi: 10.1007/978-3-030-37161-6_44.