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

Component reference

繁體中文

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

Passive

  • Resistor: Limits current in proportion to the voltage across it.
  • Inductor: Stores energy in its current. Can add winding resistance, core loss and saturation.
  • Capacitor: Stores energy in its voltage. Can add series resistance, series inductance and leakage.
  • Quartz Crystal: A quartz crystal for oscillators and filters, drawn as its equivalent circuit.
  • Supercapacitor: A very large capacitor with series resistance, leakage and a slow inner branch.
  • Three-Phase R-L-C: The same resistor, inductor and capacitor in series in each of three phases.
  • Varistor: A metal-oxide varistor whose current rises steeply above its varistor voltage.
  • NTC Thermistor: A resistor that falls as it heats, used to limit inrush current.
  • PTC Thermistor: A resistor that climbs steeply when it gets hot, used as a resettable fuse.
  • Fuse: A resistor that opens for good once its melting I²t is reached.
  • Gas Discharge Tube: A tube that is open until its sparkover voltage, then shorts the line through an arc.
  • Ferrite Bead: A bead that acts as a resistor at noise frequencies and as a small inductor at low frequencies.
  • Pi-Section Line: A transmission line as series R-L with half its shunt capacitance at each end, from per-metre values and a length, in one or more pi sections in cascade.
  • Three-Phase Pi-Section Line: Three pi-section lines, one per phase, with the positive-sequence values per metre and a length.
  • Transmission Line: A distributed lossless line given by its characteristic impedance and one-way delay, with an optional series resistance lumped at its ends: waves travel along it and reflect where the impedance changes.

Sources

  • Fuel Cell: A fuel cell stack whose voltage falls with current along its polarisation curve.
  • Water Electrolyzer: A water electrolyzer stack, a load whose voltage rises with current above the reversible voltage of water.
  • DC Voltage Source: Holds a fixed voltage between its two terminals.
  • Sine Voltage Source: Produces a sine-wave voltage with offset and phase.
  • Three-Phase Sine Voltage Source: A balanced, ideal three-phase sinusoidal voltage source in star, with its star point brought out.
  • Pulse Voltage Source: Produces a pulse or square-wave voltage.
  • DC Current Source: Pushes a fixed current through itself.
  • Controlled Source: Makes a voltage or current equal to a signal times a gain.
  • Ground: The zero-volt reference of the circuit.
  • Test Point: A probe pad on the board, for measuring a net during bring-up.
  • Battery: A rechargeable battery whose voltage follows its state of charge.
  • Solar Module: A photovoltaic module that turns sunlight into current.
  • Three-Phase Grid: A three-phase voltage source with a neutral, for grid-tied converters.
  • Electrical Constant-Power Load: A load that draws the same power at any voltage, like a regulated converter or an electronic load in CP mode.
  • Nonlinear Rectifier Load: A single-phase diode bridge with a smoothing capacitor and a load resistor, the classic load that draws harmonic current from the line.
  • Wind Turbine: A wind turbine rotor that drives a shaft with the torque the wind gives it.
  • Mounting Hole: A board-only part: a hole for a screw or standoff, shown on the schematic and never simulated.
  • Fiducial: A board-only part: a bare copper mark the pick-and-place camera aligns to. It has no pins and is never simulated.
  • Standoff: A board-only part: a spacer that holds the board off its chassis. It has no pins and is never simulated.
  • Bracket: A board-only part: an angle bracket that fixes the board or a heatsink to the chassis. It has no pins and is never simulated.
  • Logo: A board-only part: a logo, title or marking on the silkscreen. It has no pins and is never simulated.
  • Terminal Block, 2 Positions: A screw terminal block with 2 positions: where a supply or load wire enters the board.
  • Terminal Block, 3 Positions: A screw terminal block with 3 positions: where a supply or load wire enters the board.
  • Terminal Block, 4 Positions: A screw terminal block with 4 positions: where a supply or load wire enters the board.
  • Pin Header, 2 Pins: A 2.54 mm pin header with 2 pins: where a gate drive or signal from off the board plugs in.
  • Pin Header, 3 Pins: A 2.54 mm pin header with 3 pins: where a gate drive or signal from off the board plugs in.
  • Pin Header, 4 Pins: A 2.54 mm pin header with 4 pins: where a gate drive or signal from off the board plugs in.

Switches

  • Ideal Switch: Opens or closes a path when its gate signal goes low or high.
  • Diode: Lets current flow one way, with a forward drop when it conducts.
  • Zener Diode: A diode that holds its reverse voltage near the Zener voltage.
  • TVS Diode: A surge suppressor diode that clamps a voltage spike above its stand-off voltage.
  • LED String: A string of LEDs in series, with strings in parallel, as the load of an LED driver.
  • MOSFET: A gate-controlled switch with a body diode. Can add stray parts and losses.
  • IGBT: A gate-controlled switch that passes current one way, with a fixed drop.
  • Thyristor: Turns on with a gate pulse and stays on until its current reverses.
  • TRIAC: A bidirectional thyristor: a gate current fires it either way, and it stays on until its current falls below the holding current.
  • DIAC: A trigger diode that breaks over at vbo in either direction, then conducts at a lower voltage until its current dies away.
  • GTO Thyristor: A thyristor that a positive gate turns on and a negative gate turns off.
  • IGCT: A thyristor with an integrated gate unit that conducts forward while its on/off command is high.
  • Relay: Uses a small coil current to switch another circuit.
  • NPN Transistor: A bipolar transistor where a small base current controls a larger collector current.
  • PNP Transistor: The NPN Transistor with every current and voltage reversed.
  • N-channel MOSFET (level 1): An n-channel MOSFET whose current follows its gate voltage.
  • P-channel MOSFET (level 1): The N-channel MOSFET with every voltage and current reversed.
  • Circuit Breaker: A three-pole breaker that opens at a set time or on overcurrent after a delay, and may close again.
  • Fault: A short circuit that joins chosen lines of a three-phase system, or those lines and ground, during a time window.
  • Six-Switch Module: Six switches in three legs with a diode across each, for a three-phase inverter or an active rectifier.
  • Three-Phase Diode Bridge: Six diodes that turn a three-phase AC input into a DC output.
  • MMC Arm: 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.

Magnetics

  • Coupled Inductor: Two windings that share magnetic flux, with a coupling coefficient k.
  • Common-Mode Choke: Two equal coupled windings that block common-mode noise and pass the load current.
  • Transformer: A transformer with turns ratio n, and optional magnetizing inductance, leakage, winding resistance, core loss and saturation.
  • Three-Phase Transformer: A three-phase transformer with a chosen vector group, a line-to-line voltage ratio, leakage and magnetizing inductance.
  • Multi-Winding Transformer: A transformer with one primary and up to three secondaries on one core, each secondary with its own turns ratio, leakage and winding resistance.
  • Winding: N turns that join an electrical circuit to a magnetic circuit of reluctances.
  • Reluctance: A linear flux path: a core leg, an air gap or a whole core, from its geometry or a catalogue core.
  • Saturable Core: A flux path that saturates: its permeance falls to the air path once the flux density reaches Bsat.
  • Leakage Path: A linear flux path that returns flux outside the core, so windings link less than all of it.
  • Flux Probe: Reads the flux, or the flux density, through a magnetic path as a signal.

Control

  • Constant: Outputs one fixed value for the whole run.
  • Gain: Multiplies the input by a fixed factor k.
  • Sum: Adds or subtracts two signals, as set by signs.
  • Product: Multiplies two signals.
  • Maximum: Outputs the larger of two signals.
  • Minimum: Outputs the smaller of two signals.
  • Absolute Value: Outputs the size of the input, never negative.
  • Logic NOT: Turns a high logic signal low and a low one high.
  • Comparator: Outputs 1 while in1 is above in2, otherwise 0.
  • Limiter: Keeps the input between a lower limit lo and an upper limit hi.
  • Integrator: Adds up its input over time, with optional output limits.
  • PI Controller: Corrects an error with proportional and integral action, and limits its output.
  • Carrier: A triangle or sawtooth wave between 0 and 1 for PWM.
  • PWM Generator: Turns a duty from 0 to 1 into a gate signal.
  • Three-Phase PWM: Turns three duties into three gate signals with one shared carrier.
  • Sine Source: Outputs a sine wave with set amplitude, frequency, phase and offset.
  • Three-Phase Sine Source: Outputs a balanced three-phase sine set on three pins.
  • Step Source: Changes once from a before value to an after value at time t0.
  • Sample and Hold: Samples its input once per period and holds the value.
  • ADC: Rounds its input to a set number of bits, with optional sampling.
  • Sample Delay: Delays its input by one sample period.
  • Memory (one-step delay): Outputs its input as it was at the previous solver step.
  • Dead Time: Delays the rising edge of a gate signal and passes the falling edge at once.
  • Lookup Table: Looks up an output from a table of points, with straight lines between them.
  • Clarke Transform: Turns three phase quantities into two fixed components, alpha and beta.
  • Inverse Clarke Transform: Turns alpha and beta back into three phase quantities.
  • Park Transform: Rotates a fixed alpha-beta vector into the rotating d-q frame.
  • Inverse Park Transform: Rotates a d-q vector back into the fixed alpha-beta frame.
  • abc to dq Transform: Turns three phase quantities into rotating d and q components in one block.
  • dq to abc Transform: Turns rotating d and q components back into three phase quantities in one block.
  • Space-Vector Modulator: Turns three phase voltages and the DC-link voltage into three modulation signals.
  • Angle Generator: Turns an electrical speed into an angle that wraps around.
  • Vector Angle (atan2): The angle of the alpha-beta vector, atan2(beta, alpha), wrapped to 0 ... 2*pi.
  • Instantaneous Power (p, q): The instantaneous active and reactive power from the alpha-beta voltage and current.
  • C Block: Runs C code you write, a PSIM C Block or a PLECS C-Script, as a control block, in a sandbox that cannot crash or hang the simulation.
  • Multiplexer: Passes one of up to eight inputs to its output, picked by the sel signal.
  • Bus Mux: Joins up to eight signals into one bus, a single wire that carries them all.
  • Bus Demux: Splits a bus into its elements, one scalar signal per output.
  • Bus Selector: Picks some elements of a bus, in any order, as a smaller bus or a single signal.
  • Ramp: A ramp that rises while a gate is on (slope compensation) or restarts at each clock edge (a clock-synced sawtooth).
  • Random Source: A seeded random signal: a new uniform or Gaussian value every 1/fs seconds, held in between.
  • Type II / Type III Compensator: The error-amplifier compensator of a switch-mode power supply: an integrator with one or two zero-pole pairs, output limits and anti-windup.
  • Transfer Function: Describes a plant or compensator with two coefficient lists.
  • PID Controller: Adds up proportional, integral and derivative action on an error signal.
  • Second-Order Low-Pass: Smooths a signal by removing changes faster than a corner frequency.
  • Second-Order Band-Pass: Passes one band of frequencies around a centre frequency.
  • Notch Filter: Removes one frequency and lets the rest pass.
  • Zero-Order Hold: Samples its input at fixed times and holds the value.
  • Unit Delay (z^-n): Delays its input by a whole number of samples.
  • Discrete Transfer Function: Filters or controls a sampled signal with two coefficient lists.
  • Discrete PI Controller: A PI controller that runs once every sample time.
  • Discrete PID Controller: A PID controller that runs once every sample time.
  • Discrete Integrator: Adds up its input over time, one sample at a time.
  • FIR Filter: Filters a sampled signal with a fixed list of weights.
  • IIR Filter (Biquad Cascade): Filters a sampled signal with a chain of second-order sections.
  • AND Gate: Outputs 1 only when every input read is above 0.5.
  • OR Gate: Outputs 1 when any input read is above 0.5.
  • XOR Gate: Outputs 1 when an odd number of inputs are above 0.5.
  • NAND Gate: Outputs 0 only when every input read is above 0.5.
  • NOR Gate: Outputs 1 only when every input read is at or below 0.5.
  • SR Latch: Remembers a fault or state until it is reset.
  • D Flip-Flop: Copies its data input to the output on each rising clock edge.
  • Counter: Counts rising clock edges and wraps around at a set number.
  • Monostable (One-Shot): Makes one pulse of a fixed length after a rising edge.
  • MCU Output Stage: Adds the timing of a digital controller to a duty command before the PWM.
  • Sliding-Mode Observer: Estimates the rotor angle and speed of a permanent-magnet motor without a position sensor.
  • Droop Control (Grid-Forming): Sets an inverter's frequency and voltage amplitude from the power it delivers, so inverters in parallel share a load.
  • Virtual Synchronous Machine (Grid-Forming): Makes an inverter behave like a synchronous generator: its frequency follows the power through a virtual inertia and a droop damping.
  • Voltage-Controlled Oscillator: An oscillator whose frequency follows its control input.
  • Phase Detector: Compares the phase of two signals and outputs the difference.
  • Phase-Locked Loop (single-phase): Locks onto a single-phase signal and reports its frequency and phase.
  • Three-Phase SRF-PLL: Locks onto a three-phase signal and gives the grid angle and speed.
  • RMS Meter: The RMS of a signal over a sliding window, while the circuit runs.
  • THD Meter: The total harmonic distortion of a signal and its fundamental, while the circuit runs.
  • Harmonic Meter: The amplitude and phase of one harmonic of a signal, while the circuit runs.
  • Power Factor Meter: The power factor and displacement factor of a voltage and current, while the circuit runs.
  • Power Meter: The average input and output power and the efficiency of a converter, while the circuit runs.
  • FFT Block: Samples a signal and outputs one bin of its discrete Fourier transform once a period.
  • State Machine: Runs a sequence of named states; guard expressions over its inputs and the time in the state move it from one state to the next.
  • MMC Submodule Selection: Picks which submodules of an MMC arm to insert: how many from the insertion index m, which ones by sorting the capacitor voltages.
  • Communication Link: Carries up to four values from one controller to another with the timing of a bus: a rate, a latency, a seeded jitter and a seeded loss.
  • Expression (Fcn): Computes its output from a formula of up to eight inputs, the time and the circuit variables.
  • 2-D Lookup Table: Looks up an output from a table over two inputs, with bilinear interpolation between the grid points.
  • State-Space Model: A linear plant or filter given by its A, B, C and D matrices, one input and one output.
  • Zero-Pole-Gain: A transfer function given by its zeros, its poles and a gain.
  • Filtered Derivative: The rate of change of its input, times a gain, with a first-order filter so it does not amplify noise without bound.
  • Rate Limiter: Follows its input, but changes no faster than a rising and a falling rate.
  • Transport Delay: Delays a signal by a fixed time.
  • Relay with Hysteresis: Switches its output to one level when the input rises above a threshold and back when it falls below a lower one.

Thermal

  • Thermal Resistance: Slows the flow of heat between two thermal nodes, in K/W.
  • Thermal Capacitance: Stores heat at a thermal node, in J/K.
  • Ambient Temperature: Holds a thermal node at a fixed temperature, like ground for heat.
  • Heat Source: Puts a fixed heat into a thermal node, for a part that is not simulated.
  • Foster Chain: A device's transient thermal impedance from its data sheet's Foster table: R and tau stages between two thermal nodes.
  • Cauer Chain: A ladder of thermal resistances with a heat capacity at every node, between two thermal nodes.
  • Zth Curve: A transient thermal impedance fitted from points read off a data sheet's Zth(t) curve.
  • Heatsink: A catalogue heatsink's sink-to-ambient thermal resistance, read off its data sheet at a heat and an airflow.
  • Cooling Fan: A fan that blows across heatsinks: in the thermal simulation it makes them use their data sheet's resistance at its airflow, and it goes on the BOM and the board.

Machines

  • Induction Machine: A three-phase cage motor that runs from the mains or an inverter.
  • Wound-Rotor Induction: A three-phase induction motor with the rotor windings brought out.
  • Surface PMSM: A magnet motor whose d and q inductances are equal.
  • Interior PMSM: A magnet motor with different d and q inductances, so it also makes reluctance torque.
  • DC Machine: A DC motor with separate armature and field windings.
  • PM DC Machine: A DC motor with magnets and a single armature winding.
  • BLDC Machine: A brushless DC motor with a trapezoidal back-EMF and built-in Hall outputs.
  • Wound-Field Synchronous: A synchronous machine with a field winding and optional damper windings.
  • Switched Reluctance: A motor with no magnets whose phase inductance changes with rotor angle.
  • Stepper Motor: A two-phase hybrid stepper motor with a magnet rotor.
  • Saturating Induction: A cage induction motor that saturates at high main flux.

Mechanical

  • Inertia: Adds rotating mass to a shaft, with an optional starting speed.
  • Friction: Drag that grows in step with speed, from a shaft to the frame.
  • Load Torque: A constant load torque that pushes back against forward rotation.
  • Fan Load: A fan or pump load whose torque grows with the square of speed.
  • Constant-Power Load: A load that takes constant power, so torque rises as speed falls.
  • Vehicle Load: A road vehicle seen at its wheel shaft: mass, rolling resistance, air drag and road grade.
  • Speed Source: Forces a shaft to turn at a fixed speed and supplies any torque needed.
  • Gear: An ideal gear that links two shafts with a speed ratio and an optional loss.
  • Torsional Spring: A torsional spring between two shafts: the torque grows with the twist.
  • Torsional Damper: A viscous damper between two shafts: the torque grows with their speed difference.
  • Elastic Shaft: A compliant shaft between two masses: a torsional spring and a damper in parallel.
  • Backlash: Free play between two shafts, such as in a gear mesh: no torque inside the gap, a stiff contact outside it.
  • Speed Sensor: Reads shaft speed as a signal without loading the shaft.
  • Position Sensor: Reads the shaft angle, mechanical and electrical, as signals.
  • Torque Sensor: Joins two shafts and reads the torque passing through.
  • Hall Sensors: Makes three Hall signals from the shaft angle, 120 degrees apart.
  • Incremental Encoder: Gives quadrature signals, an index pulse and a position count from the shaft angle.
  • Resolver: Outputs the sine and cosine of the shaft's electrical angle.

Meters

  • NTC Temperature Sensor: A thermistor that reads the temperature of a thermal net as a resistance, by the Steinhart-Hart or the B equation.
  • Voltmeter: Reports the voltage between p and n as a signal on out.
  • Ammeter: A zero-volt meter in series that reports the current as a signal on out.
  • LISN: One line of the 50 uH network that sits between the supply and the equipment for a conducted-EMI bench.

ICs

Custom blocks

  • Plug-in Block: A custom block you write as a sandboxed WebAssembly module.
  • Subsystem: A reusable group of parts, shown as one block with pins.

Field solver commands

The commands of the field solver, from drawing a section to exporting its field. Chapter 21 of the manual shows them in use.