Threephase voltage or current harmonics generator.
 The outputs are marked with an arrow.

The internal common wye point (NUL) may be left floating if not used, depends on the schematic, but it's usually safer to add some connexion to ground.

The three pins at the bottom allow external frequency (FM), amplitude (AM), and phase (PM) control. All have R_{in}=1GΩ.

Anything connected to FM and AM pins overrides internal settings for f and amp.

The PM pin is treated differently: the general displacement is given by V(PM)+phase, where phase is either phi, for the harmonics, or phi[1:3] for each of the fundamentals.

The added/subtracted harmonics with h[1:3] obey the spectrum shape, e.g. if amp=1, N=0, h1=100 (default for the rest) ⇒ 100Hz@10mV_{pk}. The phase affected by any of the h[1:3] is like in the previous point: if the value is 1 (fundamental), then phi controls the phase, else through phi[1:3] for each phase.

sym=<0,1> 
 
Sets the symmetry between phases:
 0 ⇒ asymmetric, i.e. sin(nωt+φ)
 1 ⇒ symmetric, i.e. sin(nωt+nφ) (default)

f 
Hz 
Frequency of the fundamental, default 50 
amp 
V 
Amplitude of the fundamental, default 325 
phi 
rad 
Phase of the harmonics, default 0 
Ro 
Ω 
Output resistance, zero means current source, default 1 
N=±<0:51> 
 
Sets the number of harmonics:
 N>0, N=2k+1 ⇒ odd harmonics, only
 N>0, N=2k ⇒ even harmonics, only
 N<0 ⇒ odd+even harmonics (default 51)
 N=0 ⇒ null output

dc1, dc2, dc3 
V 
Per phase voltage offset, defaults <0,0,0> 
A1, A2, A3 
V 
Per phase amplitude modifier, relative to either amp or V(AM) , defaults <1,1,1> 
phi1, phi2, phi3 
rad 
Per phase fundamental displacement modifier, defaults <0,0,0> 
h1, h2, h3 
 
The values assigned to them represent a harmonic's number. When set, they will:
 subtract the harmonic, if already present
 add the harmonic, if not present
The indices have no meaning except to differentiate the parameters between themselves. Only their values matter. Defaults <0,0,0>

a, b, c,
d, e,
p, q,
xp, xq,
ma, mb 
 
Parameters for the spectrum shaper (see below), defaults <0,0,0,0,0,1,0,1,1,0,0>


tripdv, tripdt 
V,s 
LTspice's specific for Bsources, defaults <100,1u> 
lim 
V 
Internal limits to avoid clipping, default 1g 

