CosineCurrentVariableFrequencyAndAmplitude
Cosine current source with variable frequency and amplitude
Library
Modelica/Electrical/Analog/Sources
Description
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_phi | phi | phi | Structure | |
mo_phi/fixed | fixed | Cell of scalars | true | |
mo_phi/start | start | Cell of scalars | ||
mo_useConstantAmplitude | useConstantAmplitude | Enable constant amplitude | Number | 0 |
mo_constantAmplitude | constantAmplitude | Constant amplitude | Scalar | |
mo_useConstantFrequency | useConstantFrequency | Enable constant frequency | Number | 0 |
mo_constantFrequency | constantFrequency | Constant frequency | Scalar | |
mo_offset | offset | Offset of the sine wave | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | 'v' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
p | implicit | Positive electrical pin | input | 1 |
n | implicit | Negative electrical pin | output | 1 |
Port 3 | implicit | Amplitude | input | 1-mo_useConstantAmplitude |
Port 4 | implicit | Frequency | input | 1-mo_useConstantFrequency |