blockVarSinSpec

Sine + harmonics of n phases with variable amplitude and frequency

Extends from Partials.MO.

Information

The signal has variable amplitude and frequency and constant phase. The relative angle of the phases can be chosen arbitrarily (for non-symmetric signals).

Parameters

TypeNameDefaultDescription
Integern (from MO)1dim of output signal-vector
SI.AnglephComm0common phase angle
SI.Angle[n]phShift(0:n - 1)*2*pi/nphase shift
IntegerN31 + number of harmonics
Integerh{1, 3, 5}{1, ...} which harmonics?
Reala_rel{1, 0.3, 0.1}rel amplitudes
SI.Angleph_h{0, 0, 0}rel phase angles harmonics

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputy (from MO)output signal-vector
Modelica.Blocks.Interfaces.RealInputamplitudecommon signal amplitude
Modelica.Blocks.Interfaces.RealInputomegacommon angular frequency