skip to main content
US FlagAn official website of the United States government
dot gov icon
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
https lock icon
Secure .gov websites use HTTPS
A lock ( lock ) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.


Title: Developing a Campus Microgrid Model utilizing Modelica and the OpenIPSL Library
This paper describes the development of a phasor-based campus microgrid model utilizing the Modelica language and the OpenIPSL library. The phasor-based modeling approach was chosen because the resulting microgrid model would yield faster simulation run times when compared to models developed using electromagnetic transient (EMT) methods. Beyond the benefits of simulation performance, this becomes necessary when attempting to understand dynamic phenomena arising under emergency conditions across time scales ranging from milliseconds to hours, which will aid in developing resiliency improvement plans for the real-world campus microgrid that the model represents. Considering the increasing number of distributed energy sources (DERs) being added to power grids across the world and the paradigm shift on how electrical grids can operate with more DERs, the implementation of such a microgrid campus model can help in the development and testing new control strategies to support new operational approaches while guaranteeing system stability and resiliency. The added benefit of having the microgrid model in Modelica is that it can be simulated in any Modelica complaint tool (both proprietary or not), preserving an open-source code, unlocked for the user to explore and adjust the implementation as well as observe and edit the mathematical formulation. This enables not only nonlinear time simulation, but also linear analysis techniques and other approaches to be applied.  more » « less
Award ID(s):
2231677
PAR ID:
10418119
Author(s) / Creator(s):
; ; ; ; ;
Date Published:
Journal Name:
Developing a Campus Microgrid Model utilizing Modelica and the OpenIPSL Library
Page Range / eLocation ID:
1 to 6
Format(s):
Medium: X
Sponsoring Org:
National Science Foundation
More Like this
  1. Not AvailableEnergy models for power systems require ongoing updates to reflect advancements in equipment technology and the increasing complexity of power electronic devices. This study utilizes a Power Hardware-in-the-Loop (PHIL) experimental setup to validate custom photovoltaic (PV) inverter models, aiming to enhance and expedite the development of advanced renewable energy models. The research compares the performance of a physical inverter with generic Renewable Energy Source (RES) models recommended by the Western Electricity Coordinating Council (WECC). As inverter-based renewable energy sources become more prevalent in modern electrical grids, it is crucial that dynamic models accurately represent their real-world behavior. Accurate models improve our understanding of these energy resources and their interactions with the grid. The proposed model enhancements are designed to better reflect real inverter performance, based on insights from PHIL experiments. These models are developed using the open source Modelica language and the OpenIPSL Modelica Library, allowing integration across various simulation tools without re-implementation. The paper concludes with a thorough assessment, comparing the enhanced models with PHIL experiments on a real PV inverter in a controlled laboratory setting. The study provides the enhanced WECC RES models and validation data as open source resources, facilitating further research and development. 
    more » « less
  2. null (Ed.)
    The interconnection of distributed energy resources (DERs) in microgrids (MGs) operating in both islanded and grid-connected modes require coordinated control strategies. DERs are interfaced with voltage source inverters (VSIs) enabling interconnection. This paper proposes a load demand sharing scheme for the parallel operation of VSIs in an islanded voltage source inverter-based microgrid (VSI-MG). The ride-through capability of a heavily loaded VSI-MG, where some of the VSIs are fully loaded due to the occurrence of an event is investigated. In developing analytical equations to model the VSI, the concept of virtual synchronous machines (VSM) is applied to enable the VSI mimic the inertia effect of synchronous machines. A power frame transformation (PFT) that takes the line ratios of the MG network into account is also incorporated to yield satisfactory transient responses of both network frequency and bus voltages in the MG network. A Jacobian-based method is then developed to take into account the operational capacity of each VSI in the VSI-MG. The resulting amendable droop control constrains the VSIs within their power capabilities when an event occurs. Simulation results presented within demonstrate the effectiveness of the proposed procedure which has great potential to facilitate efforts in maintaining system reliability and resiliency. 
    more » « less
  3. Enhancing grid resilience is proposed through the integration of distributed energy resources (DERs) with microgrids. Due to the diverse nature of DERs, there is a need to explore the optimal combined operation of these energy sources within the framework of microgrids. As such, this paper presents the design, implementation and validation of a Model Predictive Control (MPC)-based secondary control scheme to tackle two challenges: optimal islanded operation, and optimal re-synchronization of a microgrid. The MPC optimization algorithm dynamically adjusts input signals, termed manipulated variables, for each DER within the microgrid, including a gas turbine, an aggregate photovoltaic (PV) unit, and an electrical battery energy storage (BESS) unit. To attain optimal islanded operation, the secondary-level controller based on Model Predictive Control (MPC) was configured to uphold microgrid functionality promptly following the islanding event. Subsequently, it assumed the task of power balancing within the microgrid and ensuring the reliability of the overall system. For optimal re-synchronization, the MPC-based controller was set to adjust the manipulated variables to synchronize voltage and angle with the point of common coupling of the system. All stages within the microgrid operation were optimally achieved through one MPC-driven control system, where the controller can effectively guide the system to different goals by updating the MPC’s target reference. More importantly, the results show that the MPC-based control scheme is capable of controlling different DERs simultaneously, mitigating potentially harmful transient rotor torques from the re-synchronization as well as maintaining the microgrid within system performance requirements. 
    more » « less
  4. As distributed energy resources (DERs) are widely deployed, DC packetized power microgrids have been considered as a promising solution to incorporate DERs effectively and steadily. In this paper, we consider a DC packetized power microgrid, where the energy is dispatched in the form of power packets with the assist of a power router. However, the benefits of the microgrid can only be realized when energy subscribers (ESs) equipped with DERs actively participate in the energy market. Therefore, peer-to-peer (P2P) energy trading is necessary in the DC packetized power microgrid to encourage the usage of DERs. Different from P2P energy trading in AC microgrids, the dispatching capability of the router needs to be considered in DC microgrids, which will complicate the trading problem. To tackle this challenge, we formulate the P2P trading problem as an auction game, in which the demander ESs submit bids to compete for power packets, and a controller decides the energy allocation and power packet scheduling. Analysis of the proposed scheme is provided, and its effectiveness is validated through simulation. 
    more » « less
  5. This article investigates the impacts of coordinated false data injection attacks (FDIAs) on voltage profiles in smart microgrids integrated with renewable-based distributed energy resources (DERs), a critical component of urban energy infrastructure in smart cities. By leveraging simulation and experimental methods, a coordinated framework is developed for understanding and mitigating these threats, ensuring the stability of renewable-based DERs integral to modern urban systems. In the examined framework, a team of attackers independently identify the optimal times of two different cyberattacks leading to undervoltage and overvoltage in a smart microgrid. The objective function of each model is to increase the voltage violation in the form of either overvoltage or undervoltage caused by the corresponding FDIA. In such a framework, the attackers design a multi-objective optimization problem (MOOP) simultaneously resulting in voltage violations in the most vulnerable regions of the targeted microgrid. Considering the conflict between objective functions in the developed MOOP, a Pareto-based solution methodology is utilized to obtain a set of optimal solutions, called non-dominated solutions, as well as the best compromise solution (BCS). The effectiveness of the unified FDIA is verified based on simulation and experimental validations. In this regard, the IEEE 13-node test feeder has been modified as a microgrid for the simulation analysis, whereas the experimental validation has been performed on a lab-scale hybrid PV/wind microgrid containing renewable energy resources. 
    more » « less