├── LICENSE.md ├── Microgrid_Energy_Management.mlproj ├── Microgrid_Energy_Management.mlx ├── Modeling_Electrical_Power_Systems_WEBINAR.zip ├── Modeling_a_Hybrid_Microgrid.mlproj ├── Modeling_a_Hybrid_Microgrid.mlx ├── README.md ├── SECURITY.md └── images └── hybrid_microgrid.png /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2022, The MathWorks, Inc. 2 | All rights reserved. 3 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 4 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 5 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 6 | 3. In all cases, the software is, and all modifications and derivatives of the software shall be, licensed to you solely for use in conjunction with MathWorks products and service offerings. 7 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Microgrid_Energy_Management.mlproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathworks/Modeling_a_Hybrid_Microgrid/154cb579838bee42527d7507221cb3c4414e17e1/Microgrid_Energy_Management.mlproj -------------------------------------------------------------------------------- /Microgrid_Energy_Management.mlx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathworks/Modeling_a_Hybrid_Microgrid/154cb579838bee42527d7507221cb3c4414e17e1/Microgrid_Energy_Management.mlx -------------------------------------------------------------------------------- /Modeling_Electrical_Power_Systems_WEBINAR.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathworks/Modeling_a_Hybrid_Microgrid/154cb579838bee42527d7507221cb3c4414e17e1/Modeling_Electrical_Power_Systems_WEBINAR.zip -------------------------------------------------------------------------------- /Modeling_a_Hybrid_Microgrid.mlproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathworks/Modeling_a_Hybrid_Microgrid/154cb579838bee42527d7507221cb3c4414e17e1/Modeling_a_Hybrid_Microgrid.mlproj -------------------------------------------------------------------------------- /Modeling_a_Hybrid_Microgrid.mlx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathworks/Modeling_a_Hybrid_Microgrid/154cb579838bee42527d7507221cb3c4414e17e1/Modeling_a_Hybrid_Microgrid.mlx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Modeling a Hybrid Microgrid in Simscape Electrical™ 2 | 3 | ## Getting Started 4 | 5 | Instructions on using the content are contained within Modeling_a_Hybrid_Microgrid.mlx and Microgrid_Energy_Management.mlx. 6 | 7 | ## The Hybrid Microgrid 8 | The system we are working towards is a hybrid AC/DC microgrid containing traditional rotating machinery, a battery, two fuel cells and a PV array. There is a simple management system that controls the transfer of power between the DC and AC sides. 9 | 10 | ![](/images/hybrid_microgrid.png) 11 | 12 | ## Aim of Content 13 | - To learn Simscape Electrical essentials. 14 | - To build confidence in the development and test of interconnected AC and DC system simulation models by incremental creation, test and integration of components covering a range of fidelity levels. 15 | - To provide a platform upon which more detailed system simulations can be created. 16 | - To consider modeling fidelity and how it maps to technology development. 17 | 18 | ## Topics Covered 19 | Simscape Electrical Essentials 20 | - Connecting Model Components 21 | - Choosing a Solver 22 | - Changing Fidelity 23 | 24 | Modeling a Hybrid Microgrid 25 | - Incrementally Build Component Detail and Evaluate Operation 26 | - Connect Two Sub-Networks with Different Solver Options 27 | - Construct and Test the Full System 28 | 29 | Deploying the Model 30 | - Deploy a Model as a Digital Twin using Simulink Compiler 31 | - Configure a Model for Real-Time Deployment 32 | 33 | ## Required Products 34 | 35 | - MATLAB® 36 | - Simulink® 37 | - Simscape™ 38 | - Simscape Electrical™ 39 | - Simulink Compiler™ (for deployment) 40 | - Simulink Real-Time™ (for real-time simulation) 41 | 42 | Copyright (c) 2022, The MathWorks, Inc. 43 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting Security Vulnerabilities 2 | 3 | If you believe you have discovered a security vulnerability, please report it to 4 | [security@mathworks.com](mailto:security@mathworks.com). Please see 5 | [MathWorks Vulnerability Disclosure Policy for Security Researchers](https://www.mathworks.com/company/aboutus/policies_statements/vulnerability-disclosure-policy.html) 6 | for additional information. -------------------------------------------------------------------------------- /images/hybrid_microgrid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mathworks/Modeling_a_Hybrid_Microgrid/154cb579838bee42527d7507221cb3c4414e17e1/images/hybrid_microgrid.png --------------------------------------------------------------------------------