Ramp voltage
Voltage ramp from offset to offset + V.
- electrical
- Modelica Standard Library
- 2 ports
- 4 parameters
rampVoltageLibraryElectricalDescription
An ideal voltage source that holds Offset until Start time, rises linearly by V over Duration, then stays at Offset + V.
Example
Electrical sources Every voltage and current source driving a resistor, each with a voltmeter across it.
DC 12 VLoad A 12 Ωv AGround ADC 1 ALoad B 10 Ωv BGround BSine 10 VLoad C 10 Ωv CGround CSine 1 ALoad D 10 Ωv DGround DRamp 10 VLoad E 10 Ωv EGround EPulse 5 VLoad F 10 Ωv FGround F3 sin(2π·50t)Signal voltageLoad G 10 Ωv GGround G0.5Signal currentLoad H 10 Ωv HGround H
Also in this example:DC voltageVoltage sensorConstantGroundSine waveResistorAC voltageAC currentDC currentPulse voltageControlled voltageControlled current
Ports
Conserving terminals 2
-
+
pPositive terminal.
-
−
nNegative terminal.
Parameters
-
Height
V12 VTotal rise, in volts. Negative values ramp down.
-
Duration
duration1 s≥ 0
Time taken to rise, in seconds. Must be greater than 0.
-
Offset
offset0 VVoltage before the ramp, in volts.
-
Start time
startTime0 s≥ 0
Time the ramp starts, in seconds. 0 or more.
Equations
Modelica
p.v − n.v = offset for time < startTime p.v − n.v = offset + V · (time − startTime) / duration for startTime ≤ time < startTime + duration p.v − n.v = offset + V afterward p.i + n.i = 0
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Electrical.Analog.Sources.RampVoltageTips
- Use it for soft-start supplies that would otherwise charge capacitors with a current spike.
See also
Select a block in Gradara and press F1 to open its page offline.