modelCosineCurrentVariableFrequencyAndAmplitude
Cosine 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 cosine 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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConstantAmplitude | false | Enable constant amplitude |
| SI.Current | constantAmplitude | 1 | Constant amplitude |
| Boolean | useConstantFrequency | false | Enable constant frequency |
| SI.Frequency | constantFrequency | 1 | Constant frequency |
| SI.Current | offset | 0 | Offset of the sine wave |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin | |
| Blocks.Interfaces.RealInput | I | Amplitude | |
| Blocks.Interfaces.RealInput | f | Frequency |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n | |
| SI.Angle | phi | Phase of the sine wave |
Revisions
- 1998
by Christoph Clauss
initially implemented