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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConstantAmplitude | false | Enable constant amplitude |
| SI.Voltage | constantAmplitude | 1 | Constant amplitude |
| Boolean | useConstantFrequency | false | Enable constant frequency |
| SI.Frequency | constantFrequency | 1 | Constant frequency |
| SI.Voltage | 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 | V | 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