.Modelica.Blocks.Examples.DemoSignalCharacteristic

Demonstrate characteristic values of a signal

Information

This example demonstrates how to calculate characteristic values of the pulse signal y

Characteristic quantity Numerically calculated Analytically calculated
Mean mean.y y_mean
Rectified mean rectifiedMean.y y_rect
Root mean square rootMeanSquare.y y_rms
First harmonic harmonic.y_rms
harmonic.y_arg
y1_rms
y1_arg

The output of these blocks is updated after each period of the signal.

Using a simple pulse series, these values can be calculated analytically. Propagating these values as initial values for the output, we can compare the numerical solution with the analytical solution: The output is constant from the beginning.


Generated at 2025-06-07T18:20:54Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos