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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n (from MO) | 1 | dim of output signal-vector |
| SI.Angle | phComm | 0 | common phase angle |
| SI.Angle[n] | phShift | (0:n - 1)*2*pi/n | phase shift |
| Integer | N | 3 | 1 + number of harmonics |
| Integer | h | {1, 3, 5} | {1, ...} which harmonics? |
| Real | a_rel | {1, 0.3, 0.1} | rel amplitudes |
| SI.Angle | ph_h | {0, 0, 0} | rel phase angles harmonics |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | y (from MO) | output signal-vector | |
| Modelica.Blocks.Interfaces.RealInput | amplitude | common signal amplitude | |
| Modelica.Blocks.Interfaces.RealInput | omega | common angular frequency |