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

Three-Phase Sine Voltage Source (sine3VoltageSource)

A balanced, ideal three-phase sinusoidal voltage source in star, with its star point brought out.

sine3VoltageSource

Component reference · 繁體中文

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

When to use it

Use it for a three-phase grid or generator feeding a rectifier, an active front end or a motor test bench. Use three sineVoltageSource parts for an unbalanced or distorted grid, and sine3 for a three-phase control signal.

Pins

Pin Domain Meaning
a electrical Phase a terminal; v(a) - v(n) = Vpksin(2pifreqt + phase).
b electrical Phase b terminal, 120 degrees behind phase a.
c electrical Phase c terminal, 120 degrees ahead of phase a.
n electrical Star point (neutral); leave it open for a three-wire system or ground it.

Common parameters

  • vac: RMS voltage: phase to neutral with mode phase, line to line with mode line (Default: required)
  • mode: What vac is: phase (amplitude = vac·√2) or line (amplitude = vac·√2/√3) (Default: phase)
  • freq: Frequency (Default: required)

Parameters

Key Unit Default Typical range Description
vac V required RMS voltage: phase to neutral with mode phase, line to line with mode line
mode — phase What vac is: phase (amplitude = vac·√2) or line (amplitude = vac·√2/√3)
freq Hz required Frequency
phase ° 0 Phase of phase a at t = 0; b lags it by 120°, c leads it by 120°

Parameter descriptions are in English in both languages.

Use for: Three-phase grids · Rectifier inputs · Motor test benches

Not for: Grids with harmonics or sags → grid3 · Three-phase control signals → sine3

Formulas

Formula Equation Source
Phase voltage Vph = vac (phase) or vac/√3 (line) Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), Ch. 12
Line-to-line voltage VLL = √3·Vph Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), Ch. 12
Phase peak Vpk = √2·Vph Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), Ch. 11

Quick check

Inputs:

  • vac: RMS voltage = 230 V, vac
  • lineMode: vac is line to line (1) or phase (0) = 0 —

Outputs:

  • vph: Phase voltage (RMS) = if(lineMode > 0.5, vac/sqrt(3), vac) V
  • vll: Line-to-line voltage (RMS) = sqrt(3)*vph V
  • vpk: Phase peak = sqrt(2)*vph V

Model logic

  • Three ideal voltage branches run from n to a, b and c at phase, phase - 120 and phase + 120 degrees, with no offset.
  • The peak is vac·√2 with mode phase and vac·√2/√3 with mode line; any other mode text stops the run with an error.
  • There is no rs: the three branches have zero impedance, so line inductance or resistance must be added as series parts in each phase.
  • The set is always balanced at one frequency: unbalance, harmonics, sags and frequency changes are not modelled.

Model

Three ideal sources from n: phase a is Vpksin(2pi*freqt + phase), b the same at phase - 120 degrees and c at phase + 120 degrees (a positive sequence a, b, c). vac is an RMS value: with mode = phase it is the phase-to-neutral voltage and Vpk = vacsqrt(2); with mode = line it is the line-to-line voltage and Vpk = vac*sqrt(2)/sqrt(3). The three sources have no internal impedance.

Common mistakes

  • A 400 V grid is 400 V line to line: set mode = line with vac = 400, or mode = phase with vac = 230. Entering 400 with the default phase mode gives a grid sqrt(3) times too high.
  • The ideal sources have no impedance, so a rectifier with a capacitor on it draws unlimited current spikes; add a line inductance or resistance in each phase. A maxStep longer than 1/50 of the period samples the sine too coarsely, and a run shorter than about six cycles does not reach steady state.

Problems rules: step.too_large, run.short

Datasheet and sources

vac, mode and freq come from the supply specification (for example 400 V line to line, 50 Hz). Model the grid impedance with series parts from the short-circuit power of the connection point.

Example

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


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