modelCosineCurrent

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

CosineCurrent.png

Parameters

TypeNameDefaultDescription
SI.CurrentIAmplitude of cosine wave
SI.Anglephase0Phase of cosine wave
SI.FrequencyfFrequency of cosine wave
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

  • Initially implemented by Christian Kral on 2013-05-14