modelSineCurrentVariableFrequencyAndAmplitude

Sine current source with variable frequency and amplitude

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Icons.CurrentSource (Icon for current sources).

Information

This current source provides a sinusoidal current with variable frequency f and variable amplitude I, i.e. the phase angle of the sine wave is integrated from 2*π*f.

Note that the initial value of the phase angle phi defines the initial phase shift, and that the parameter startTime is omitted since the current can be kept equal to offset with setting the input I to zero.

Parameters

TypeNameDefaultDescription
BooleanuseConstantAmplitudefalseEnable constant amplitude
SI.CurrentconstantAmplitude1Constant amplitude
BooleanuseConstantFrequencyfalseEnable constant frequency
SI.FrequencyconstantFrequency1Constant frequency
SI.Currentoffset0Offset of the sine wave

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin
Blocks.Interfaces.RealInputIAmplitude
Blocks.Interfaces.RealInputfFrequency

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
SI.AnglephiPhase of the sine wave

Revisions

  • 1998 by Christoph Clauss
    initially implemented