modelTrapezoidCurrent

Trapezoidal current source

Extends from Interfaces.CurrentSource (Interface for current sources).

Information

This current source uses the corresponding signal source of the Modelica.Blocks.Sources package. Care for the meaning of the parameters in the Blocks package. Furthermore, an offset parameter is introduced, which is added to the value calculated by the blocks source. The startTime parameter allows to shift the blocks source behavior on the time axis.

TrapezoidCurrent.png

Parameters

TypeNameDefaultDescription
SI.CurrentIAmplitude of trapezoid
SI.TimerisingRising duration of trapezoid
SI.TimewidthWidth duration of trapezoid
SI.TimefallingFalling duration of trapezoid
SI.TimeperiodTime for one period
IntegernperiodNumber of periods (< 0 means infinite number of periods)
SI.Currentoffset (from CurrentSource)0Current offset
SI.TimestartTime (from CurrentSource)0Time offset

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currenti (from OnePort)Current flowing from pin p to pin n
Modelica.Blocks.Interfaces.SignalSourcesignalSource (from CurrentSource)

Revisions

  • 1998 by Christoph Clauss
    initially implemented