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

Run this example

The browser version is coming soon. Until then, open this example in the desktop app. Download Voltecx

The llcHalfBridge example drives a resonant tank and a transformer from a half bridge at 400 V, with a diode bridge to 48 V. It ships with a tank for about 480 W. This page sizes a new tank for 250 W and an input of 360 to 420 V: a turns ratio of 4.04, a 97.2 µH resonant inductor, a 26.1 nF resonant capacitor and 486 µH of magnetising inductance. At 100 kHz the run gives 47.96 V out with a resonant current of 2.27 A peak, which matches the hand value. A frequency sweep finds zero-voltage switching from 60 kHz up, next to the 54.9 kHz the tank design predicts.

Open it

In the app: File › Open Example › Isolated › LLC resonant half bridge. Then choose Design › Design Steps › LLC Tank and enter the spec below. From the command line:

powercraft-cli run --cmd file.openExample --params '{"name": "llcHalfBridge"}' \
  --cmd design.llc --params '{"vin": 400, "vinMin": 360, "vinMax": 420, "vout": 48, "pout": 250, "fr": "100k", "apply": true}' \
  --cmd simulation.run \
  --cmd scope.measure --params '{"signals": ["v(out)", "ir"], "t0": "1.4m", "t1": "1.8m"}'

The LLC half bridge: the 400 V source, switches Q1 and Q2, the ammeter AmR, resonant capacitor Cr and inductor Lr, transformer T1, diode bridge D1 to D4, output capacitor Co and load R1, with the PWM, inverter and dead-time blocks above the power stage joined by the net labels g1 and g2.

Spec Value
Nominal input 400 V
Input range 360 to 420 V
Output 48 V, 250 W (9.216 Ω)
Resonant frequency frf_r 100 kHz
Dead time 200 ns

The hand calculation

A half bridge puts a square wave of half the input on the tank. At the resonant frequency the tank's gain is one, so the turns ratio sets the output. With the rectifier's 1.5 V drop at this current:

n=Vin/2Vo+Vdrop=20049.5=4.04n = \frac{V_{in}/2}{V_o + V_{drop}} = \frac{200}{49.5} = 4.04

The rectifier and load look like a resistor to the tank, seen through the transformer:

Rac=8n2π2R⋅Vo+VdropVo=125.75 ΩR_{ac} = \frac{8 n^2}{\pi^2} R \cdot \frac{V_o + V_{drop}}{V_o} = 125.75\ \Omega

The design step picks the quality factor QQ = 0.4855 and Lm/LrL_m/L_r = 5. These give a peak gain 10 % above the 1.11 that the 360 V input needs. Then:

Lr=QRac2πfr=97.17 μH,Cr=12πfrQRac=26.07 nF,Lm=5Lr=485.8 μHL_r = \frac{Q R_{ac}}{2\pi f_r} = 97.17\ \mu\text{H}, \qquad C_r = \frac{1}{2\pi f_r Q R_{ac}} = 26.07\ \text{nF}, \qquad L_m = 5 L_r = 485.8\ \mu\text{H}
Result of LLC Tank Value
Peak gain at full load 1.222, at 54.88 kHz
fminf_{min} (gain 1.11, 360 V in) 76.99 kHz
fmaxf_{max} (gain 0.95 at 10 % load, 420 V in) 115.4 kHz
Magnetising current at turn-off, at fmaxf_{max} 0.892 A
Switch-node swing time 188 ns

The gain curve depends only on QQ and Lm/LrL_m/L_r, so it is the same shape as the example's 480 W tank, only with new component values.

The tank's gain against switching frequency at full load and at 10 % load, with the resonant frequency marked at 100 kHz.

Zero-voltage switching needs the magnetising current to move the switch node before the other switch turns on. The node has to move 2CossVin,max2 C_{oss} V_{in,max} = 2 · 200 pF · 420 V = 168 nC. At 0.892 A that takes 188 ns, which is inside the 200 ns dead time but with little to spare. The design step reports 515.7 µH as the largest LmL_m that still swings in time.

The run

Run with the new tank at 400 V and 100 kHz, then measure from 1.4 ms to 1.8 ms.

At resonance the resonant current is the sum of two parts a quarter period apart:

  • the load's part, with a peak of πIo/(2n)\pi I_o / (2n) = 2.03 A;
  • the magnetising current, with a peak of (Vin/2)/(4Lmfr)(V_{in}/2) / (4 L_m f_r) = 1.03 A.

Together they give 2.032+1.032\sqrt{2.03^2 + 1.03^2} = 2.27 A.

Quantity Hand Run
Mean output 48 V 47.96 V
Output ripple (peak to peak) — 0.25 V
Resonant current, peak 2.27 A 2.27 A
Resonant current, rms — 1.60 A

Three switching cycles at 100 kHz: the switch node v(sw) from 0 to 400 V, the near-sine resonant current ir and the output v(out).

Where zero-voltage switching starts

Below the peak-gain frequency the tank turns capacitive, and the switches turn on hard. Sweep the PWM frequency fr with Analysis › Soft Switching:

powercraft-cli run --cmd analysis.softSwitching \
  --params '{"sweep": {"variable": "fr", "values": [40000, 50000, 55000, 60000, 70000, 80000, 100000, 115000]}}'
fr 40 kHz 50 kHz 55 kHz 60 kHz 70 to 115 kHz
Zero-voltage turn-on no no no yes yes

Both switches gain zero-voltage switching between 55 and 60 kHz. The tank design put the peak at 54.88 kHz, so the first-harmonic model and the simulation agree to within the sweep's 5 kHz steps. The whole working range, 77 to 115 kHz, switches at zero voltage.

Try next

  • Step the input to 360 V with simulation.tune and find the frequency that brings the output back to 48 V, as in the LLC tutorial.
  • Raise T1's magnetising inductance above 515.7 µH and rerun the sweep: the swing no longer fits in the dead time.
  • See the boost PFC worked example for the stage that usually feeds an LLC its 400 V.

Every number on this page comes from a run that a test repeats (auto::tests_worked_examples), so the page changes when the simulator does.