Ramp voltage

electrical.ramp_voltage

Ideal source whose voltage rises in a straight line from 0 at time t0 to V at time t0 + T, then holds V.

Ports

NameDomain
pelectrical
nelectrical

Parameters

NameUnitDefaultRangeDescription
VV1Final voltage
t0s0Start of the ramp
Ts10 to ∞Duration of the ramp

Variables

NameUnit
vV
iA

Equations

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