Welcome

Welcome

A grid-following inverter is a current source. Tell it how much active and reactive power to inject, and its inner current loop will deliver exactly that, locked to a phase angle it measures off the grid with a PLL. It has never had to decide what the grid voltage is: that has always been someone else’s job.

Take that same inverter and put it somewhere the question changes. A house loses its grid connection (a storm, a fault upstream, a deliberate island) and the battery inverter sitting in the garage is now the only thing on that little network with any say in the matter. Nothing else is going to set the voltage. Nothing else is going to set the frequency. If the inverter is still built to follow, it has nothing to follow, and it stalls.

Grid-forming control is what an inverter needs to stop needing someone else’s voltage to synchronise to, and start providing its own. That is the whole subject of this book: what changes in the controller, precisely, to make that true, and what breaks if you are not careful about it.

This is an advanced course. It assumes you already have grid-following control cold: the Park transform, the PLL, current control in dq, PWM. None of that is re-taught here. What follows is everything that sits on top of the current controller and the modulator once the inverter has to form a voltage instead of following one.

Prerequisite

This course starts where the Grid-Connected Bidirectional Single-Phase Inverter course leaves off. That paid course develops the grid-following dq current loop and PWM used here. This course keeps those inner layers and adds the voltage controller, droop, VSG and current-limiting layers above them. Equivalent knowledge of grid-following dq control is sufficient.

The running example

Every number in this book belongs to one machine, a 5 kVA, 230 V, 50 Hz single-phase battery inverter, the kind of unit that backs up a house and, when the street loses power, can hold up a small island on its own.

Figure 1: The running example, in its two operating states. Top: connected to the grid, where it can behave like an ordinary grid-tied inverter. Bottom: the street has lost power, the breaker has opened, and the inverter itself is now the only thing on the island that can set a voltage and a frequency for the house’s loads to run against. This second state is why grid-forming control exists.

That bottom panel is the whole motivation, stated as a picture before it is stated as a sentence: the moment nothing else on the network can be trusted to hold up a voltage, whatever is left has to do it. A synchronous generator has always done this by construction: it is a physical rotating voltage source. An inverter has to be told to be one, and that instruction is what this book teaches.

Key idea

Grid-following is a current source: it measures a voltage and injects the current you asked for. Grid-forming is a voltage source: it sets a voltage and lets the network decide the current. Every chapter in this book is a consequence of that one sentence.

The fixed numbers behind the running example, gathered here so you don’t have to hunt for them later:

Symbol Meaning Value
\(S_n\) Rated apparent power \(5\ \mathrm{kVA}\)
\(V_n\) Rated rms terminal voltage \(230\ \mathrm{V}\)
\(f_0\) Nominal frequency \(50\ \mathrm{Hz}\)
\(V_{dc}\) DC bus \(400\ \mathrm{V}\)
\(L_f\) Converter-side filter inductor \(3\ \mathrm{mH}\)
\(C_f\) Filter capacitor, at the PCC \(10\ \mu\mathrm{F}\)
\(L_g\) Grid-side inductance (nominal, strong connection) \(1.5\ \mathrm{mH}\)
\(Z_b\) Base impedance, \(V_n^2/S_n\) \(10.6\ \Omega\)
\(I_b\) Base rms current, \(S_n/V_n\) \(21.7\ \mathrm{A}\)
\(I_{max}\) Current limit, \(1.2\) pu \(26.1\ \mathrm{A}\) rms
\(I_{th}\) Current-limiter threshold, \(1.0\) pu \(21.7\ \mathrm{A}\) rms

The grid-side inductance is written “nominal” because it is the one number in the table that is not a design choice: it is whatever the local wiring happens to be, and it changes with how the inverter is connected. At \(L_g = 1.5\ \mathrm{mH}\) the connection is strong (you will see in Chapter 2 that this corresponds to a short-circuit ratio around 22, comfortably in “strong grid” territory). Several chapters deliberately turn that number down, toward a weak grid and finally toward an open island, because that sweep is where grid-forming control earns its keep.

Jargon buster

PCC stands for point of common coupling: the electrical node where the inverter’s own filter meets the rest of the network. It matters here because, as Chapter 3 shows, it is the one node in the whole power stage that actually has a voltage of its own to control.

How this book is organised

  • Chapter 1 draws the current-source/voltage-source distinction precisely, not as a slogan, but as a statement about which quantity is a controlled state and which is left to the network.
  • Chapter 2 asks the honest question first: does this 5 kVA unit actually need grid-forming control for the reason the industry usually gives (weak transmission grids)? The answer is no, and the real reason (islanding) is established properly.
  • Chapter 3 builds the piece every grid-following engineer is missing: a voltage controller. It does not exist in a grid-following inverter, and its presence is what makes a converter grid-forming at all.
  • Chapters 4-7 build the two families of grid-forming controller in the order that makes droop a theorem rather than a warm-up: droop first, then the machine it turns out to already resemble, then the virtual machine (VSG) built on purpose, then its governor.
  • Chapters 8-9 deal with the hard part every grid-forming inverter eventually meets: it cannot refuse a current the grid demands of it, so it has to be taught to limit one without losing itself in the process.
  • Chapter 10 closes with what happens when more than one of these inverters shares a network.

A recurring set of boxes marks the terrain:

Key idea

The one thing to take from a section. If you read nothing else, read these.

Worked example

A concrete calculation with the running example’s real numbers.

In the real world

How the published literature says the industry actually builds this, including where the practice is contested.

Jargon buster

A short definition of a term this book will keep using.

Companion simulator

A pointer to the companion web simulator, where you can turn a parameter and watch the consequence rather than take it on faith.

Companion simulator

A three-controller simulator is being built alongside this course at the same address as the existing grid-following inverter tool. It implements grid-following, droop and VSG control on the same plant, all in the dq frame with the single-phase orthogonal signal already solved by SOGI, and (unlike the current public tool) it models the plant this book insists on: an inverter-side inductor, a capacitor at the PCC, and a separate, adjustable grid-side inductor. Sweeping that last one, from a stiff connection down to islanded, is the single most useful thing you can do with it, and several chapters will ask you to.

In the real world

Every number and equation in this book that comes from the published literature is cited to it. Where the literature itself has not settled a question, or where a figure circulates in presentations without a traceable source, this book says so rather than printing it as fact: you will meet a handful of numbers flagged as not independently verified or as the author’s own derivation rather than a citation. An advanced reader can tell the difference and should be shown it.

Chapter 01

What grid-forming actually means

Two inverters, the same hardware, a different question

Take two inverters, identical in every physical respect: same bridge, same filter, same current sensors, and connect each one to the grid through its own current controller. Give the first one a power reference and a PLL. Give the second one nothing but a voltage magnitude and a frequency to hold. Both will sit there quietly exporting power. If you only ever watch them in steady state, you cannot tell them apart.

Now let the grid voltage jump: a fault clears somewhere upstream, or a large load switches in, and the phasor at the terminals shifts. The first inverter does nothing for a moment: its current reference has not changed, so its current does not change, and the voltage at its own terminals is whatever the network makes it be. The second inverter’s voltage does not change: it was already holding its own internal voltage phasor, and now the network’s current through it changes almost instantly to reconcile the difference.

That is the entire distinction, and it is worth being precise about, because the usual one-line version (“grid-following is a current source, grid-forming is a voltage source”) is the right place to start but not quite a definition on its own.

Why the equivalent-circuit slogan is not quite enough

Every linear one-port electrical source has both a Norton (current source with a parallel impedance) and a Thevenin (voltage source with a series impedance) equivalent, and the two are mathematically interchangeable. So “current source” and “voltage source” cannot, by themselves, be the definition of two genuinely different things: any source can be redrawn either way. A review of grid-forming control makes exactly this point:

“It is worth noting that this representation might erroneously resemble the definition of a Norton or a Thevenin equivalent, which are theoretically interchangeable; yet it does emphasize the fact that GFL converters achieve their purposes of power injection or voltage regulation by controlling the injected currents, while the GFM converter regulates the power by controlling directly the voltage at its output terminals.”1

So the real distinction is not about the equivalent circuit you happen to draw. It is about causality inside the controller: which quantity is an independent state the controller decides, and which quantity is left as an output for the network to determine.

  • Grid-following. The controller’s independent variable is the measured terminal angle, \(\theta_{PLL}\), tracked by a phase-locked loop. From that measurement and a power reference it computes a current reference \(i^* = f(P^*, Q^*, \theta_{PLL})\), and the current loop makes the real current follow it. Causality runs voltage in, current out. The inverter’s own angle is not a thing it has: it is slaved to whatever angle it measures.
  • Grid-forming. The controller’s independent variables are an internal angle \(\theta\) and magnitude \(E\), produced by the outer loop itself (Chapters 4 and 6 build exactly how). It imposes a terminal voltage reference behind an impedance, and the current is whatever that imposed voltage and the network happen to produce. Causality runs voltage out, current in.
Key idea

In a grid-following inverter, the phase of the output is an estimate of a measured quantity. In a grid-forming inverter, the phase of the output is a state of the controller. Everything else in this book is a consequence of that one sentence: droop and VSG, covered from Chapter 4 onward, are simply two different differential equations for producing that state.

A statement about a timescale, not about all time

No real grid-forming inverter is a voltage source forever. It is a voltage source inside the bandwidth of its own voltage loop, and only below its current limit. Push past the current limit, which Chapter 8 is entirely about, and the inverter is forced to behave like a current source again, whether its outer loop still thinks it is forming a voltage or not. The honest definition therefore pins a timescale: a grid-forming inverter holds its internal voltage phasor approximately fixed for the first few milliseconds after a disturbance: the sub-transient to transient window, because its angle and magnitude are internal states rather than measurements, not because it is magically immune to overload.

What actually happens in the first instant

This is the picture worth carrying through the rest of the book. Take a step change in the grid voltage phasor and watch each inverter’s very first reaction, before either controller has had time to do anything clever:

“Because of its inherent current source behavior, the instantaneous reaction of the GFL converter is to maintain the current phasor \(I_g\) constant in terms of magnitude and phase… According to its intrinsic behavior of a voltage source behind impedance, the internal voltage phasor \(E\) of the [GFM] converter is initially not affected by the perturbation, causing an almost instantaneous variation of the phasor \(I_g\).”2

The grid-following inverter contributes nothing in the first instant: it structurally cannot, because its response is gated by how fast its PLL can detect the new angle. The grid-forming inverter’s current changes almost immediately, because nothing in its controller is protecting it from doing so: its voltage is fixed, so Ohm’s law across its own impedance decides the current for it. That prompt reaction is exactly what a system operator wants during a disturbance. It is also, in the same paragraph of the same review, exactly what creates the problem this book returns to twice more:

“…depending on the magnitude of the perturbation and on the characteristics of the system, this behavior might cause a rapid growth of the converter currents, hence jeopardizing the converter hardware components.”3

Hold that sentence. Chapter 4 will meet it again the moment droop control is introduced (a droop controller commands a voltage, and nothing in a voltage command contains a current at all, so nothing in it can stop one), and Chapter 8 is built entirely around solving it properly.

The stability duality: each type fails in the other’s comfort zone

Grid-following inverters are well known to struggle as the grid gets weaker (Chapter 2 develops this in depth: the PLL’s own bandwidth interacts with the grid impedance and can go unstable). It is tempting to conclude that grid-forming inverters are simply better. They are not: they trade one failure mode for a different one:

“…GFM converters are instead suitable for weak grid applications. On the contrary, they result to be more prone to instability under stiff grid operating conditions compared to their counterpart GFL converters.”4

Weak grid (large \(Z_g\)) Stiff grid (small \(Z_g\))
Grid-following Degrades: PLL/impedance interaction, can go unstable Comfortable
Grid-forming Comfortable, works down to an open island Degrades, can ring or go unstable

The physical reason for the grid-forming row is worth stating now, because it is one line of algebra and it will reappear as the central design constraint of Chapters 4, 6 and 9. A grid-forming inverter sets an angle, and for a source \(E\angle\delta\) feeding a grid \(V\angle 0\) through a total reactance \(X\), \[ P \approx \frac{E\,V}{X}\sin\delta. \] As the grid gets stiffer, \(X_{total} \to 0\), and the gain from angle to power grows without bound. Any loop that closes around \(P\) (which is exactly what droop and the swing equation do) sees an unbounded loop gain on a sufficiently stiff grid and rings or goes unstable. Virtual impedance (Chapter 9) exists partly to put a floor under \(X_{total}\) for precisely this reason: it is a stabiliser as much as it is a current limiter.

In a sentence

“Grid-forming is better than grid-following” is not the right way to think about it. Grid-following fails as the grid weakens; grid-forming fails as the grid stiffens. Each is the right tool on one side of that line, and Chapter 2 is about finding out honestly which side this book’s running example actually sits on.

Both types can do the same job in steady state

One more qualification, because it stops a common confusion before it starts. In steady state, a grid-forming and a grid-following inverter can both regulate active power, reactive power, or terminal voltage: there is nothing a grid-forming inverter can do in steady state that a grid-following one cannot:

“In spite of different working principles, under steady-state operation, both GFM and GFL converters control active and reactive power injection into the grid according to the actual operating condition… Nevertheless, the main differences among the two types of converters can be identified in the reaction to a grid event.”5

Steady state does not distinguish them. The response to a disturbance does. Keep that framing: it is the reason every later chapter’s worked examples are about transients, faults and closing transients rather than steady-state operating points.

Jargon buster

Industry and grid-code documents mostly define “grid-forming” by a list of required capabilities: must provide inertia, must withstand a given phase jump, must inject fault current within so many milliseconds: rather than by the control-structure definition this book uses. Both are legitimate; they are answering different questions. A capability definition tells a system operator what to procure. A control-structure definition (an internal state versus a measured input) tells an engineer what to build. This book is a book for the second question, but expect grid codes you meet elsewhere to be written in the first language.

What this means for the rest of the book

A common shorthand for this book’s organising idea says “the voltage controller, current controller and PWM are identical across every method.” That is very close to right, but it overstates one part of it, and the correction matters enough to fix now, before it is repeated. A grid-following inverter, as described above, has no voltage controller at all: its cascade is PLL, then a power or current reference, then the current controller, then PWM. There is no block anywhere in it that regulates a voltage.

So the shared blocks across all three control methods this book covers are the current controller and the modulator, full stop. The voltage controller is shared between droop and VSG only, and its presence is precisely what makes a converter grid-forming in the first place. That is a stronger, more useful statement than the original, because it now explains two transitions with one sentence instead of one:

Key idea

The current controller and PWM never change. Adding a voltage controller on top of them is what makes an inverter grid-forming: this is the whole subject of Chapter 3. What then distinguishes droop from VSG (Chapters 4 and 6) is only the one block sitting above that voltage controller: the differential equation that produces the angle. Everything downstream of that one block is, quite literally, the same code.

Companion simulator

The companion simulator’s three controllers (grid-following, droop, VSG) share the exact current controller and PWM stage. Load any two of them and diff the block diagrams the tool shows you: the current-loop and modulator blocks are pixel-identical. The outer block is the only thing that changes, and by the time you reach Chapter 6 you will be able to point at exactly which term inside it changes between droop and VSG too.

In a sentence

Grid-following measures an angle and computes a current from it. Grid-forming produces its own angle and lets the network compute the current. The distinction is causality, not topology; it holds only within the voltage loop’s bandwidth and below the current limit; and each type is unstable on the side of the impedance spectrum the other one is comfortable on.

Continue the course

Sign in to unlock Chapters 2 to 10 and keep reading in one continuous page.

Sign in to continue