Engineering tool · Grid-tied converters

LCL filter designer for grid-tied inverters

Size L1, Cf, L2 and the damping resistor of a three-phase LCL filter, then check the design against the PWM spectrum it will really see. The tool simulates the modulator, applies dead time, sweeps stiff and weak grids, and compares every harmonic of the grid current with the IEEE 1547-2018 limits.

  • Exact PWM spectrum, not a rule of thumb
  • Stiff and weak grid
  • fs/6 stability check
  • IEEE 1547 / IEEE 519 limits
  • Runs in your browser

Loading the calculator…

Learn the theory behind this tool

The calculator gives the numbers. These articles explain where they come from and how they go wrong on real projects.

Learn it live, on an industrial case study. This topic is taught in depth in the Industrial power electronics program: small groups, real design reviews.

See the program

What this tool does differently

Most online LCL calculators apply three formulas and stop. They never look at the voltage the inverter really produces, so they cannot tell you whether the grid current meets a harmonic limit. They also ignore the grid inductance that moves the resonance once the converter is installed, and the inductance the core loses at full current. This designer works the way a design review does:

  1. Initial sizing from the ripple, reactive-power and attenuation targets (Liserre, Reznik).
  2. Exact PWM spectrum. For every carrier period the tool computes the switching instants of a regular-sampled triangular-carrier modulator (single or double update, SPWM or SVPWM with min-max injection). It shifts each edge by the dead time according to the sign of the phase current. The Fourier series of that waveform is then computed in closed form, so there is no time-step error. It matches a brute-force simulation with 220 points per period to within 0.1 %.
  3. Filter response. Each harmonic goes through the exact LCL transfer functions, for a stiff grid and for your weakest grid.
  4. Iteration. In auto mode L1 is corrected until the simulated ripple meets the target. L2 is raised until the worst switching harmonic meets your limit on both grids and at every tolerance corner.
  5. Tolerance corners. The checks are repeated with the inductors rolled off at rated current and the capacitor at both ends of its tolerance.
  6. Checks. Resonance placement, the fs/6 boundary for the chosen controlled current, resonance peak with damping, total inductance in per unit, DC-link headroom, capacitor reactive power, and damping losses.

Equations used

Base values Zb = V²/P Lb = Zb/ω Cb = 1/(ω·Zb) Ripple L1 = Vdc / (6 · fsw · ΔIpp,max) (start value, then simulated) Capacitor Cf = x · Cb (x = 5 % typical) Attenuation L2 = (1 + 1/ka) / (Cf · ωsw²) (start value, then simulated) Resonance f_res = 1/(2π) · √((L1 + L2) / (L1 · L2 · Cf)) Damping Rd = 1 / (3 · ω_res,min · Cf) (Q = 3 on the weakest grid) Grid Lg = V² / (SCR · P · ω) (L2 → L2 + Lg)

Transfer functions, with Zc = Rd + 1/(sCf):

i1/vi = 1 / (sL1 + Zc ‖ sL2) ig/vi = (i1/vi) · Zc / (Zc + sL2)

The Bode plot shows the price of passive damping: above the corner frequency 1/(Rd·Cf), the series resistor turns the −60 dB/decade slope of the LCL filter into −40 dB/decade. That is why the tool re-checks the switching harmonics after it sizes Rd.

Stability boundary at fs/6

A digital controller that samples once or twice per switching period has a computation and PWM delay of about 1.5 sampling periods. Parker, McGrath and Holmes showed that this delay sets a critical frequency at fs/6:

  • With grid-current control, the loop is stable without damping only if the resonance is above fs/6.
  • With inverter-current control, it is the opposite: the resonance must stay below fs/6.
  • Capacitor-current feedback, the usual active damping, behaves as a positive virtual resistor below fs/6 and a negative one between fs/6 and fs/2 (Pan, Ruan et al.).

Because the grid inductance lowers the resonance and core roll-off raises it, a design can cross fs/6 between the lab and the site. The tool checks the full range. When you choose no passive damping, the harmonic results assume the loop damps the resonance like a lossless virtual resistor across Cf with Q = 3.

Field note. The fs/6 crossing is where most “the filter rings on site but not in the lab” problems come from. The lab supply is stiff, the site transformer is not. Always check the weakest SCR you expect. Remember that a powder or ferrite core can lose 10–30 % of its inductance at full current, which moves the resonance up.

Harmonic limits

Limits up to the 50th harmonic follow IEEE 1547-2018 (Tables 26 and 27), equal to IEEE 519 for Isc/IL < 20:

  • Odd harmonics: 4 % below the 11th, 2 % from 11 to 17, 1.5 % from 17 to 23, 0.6 % from 23 to 35, 0.3 % from 35 to 50.
  • Even harmonics: 1 %, 2 % and 3 % for h = 2, 4 and 6, then as the odd range.
  • Total demand distortion: 5 %.

Neither standard limits harmonics above the 50th. The switching-frequency target (0.3 % by default) is common design practice; set it to what your customer or grid code asks for.

Assumptions and limits

  • Balanced three-wire system, two-level converter, ideal switches. The PWM is synchronous, with mf = fsw/fg rounded to the nearest integer.
  • Dead time shifts each edge according to the sign of the fundamental phase current. Zero-current clamping, where ripple makes the current change sign within a switching period, is not modelled.
  • Low-order harmonics are open loop: a current controller with resonant terms reduces them. Switching harmonics are far above the control bandwidth, so they are predicted accurately.
  • The operating point is rated current at unity power factor. Background grid voltage distortion and component ESR are not included.

References

  • M. Liserre, F. Blaabjerg, S. Hansen, “Design and control of an LCL-filter-based three-phase active rectifier”, IEEE Trans. Industry Applications, 2005.
  • A. Reznik, M. G. Simões, A. Al-Durra, S. M. Muyeen, “LCL filter design and performance analysis for grid-interconnected systems”, IEEE Trans. Industry Applications, 2014.
  • S. G. Parker, B. P. McGrath, D. G. Holmes, “Regions of active damping control for LCL filters”, IEEE Trans. Industry Applications, 2014.
  • D. Pan, X. Ruan, C. Bao, W. Li, X. Wang, “Capacitor-current-feedback active damping with reduced computation delay for improving robustness of LCL-type grid-connected inverter”, IEEE Trans. Power Electronics, 2014.
  • D. G. Holmes, T. A. Lipo, Pulse Width Modulation for Power Converters, IEEE Press / Wiley, 2003.
  • IEEE Std 1547-2018 and IEEE Std 519-2022.
Mohamed Yasser El Mekadem

Built and maintained by Mohamed Yasser El Mekadem, Technical Leader on a 1500 V rail traction battery, eight years in onboard railway energy. Found a case where the tool disagrees with your measurements? Send me a message.

Related guides: power electronics · SiC MOSFETs · gate drivers · battery energy storage systems · all engineering tools