Step voltage

Voltage step at a given time.

  • electrical
  • Modelica Standard Library
  • 2 ports
  • 3 parameters
BlockStep voltageKindstepVoltageLibraryElectrical

Description

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)
In Gradara, select a Step voltage block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:Voltage sensorCurrent sensorGroundResistorCapacitorInductorConductor

Ports

Conserving terminals 2

  • +p

    Positive terminal.

  • −n

    Negative terminal.

Parameters

  • StepV12 V

    Height of the step, in volts. Negative values step down.

  • Offsetoffset0 V

    Voltage before the step, in volts.

  • Step timestartTime0.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.0Modelica.Electrical.Analog.Sources.StepVoltage
MSL documentation

Assumptions 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.