Back to blog

A complete guide to microgrids and modern distribution networks

Microgrid

11 / 06 / 2025

A complete guide to microgrids and modern distribution networks

Key Takeaways

  • Microgrid design works best as one connected package, from use cases and sizing to architecture, controls and protection, all checked against the host feeder’s limits.
  • Controllers manage islanding through layered control, with fast device loops holding voltage and frequency while energy management balances storage, generation and load.
  • Commissioning goes smoothly when controllers and relays are proven in the lab with hardware in the loop before site tests repeat the same scenarios.

A microgrid delivers on its promise only when its design, controls and protection are proven against the feeder it connects to before commissioning day.

Outages are the reason most microgrids get funded. U.S. electricity customers averaged 11 hours of interruptions in 2024, and nearly 9 of those hours came from major events such as storms and wildfires. A hospital, campus or water plant that can island its critical loads through those hours avoids most of that exposure.

The hard part isn’t the equipment list. It’s making generators, storage, inverters, relays and a controller behave as one system that also respects the utility’s protection and voltage rules. Teams that test that behaviour early commission faster, while teams that leave it to the field find their problems one trip at a time.

What a microgrid is and where it sits in a modern distribution network

A microgrid is a group of loads and distributed energy resources inside a defined electrical boundary that can run connected to the utility feeder or disconnect and operate as an island. It has its own controller, its own protection and a single interconnection with the grid, called the point of common coupling.

Most microgrids sit at the distribution level, on a medium-voltage feeder or behind a facility’s main switchgear. A university campus might combine a combined heat and power plant, rooftop solar, a battery and a dozen buildings that stay energized when a storm opens the upstream breaker and the rest of the feeder goes dark.

That position on the feeder is what makes microgrids harder than standalone backup power. An advanced distribution network already has two-way power flow, automated switches and its own voltage regulation, so every export limit, fault level and switching sequence inside the microgrid has to agree with how the utility runs the feeder around it.

The main components of a microgrid

Diagram of the microgrid controller linked to generation, storage, the switch at the point of common coupling and protection, the 5 building blocks of a microgrid.

Every microgrid combines 5 building blocks, and a weakness in any one of them limits what the others can do. Generation and storage supply the energy, switchgear defines the boundary, protection keeps faults contained and the controller decides how the whole system behaves from one second to the next.

  • Distributed generation such as solar arrays, wind turbines, gas generators or combined heat and power units
  • Energy storage, usually batteries with grid-forming inverters that can set voltage and frequency in island mode
  • The switch or breaker at the point of common coupling that connects and separates the microgrid from the feeder
  • Protection relays and inverter protection functions that detect faults in both connected and island operation
  • A microgrid controller that runs energy management, mode transitions and communication with the utility

The inverter is the component that most often surprises project teams. A synchronous generator pushes several times its rated current into a fault, while an inverter-based resource limits its output to little more than its rating. Relays tuned for the grid-connected case can then miss faults once the microgrid islands. That one difference shapes protection settings and the test plan.

“Relays tuned for the grid-connected case can then miss faults once the microgrid islands.”

How to design a microgrid for a modern distribution network

Microgrid design starts with the use cases, then works outward to sizing, electrical architecture, controls and protection, with each choice checked against the host feeder’s limits. Good microgrid system design treats those steps as one connected package, because a change to storage sizing or feeder layout ripples straight into protection and control settings.

Use cases come first, written in engineering terms. A water treatment plant might need its pumps and controls carried for 72 hours during an outage and its peak import cut during summer tariff windows. Those 2 requirements set the battery’s ratings, the generator’s fuel reserve and the operating modes the controller must support, from peak shaving to black start.

Architecture follows. A radial layout keeps protection simpler, while a ring or sectionalized layout keeps more of a large campus energized after a fault at the cost of harder relay coordination. You’ll need the utility’s short-circuit levels, thermal limits and export allowance early, since they cap resource size.

Controls and protection follow in parallel. Each operating mode gets its own setpoints and settings groups, and each transition gets a defined sequence that says which device acts first. Teams that sketch these sequences in a simple microgrid simulation during design catch timing conflicts, such as a battery inverter and a generator governor fighting over frequency, while they’re still cheap to fix.

How microgrid controllers manage islanding and energy management

Animation of a grid outage on the utility feeder, the breaker at the point of common coupling opening and the battery taking over voltage and frequency so critical loads stay on.

A microgrid controller manages islanding by detecting a grid disturbance or receiving a command, opening the point of common coupling and shifting a grid-forming source into voltage and frequency control within a fraction of a second. Once islanded, its energy management layer balances storage, generation and load until it’s safe to resynchronize.

The control architecture is layered. Device controls inside inverters and generator governors react within milliseconds, while the supervisory controller adjusts setpoints over seconds to minutes. During a planned island, the controller first ramps import toward zero so the breaker opens with little power flowing, which avoids the frequency step an unplanned separation would cause.

Microgrid energy management schedules battery charging against load and solar forecasts, holds a reserve for the next outage and sheds lower-priority loads when the island runs short. Its rules need to be explicit, because operators who can’t see why the battery stopped at 40% charge won’t trust it during an outage.

Why distribution network automation changes how microgrids operate

Distribution network automation changes microgrid operation because automated switches, voltage regulators and a distribution management system now act on the same feeder, often faster than any operator. A microgrid that exchanges data with those devices becomes a resource the utility can plan around.

After a fault, automated switching might reconfigure the feeder and pick up load in under a minute. A microgrid controller that knows the new configuration can stay islanded until the feeder is stable, then reconnect and even support neighbouring sections. Without that exchange, the microgrid might reconnect into a section that’s still being switched and trip protection on both sides. Open protocols and agreed procedures for status, limits and dispatch make this coordination dependable, and they belong in testing against the utility’s automation logic before go-live.

How microgrid simulation reduces risk from design to operation

Microgrid simulation reduces risk by testing each design decision against the conditions it’ll face, from steady-state load flow during planning to real-time models connected to physical controllers before commissioning. Each stage uses a model with the fidelity its question needs, so results stay trustworthy without making every study slow.

The stages build on one another when they share parameters and naming. A load flow model sizes the battery, an electromagnetic transient model checks how inverters ride through a fault, and a real-time version of that same model drives the actual controller in the lab. One source of truth for parameters means a lab discrepancy points to hardware or firmware instead of a forgotten model change.

Simulation stage Question it answers Problems it typically catches
Load flow and time-series studies Do equipment sizes, export limits and voltage profiles stay within the feeder’s limits? Undersized storage, voltage rise at the point of common coupling and thermal overloads
Electromagnetic transient studies How do inverters, generators and relays behave during faults and switching? Low inverter fault current, ride-through gaps and unstable control interactions
Software in the loop Does the control code follow the intended sequences across many scenarios? Logic errors in mode transitions, load shedding and resynchronization
Controller hardware in the loop Does the physical controller respond correctly with its real timing and communication? Latency problems, protocol mismatches and firmware timing faults
Power hardware in the loop How does a real inverter or battery behave while exchanging power with the modelled feeder? Integration issues and protection responses that simpler models miss

“One source of truth for parameters means a lab discrepancy points to hardware or firmware instead of a forgotten model change.”

How a microgrid is commissioned and tested

A microgrid is commissioned and tested in stages, starting with lab tests of the controller and protection, then site acceptance tests of each device, and ending with witnessed tests of islanding, resynchronization and black start. Each stage should repeat scenarios that were already proven in simulation.

Controller hardware in the loop connects the actual microgrid controller and relays to a real-time model of the site and feeder, so you can run hundreds of faults and communication failures in a week. Utilities and integrators use OPAL-RT real-time simulators for this step, replaying the same scenario library after every firmware change so regressions show up in the lab instead of the field.

Field commissioning then confirms that installed equipment matches the model. Inverter settings deserve particular scrutiny, since what’s configured on site often differs from the design. Settings audits on the bulk power system found about 27% of the solar PV fleet wasn’t configured with recommended ride-through settings. The same kind of gap inside a microgrid can trip resources during the very disturbance the island is meant to survive.

The final witnessed tests follow a procedure agreed with the utility. A typical sequence opens the point of common coupling under load, holds the island through a load step, reconnects with synchronization checks and then performs a black start from storage. Results that match the lab’s recorded waveforms show the microgrid will act the same way during an actual outage.

Frequently asked questions

What is a microgrid?

A microgrid is a set of loads, generation and storage within a defined electrical boundary that operates as a single controllable system. It normally runs connected to the utility’s distribution network, but it can disconnect and keep critical loads powered as an island during outages. A dedicated controller and protection scheme manage both modes.

How do you design a microgrid?

You design a microgrid by defining use cases and critical loads, sizing generation and storage against outage duration and tariff goals, choosing an electrical architecture and then developing controls and protection for every operating mode. Each step is checked against the host feeder’s fault levels, thermal limits and export rules and validated in simulation.

How is a microgrid commissioned and tested?

A microgrid is commissioned through staged testing. Controllers and relays are first tested in the lab against a real-time model using hardware in the loop, then each device is checked on site against its design settings. Witnessed tests then prove islanding, reconnection and black start under procedures agreed with the utility, using scenarios already proven in the lab.

What are the main components of a microgrid?

The main components are distributed generation, energy storage, the switch or breaker at the point of common coupling, protection relays and a microgrid controller. The controller runs energy management, mode changes and communication with the utility, while protection isolates faults in both connected and island operation.

How do microgrid controllers manage islanding?

Microgrid controllers manage islanding by opening the point of common coupling when they detect a disturbance or receive a command, then assigning a grid-forming source to hold voltage and frequency. For planned islanding, they first reduce power flow at the breaker to near zero. Before reconnection, they match voltage, frequency and phase angle with the feeder and close the breaker.

What makes a microgrid dependable over its life

A microgrid stays dependable when the models, settings and test scenarios used to commission it are kept current as loads, equipment and feeder conditions shift. Its value shows up in the few hours a year when the grid fails, so the discipline behind those hours matters more than any component choice.

We see the strongest projects treat simulation as a permanent part of operations. When a new battery is added or the utility reconfigures the feeder, the team updates the model, reruns the scenario library and confirms protection before anything goes live. That habit, supported by OPAL-RT real-time testing, keeps a microgrid ready for the outage nobody scheduled.

Real-time solutions across every sector

Explore how OPAL-RT is transforming the world’s most advanced sectors.

See all industries