modelFrequencySweepCurrentSource
Current source with integrated frequency sweep
Extends from Interfaces.TwoPlug (Two plugs with pin-adapter, reference connection and declaration of voltage and current).
Information
This source provides polyphase constant RMS phase currents I and phase angles 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.

Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | m (from TwoPlugElementary) | 3 | Number of phases |
| SI.Frequency | fStart | Start sweep frequency | |
| SI.Frequency | fStop | Stop sweep frequency | |
| SI.Time | startTime | 0 | Start time of frequency sweep |
| SI.Time | duration | Duration of frequency sweep | |
| SI.Current[m] | I | RMS current of the source | |
| SI.Angle[m] | phi | -Modelica.Electrical.Polyphase.Functions.symmetricOrientation(m) | Phase shift of the source |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePlug | plug_p (from TwoPlugElementary) | Positive quasi-static polyphase plug | |
| NegativePlug | plug_n (from TwoPlugElementary) | Negative quasi-static polyphase plug |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.AngularVelocity | omega (from TwoPlugElementary) | Angular velocity of reference frame | |
| Basic.PlugToPins_p | plugToPins_p (from TwoPlugElementary) | ||
| Basic.PlugToPins_n | plugToPins_n (from TwoPlugElementary) | ||
| SI.ComplexVoltage[m] | v (from TwoPlug) | Complex voltage | |
| SI.Voltage[m] | abs_v (from TwoPlug) | Modelica.ComplexMath.abs(v) | Magnitude of complex voltage |
| SI.Angle[m] | arg_v (from TwoPlug) | Modelica.ComplexMath.arg(v) | Argument of complex voltage |
| SI.ComplexCurrent[m] | i (from TwoPlug) | Complex current | |
| SI.Current[m] | abs_i (from TwoPlug) | Modelica.ComplexMath.abs(i) | Magnitude of complex current |
| SI.Angle[m] | arg_i (from TwoPlug) | Modelica.ComplexMath.arg(i) | Argument of complex current |
| SI.ActivePower[m] | P (from TwoPlug) | {Modelica.ComplexMath.real(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m} | Active power |
| SI.ActivePower | P_total (from TwoPlug) | sum(P) | Total active power |
| SI.ReactivePower[m] | Q (from TwoPlug) | {Modelica.ComplexMath.imag(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m} | Reactive power |
| SI.ReactivePower | Q_total (from TwoPlug) | sum(Q) | Total reactive power |
| SI.ApparentPower[m] | S (from TwoPlug) | {Modelica.ComplexMath.abs(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m} | Magnitude of complex apparent power |
| SI.ApparentPower | S_total (from TwoPlug) | sqrt(P_total^2 + Q_total^2) | Magnitude of total complex apparent power |
| Real[m] | pf (from TwoPlug) | {cos(Modelica.ComplexMath.arg(Complex(P[k], Q[k]))) for k in 1:m} | Power factor |
| SI.Angle | gamma | plug_p.reference.gamma | |
| SI.Frequency | f | currentSource.f | Actual frequency |
| VariableCurrentSource | currentSource | ||
| Modelica.Blocks.Sources.LogFrequencySweep | logFrequencySweep | ||
| Modelica.ComplexBlocks.Sources.ComplexConstant[m] | const |