modelFrequencySweepCurrentSource

Current source with integrated frequency sweep

Extends from Interfaces.TwoPin (Two pins).

Information

This source provides a constant RMS phase current I and phase angle phi, whereas the frequency sweeps from fStart to fStop with duration. The frequency sweeps such way that on a logarithmic frequency scale, the frequency curve appears linear.

FrequencySweepSource.png

Parameters

TypeNameDefaultDescription
SI.FrequencyfStartStart sweep frequency
SI.FrequencyfStopStop sweep frequency
SI.TimestartTime0Start time of frequency sweep
SI.TimedurationDuration of frequency sweep
SI.CurrentIRMS current of the source
SI.Anglephi0Phase shift of the source

Connectors

TypeNameDefaultDescription
PositivePinpin_p (from TwoPinElementary)Positive quasi-static single-phase pin
NegativePinpin_n (from TwoPinElementary)Negative quasi-static single-phase pin

Components

TypeNameDefaultDescription
SI.AngularVelocityomega (from TwoPinElementary)Angular velocity of reference frame
SI.ComplexVoltagev (from TwoPin)Complex voltage
SI.Voltageabs_v (from TwoPin)Modelica.ComplexMath.abs(v)Magnitude of complex voltage
SI.Anglearg_v (from TwoPin)Modelica.ComplexMath.arg(v)Argument of complex voltage
SI.ComplexCurrenti (from TwoPin)Complex current
SI.Currentabs_i (from TwoPin)Modelica.ComplexMath.abs(i)Magnitude of complex current
SI.Anglearg_i (from TwoPin)Modelica.ComplexMath.arg(i)Argument of complex current
SI.ActivePowerP (from TwoPin)Modelica.ComplexMath.real(v*Modelica.ComplexMath.conj(i))Active power
SI.ReactivePowerQ (from TwoPin)Modelica.ComplexMath.imag(v*Modelica.ComplexMath.conj(i))Reactive power
SI.ApparentPowerS (from TwoPin)Modelica.ComplexMath.abs(v*Modelica.ComplexMath.conj(i))Magnitude of complex apparent power
Realpf (from TwoPin)cos(Modelica.ComplexMath.arg(Complex(P, Q)))Power factor
SI.Anglegammapin_p.reference.gamma
SI.FrequencyfcurrentSource.fActual frequency
Modelica.Blocks.Sources.LogFrequencySweeplogFrequencySweep
VariableCurrentSourcecurrentSource
Modelica.ComplexBlocks.Sources.ComplexConstantconst