Pulse voltage

electrical.pulse_voltage

Ideal square wave source: offset + V for the first duty fraction of each period T, offset for the rest.

Ports

NameDomain
pelectrical
nelectrical

Parameters

NameUnitDefaultRangeDescription
VV1Pulse amplitude
Ts10 to ∞Period
duty10.50 to 1Fraction of the period at the high level
offsetV0Voltage between pulses

Variables

NameUnit
vV
iA

Equations

v = p.v - n.v
0 = p.i + n.i
i = p.i
v = offset + (if time - T * floor(time / T) < duty * T then V else 0)