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

Electrical Constant-Power Load (powerLoad)

A load that draws the same power at any voltage, like a regulated converter or an electronic load in CP mode.

powerLoad

Component reference · 繁體中文

Group: Sources · Kind: {"kind":"powerLoad"}

When to use it

Use it for the input of a downstream converter, a motor drive seen from its DC bus, or a pulsed load. Its negative incremental resistance is what makes a filter in front of a converter ring, so it is the load to test input-filter stability with. For a load that follows the voltage, use a resistor.

Pins

Pin Domain Meaning
p electrical Positive terminal; the load current flows in here
n electrical Negative terminal
pref signal Optional power setpoint signal in watts, for a load that follows the control; it wins over profile and p

Common parameters

  • p: Power it draws; the pref input, when connected, sets it instead (Default: 100)
  • profile: Power over time: pwl(t p …), steps(p0 t p …), pulse(p1 p2 delay rise fall width period), workload(pidle ppeak period duty edge [pexc texc]) or vrstep(p0 p1 delay slew/µs [width period]); replaces p (Default: optional (off))
  • von: Undervoltage lockout: it turns on when the voltage reaches von; 0 means always on (Default: 0)
  • voff: Undervoltage lockout: it turns off when the voltage falls below voff; 0 means never (Default: 0)

Parameters

Key Unit Default Typical range Description
p W 100 Power it draws; the pref input, when connected, sets it instead
vmin V 1 Below this voltage it is a resistor that draws p at vmin, so it stays defined near 0 V
von V 0 Undervoltage lockout: it turns on when the voltage reaches von; 0 means always on
voff V 0 Undervoltage lockout: it turns off when the voltage falls below voff; 0 means never
profile — optional (off) Power over time: pwl(t p …), steps(p0 t p …), pulse(p1 p2 delay rise fall width period), workload(pidle ppeak period duty edge [pexc texc]) or vrstep(p0 p1 delay slew/µs [width period]); replaces p
repeat — 0 Set to 1 to repeat the profile pattern over and over

Parameter descriptions are in English in both languages.

Use for: Inputs of downstream converters · Input filter stability tests · Pulsed loads

Not for: A load that follows the voltage → resistor

Formulas

Formula Equation Source
Load current i = P/v Erickson & Maksimovic, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (input filter design)
Incremental resistance dv/di = −v²/P Middlebrook, Input filter considerations in design and application of switching regulators, IEEE IAS Annual Meeting (1976), pp. 366-382
Filter stability margin margin = (v²/P)/Z0, below 1 it rings Middlebrook, Input filter considerations in design and application of switching regulators, IEEE IAS Annual Meeting (1976), pp. 366-382
Resistor below vmin R = vmin²/P Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power in a resistor)

Quick check

Inputs:

  • p: Power drawn = 100 W, p
  • v: Voltage at the terminals = 48 V
  • vmin: Voltage below which it is a resistor = 1 V, vmin
  • zo: Characteristic impedance of the filter before it = 500m Ω

Outputs:

  • i: Load current = p/v A
  • rinc: Incremental resistance = -v^2/p Ω
  • margin: Filter stability margin = (v^2/p)/zo —
  • rlow: Resistor below vmin = vmin^2/p Ω

Model logic

  • Above vmin the load draws i = P / v, so its power is P whatever the voltage; below vmin it is the resistor vmin² / P.
  • P is the pref signal when connected, else the profile at the time of the step, else p; a negative setpoint draws nothing.
  • With von set the load starts off and turns on when the voltage reaches von; with voff set it turns off below voff.
  • The lockout is checked once per accepted step, and the load is solved by Newton's method.

Model

Above vmin it draws i = P / v, so its power is P whatever the voltage. Below vmin it is the resistor vmin² / P, so it stays defined at 0 V and draws P at vmin. P is the value of the pref signal when pref is connected, else the profile at the time of the step when profile is set, else the parameter p; a negative setpoint draws nothing. A profile is pwl(t1 p1 t2 p2 and so on) for straight lines between points, steps(p0 t1 p1 t2 p2 and so on) for levels held from each time on, or pulse(p1 p2 delay rise fall width period) for a pulsed load; repeat set to 1 starts a pwl or steps pattern over after its last time. The fast solver lands a step on every corner of the profile. With von set, the load starts off (only a 1 GΩ leakage) and turns on once the voltage reaches von. With voff set, it turns off again when the voltage falls below voff, and stays off until it reaches von. The lockout is checked once per accepted step. The load is solved by Newton's method, like the protection devices.

Common mistakes

  • Without a lockout, a constant-power load draws a large current while its supply ramps up from 0 V. Set von and voff to the thresholds of the converter it stands for, or raise vmin.
  • A constant-power load fed through an LC filter oscillates when the filter's characteristic impedance is above v² / P. That is a real instability, not a solver problem; damp the filter.
  • voff must not be above von. Keep a few volts between them so the load does not chatter at the threshold.

Datasheet and sources

p is the power the load draws: the output power of the converter it stands for divided by that converter's efficiency. von and voff are the converter's UVLO turn-on and turn-off thresholds from its data sheet. The defaults are not taken from any part: 100 W, vmin 1 V and no lockout.

Example

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


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