Step voltage
Voltage step at a given time.
- electrical
- Modelica Standard Library
- 2 ports
- 3 parameters
stepVoltageLibraryElectricalDescription
An ideal voltage source that holds Offset until the step time, then jumps to Offset + V.
Example
RC and RL transients A 10 V step charges a capacitor through a resistor, and another builds current in an inductor through a conductor.
Step 10 VR 1 kΩC 100 µFCapacitor voltageGroundStep 10 V (RL)G 0.1 SInductor currentL 1 HGround (RL)
Also in this example:Voltage sensorCurrent sensorGroundResistorCapacitorInductorConductor
Ports
Conserving terminals 2
-
+
pPositive terminal.
-
−
nNegative terminal.
Parameters
-
Step
V12 VHeight of the step, in volts. Negative values step down.
-
Offset
offset0 VVoltage before the step, in volts.
-
Step time
startTime0.01 s≥ 0
Time of the step, in seconds. 0 or more.
Equations
Modelica
p.v − n.v = offset for time < startTime p.v − n.v = offset + V for time ≥ startTime p.i + n.i = 0
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Electrical.Analog.Sources.StepVoltageAssumptions and limitations
- The jump is instantaneous. Into a capacitor with no series resistance, it demands an infinite current.
See also
Select a block in Gradara and press F1 to open its page offline.