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

Six-Switch Module (sixSwitch)

Six switches in three legs with a diode across each, for a three-phase inverter or an active rectifier.

sixSwitch

Component reference · 繁體中文

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

When to use it

Use it to build a three-phase inverter, motor drive or active rectifier quickly. To study switching loss, place MOSFETs or IGBTs with a device model instead.

Pins

Pin Domain Meaning
p electrical DC bus, positive
n electrical DC bus, negative
a electrical Phase a, the middle of leg a
b electrical Phase b, the middle of leg b
c electrical Phase c, the middle of leg c
ah signal Gate of the high switch of leg a (an input signal)
bh signal Gate of the high switch of leg b (an input signal)
ch signal Gate of the high switch of leg c (an input signal)
al signal Gate of the low switch of leg a (an input signal)
bl signal Gate of the low switch of leg b (an input signal)
cl signal Gate of the low switch of leg c (an input signal)

Common parameters

  • ron: Resistance when it is on (Default: 1m)
  • roff: Resistance when it is off (Default: 1meg)
  • vf: Voltage lost while it conducts (Default: 0)
  • diodes: Set to 0 to leave out the diodes across the switches (Default: 1)

Parameters

Key Unit Default Typical range Description
ron Ω 1m Resistance when it is on
roff Ω 1meg Resistance when it is off
vf V 0 Voltage lost while it conducts
diodes — 1 Set to 0 to leave out the diodes across the switches

Parameter descriptions are in English in both languages.

Use for: Three-phase inverters · Motor drives · Active rectifiers

Not for: One device with its own switching model → igbt

Formulas

Formula Equation Source
Phase voltage peak, sine PWM Vpk = m·Vdc/2 Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 8 (three-phase inverters)
Line voltage, rms Vll = (√3/√2)·m·Vdc/2 Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 8 (three-phase inverters)
Conduction loss of the three legs P = 3·Iph²·ron Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power in a resistor)
Shoot-through current I = Vdc/(2·ron) Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (Ohm's law)

Quick check

Inputs:

  • vdc: DC bus voltage = 400 V
  • m: Modulation index = 800m —
  • ron: On resistance = 1m Ω, ron
  • iph: Phase current, rms = 10 A

Outputs:

  • vpk: Phase voltage peak = m*vdc/2 V
  • vll: Line voltage, rms = sqrt(3)/sqrt(2)*m*vdc/2 V
  • pcond: Conduction loss = 3*iph^2*ron W
  • ishoot: Shoot-through current = vdc/(2*ron) A

Model logic

  • Before the run the module becomes six ideal switches and six diodes, so it simulates like that circuit drawn by hand.
  • Each high switch runs from p to its phase and each low switch from its phase to n; a gate above one half turns its switch on.
  • Each diode lies across its switch and carries the current when the load is inductive; with diodes set to 0 they are left out.
  • ron and roff are the resistances of the switches and the diodes, and vf is the voltage each diode loses.

Model

Before the run the module becomes the six ideal switches and the six diodes that one would place by hand, so it simulates like that circuit. Each high switch runs from p to its phase and each low switch from its phase to n, and a high gate above one half turns its switch on. Each diode lies across its switch, from the phase to p for a high switch and from n to the phase for a low one, and carries the current when the load is inductive. The parts are named sah, dah, sal and dal for leg a, and likewise for b and c. ron and roff are the resistances of the switches and the diodes, and vf is the voltage each diode loses. With diodes set to 0 the diodes are left out.

Common mistakes

  • Never drive the high and the low gate of one leg high together. That shorts the DC bus through ron. Use a dead time between the two gates.
  • The gates are signals. Connect each one to the output of a control block such as PWM, not to a power net.
  • The switches are ideal and have no switching loss. The module cannot show the heat of a real power stage.

Problems rules: shoot-through, pin.unconnected

Datasheet and sources

ron is the on-state resistance of the switch at the working current, and for an IGBT module it is the saturation voltage divided by that current. vf is the forward voltage of the diode at the working current, taken from its datasheet.

Example

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


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