Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

MMC Arm (mmcArm)

One arm of a modular multilevel converter: n half- or full-bridge submodules in series, each with its own capacitor, inserted by the signal m.

mmcArm

Component reference · 繁體中文

Group: Switches · Kind: {"kind":"mmcArm"}

When to use it

Use it to build an MMC inverter, a STATCOM or one end of an HVDC link: two arms per phase leg, each with an arm inductor. Use level switched to see the submodule voltages, the balance and the switching ripple; use level averaged for a long arm or a long run.

Pins

Pin Domain Meaning
p electrical Arm end where the arm current counts as positive going in
n electrical Other arm end
m signal Insertion index (an input signal): 0 bypasses every submodule, 1 inserts all of them; −1 to 0 inserts full-bridge submodules reversed

Common parameters

  • n: Submodules in series in the arm: 1 to 8 when switched, up to a million when averaged (Default: 4)
  • c: Capacitance of each submodule (Default: required)
  • v0: Voltage of each submodule capacitor at the start (Default: 0)
  • level: Level of detail: switched (every submodule with its switches, picked by the sorting balance) or averaged (the arm-averaged model: no ripple, any n) (Default: switched)
  • fc: Carrier frequency of the phase-shifted PWM; 0 inserts the nearest level. Switched level only (Default: 0)

Parameters

Key Unit Default Typical range Description
n — 4 Submodules in series in the arm: 1 to 8 when switched, up to a million when averaged
c F required Capacitance of each submodule
v0 V 0 Voltage of each submodule capacitor at the start
level — switched Level of detail: switched (every submodule with its switches, picked by the sorting balance) or averaged (the arm-averaged model: no ripple, any n)
bridge — half Submodule type: half (inserted or bypassed, m from 0 to 1) or full (also inserted reversed, m from −1 to 1)
fc Hz 0 Carrier frequency of the phase-shifted PWM; 0 inserts the nearest level. Switched level only
sorting — 1 Set to 0 to switch the sorting balance off: submodules go in by index, lowest first, and the capacitor voltages drift apart. Switched level only
ron Ω 1m Resistance of a submodule switch when on
roff Ω 1meg Resistance of a submodule switch when off

Parameter descriptions are in English in both languages.

Use for: Modular multilevel converters · HVDC converter studies · Capacitor balancing studies

Not for: A two-level converter leg → sixSwitch

Formulas

Formula Equation Source
Capacitor voltage at the operating point Vc = Vdc/n Lesnicar & Marquardt, IEEE Bologna PowerTech (2003), modular multilevel converter
Arm voltage v = m·n·Vc Hagiwara & Akagi, IEEE Trans. Power Electron. 24(7) (2009), pp. 1737-1746, arm voltage from the insertion index
Energy in the arm capacitors E = n·½·C·Vc² Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 7 (energy in a capacitor)

Quick check

Inputs:

  • vdcb: DC bus voltage = 800 V
  • n: Submodules in the arm = 4 —, n
  • c: Capacitance of a submodule = 4.7m F, c
  • m: Insertion index = 500m —

Outputs:

  • vc0: Capacitor voltage = vdcb/n V
  • varm: Arm voltage = m*n*vc0 V
  • earm: Energy in the arm capacitors = n*0.5*c*vc0^2 J

Model logic

  • Switched: each half-bridge submodule is an upper switch to its capacitor and a lower switch that bypasses it; a full bridge has two legs.
  • An mmcBalance block picks round(m * n) submodules, or with fc above 0 a phase-shifted PWM, inserting the lowest capacitors while charging.
  • Averaged: a voltage source m * vsum in series with the on-resistance, where vsum charges by m * i through c / n.
  • The signals arm:i, arm:vsum and, switched, the capacitor voltages and the selection can be plotted.

Model

Before the run the arm becomes primitives. Switched: each half-bridge submodule is an upper switch to its capacitor and a lower switch that bypasses it, and a full-bridge submodule has two such legs, so it can also be inserted reversed. An mmcBalance block reads m, the arm current and every capacitor voltage and picks the submodules: round(m·n) of them (nearest level), or with fc above 0 a phase-shifted PWM of n carriers. It inserts the lowest capacitors while the arm current charges them and the highest while it discharges them, and changes only the submodules that a change of level needs; with sorting 0 it inserts them by index instead, lowest first, and the capacitor voltages drift apart. Averaged: a voltage source m·vsum in series with the on-resistance of the conducting switches, where vsum is the sum of the capacitor voltages charged by m·i through C/n. The signals arm:i (arm current), arm:vsum and, switched, arm:v1 to arm:vn (capacitor voltages) and arm:g1 to arm:gn (the selection) can be plotted.

Common mistakes

  • An arm needs an arm inductor in series. Two arms of a leg straight across the DC bus fight each other through their capacitors and the current jumps without limit.
  • Start the capacitors charged: set v0 to the DC bus voltage divided by n. With v0 at 0 the arm makes no voltage until the bus has charged it through the arm inductors.
  • The switched level holds at most 8 submodules, and its submodule switches are ideal switches with no switching loss and no blocked state. Use level averaged for a longer arm.
  • The two arms of a leg share the DC current and carry a second-harmonic circulating current. Without a circulating-current controller this current makes the capacitor ripple and the losses larger; see the mmcInverter example.

Datasheet and sources

c is the capacitance of one submodule's capacitor bank and v0 its starting voltage, from your own design (DC bus voltage divided by n is the usual operating point). ron is the on-state resistance of one submodule switch at the working current; for an IGBT module, its saturation voltage divided by that current.

Example

Open the example with the command file.openExample and the name demo:mmcArm.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.