modelCosineVoltageVariableFrequencyAndAmplitude

Cosine voltage 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.VoltageSource (Icon for voltage sources).

Information

This voltage source provides a cosine voltage with variable frequency f and variable amplitude V, 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 voltage can be kept equal to offset with setting the input V to zero.

Parameters

TypeNameDefaultDescription
BooleanuseConstantAmplitudefalseEnable constant amplitude
SI.VoltageconstantAmplitude1Constant amplitude
BooleanuseConstantFrequencyfalseEnable constant frequency
SI.FrequencyconstantFrequency1Constant frequency
SI.Voltageoffset0Offset of the sine wave

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin
Blocks.Interfaces.RealInputVAmplitude
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