.Modelica.Blocks.Examples.FilterWithRiseTime

Information

Filters are usually parameterized with the cut-off frequency. Sometimes, it is more meaningful to parameterize a filter with its rise time, i.e., the time it needs until the output reaches the end value of a step input. This is performed with the formula:

f_cut = fac/(2*pi*riseTime);

where "fac" is typically 3, 4, or 5. The following image shows the results of a simulation of this example model (riseTime = 2 s, fac=3, 4, and 5):

FilterWithRiseTime.png

Since the step starts at 1 s, and the rise time is 2 s, the filter output y shall reach the value of 1 after 1+2=3 s. Depending on the factor "fac" this is reached with different precisions. This is summarized in the following table:

Filter order Factor fac Percentage of step value reached after rise time
1 3 95.1 %
1 4 98.2 %
1 5 99.3 %
2 3 94.7 %
2 4 98.6 %
2 5 99.6 %

Generated at 2024-04-17T18:16:15Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos