modelFrequencySweepVoltageSource
Voltage source with integrated frequency sweep
Extends from Interfaces.TwoPin (Two pins).
Information
This source provides a constant RMS phase voltage V 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.

Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| 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.Voltage | V | RMS voltage of the source | |
| SI.Angle | phi | 0 | Phase shift of the source |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | pin_p (from TwoPinElementary) | Positive quasi-static single-phase pin | |
| NegativePin | pin_n (from TwoPinElementary) | Negative quasi-static single-phase pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.AngularVelocity | omega (from TwoPinElementary) | Angular velocity of reference frame | |
| SI.ComplexVoltage | v (from TwoPin) | Complex voltage | |
| SI.Voltage | abs_v (from TwoPin) | Modelica.ComplexMath.abs(v) | Magnitude of complex voltage |
| SI.Angle | arg_v (from TwoPin) | Modelica.ComplexMath.arg(v) | Argument of complex voltage |
| SI.ComplexCurrent | i (from TwoPin) | Complex current | |
| SI.Current | abs_i (from TwoPin) | Modelica.ComplexMath.abs(i) | Magnitude of complex current |
| SI.Angle | arg_i (from TwoPin) | Modelica.ComplexMath.arg(i) | Argument of complex current |
| SI.ActivePower | P (from TwoPin) | Modelica.ComplexMath.real(v*Modelica.ComplexMath.conj(i)) | Active power |
| SI.ReactivePower | Q (from TwoPin) | Modelica.ComplexMath.imag(v*Modelica.ComplexMath.conj(i)) | Reactive power |
| SI.ApparentPower | S (from TwoPin) | Modelica.ComplexMath.abs(v*Modelica.ComplexMath.conj(i)) | Magnitude of complex apparent power |
| Real | pf (from TwoPin) | cos(Modelica.ComplexMath.arg(Complex(P, Q))) | Power factor |
| SI.Angle | gamma | pin_p.reference.gamma | |
| SI.Frequency | f | voltageSource.f | Actual frequency |
| Modelica.Blocks.Sources.LogFrequencySweep | logFrequencySweep | ||
| VariableVoltageSource | voltageSource | ||
| Modelica.ComplexBlocks.Sources.ComplexConstant | const |