SineCurrentVariableFrequencyAndAmplitude

Sine current source with variable frequency and amplitude

    SineCurrentVariableFrequencyAndAmplitude

Library

Modelica/Electrical/Analog/Sources

Description

This current source provides a sinusoidal 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

SineCurrentVariableFrequencyAndAmplitude_0

NameLabelDescriptionData TypeValid Values

mo_phi

phi

phi

Structure

mo_phi/fixed

fixed

Cell of scalars

true
false

mo_phi/start

start

Cell of scalars

mo_useConstantAmplitude

useConstantAmplitude

Enable constant amplitude

Number

0
1

mo_constantAmplitude

constantAmplitude

Constant amplitude

Scalar

mo_useConstantFrequency

useConstantFrequency

Enable constant frequency

Number

0
1

mo_constantFrequency

constantFrequency

Constant frequency

Scalar

mo_offset

offset

Offset of the sine wave

Scalar

SineCurrentVariableFrequencyAndAmplitude_1

NameLabelDescriptionData TypeValid 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'
'i'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

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

See Also