blockFilter

Continuous or discretized analog low or high pass IIR-filter (CriticalDamping/Bessel/Butterworth/Chebyshev)

Extends from ZerosAndPoles (Continuous or discretized, single input single output block described by a ZerosAndPoles object).

Information

For details of the filter characteristics, see ZerosAndPoles.Design.filter.

Parameters

TypeNameDefaultDescription
Booleancontinuous (from PartialSampledBlock)blockType == Types.BlockTypeWithGlobalDefault.Continuous or blockType == Types.BlockTypeWithGlobalDefault.UseSampleClockOption and sampleClock.blockType == Types.BlockType.ContinuousTrue, if continuous block, otherwise discrete block
Types.Initinit (from PartialSampledBlock)Modelica_LinearSystems2.Controllers.Internal.convertToInit(initType, sampleClock.initType)Type of initialization (no init/steady state/initial state/initial output)
Modelica_LinearSystems2.ZerosAndPolessystem (from ZerosAndPoles)Data defining the ZerosAndPoles object
Integernx (from ZerosAndPoles)size(system.d1, 1) + 2*size(system.d2, 1)Number of states
Types.AnalogFilteranalogFilterModelica_LinearSystems2.Utilities.Types.AnalogFilter.CriticalDampingAnalog filter characteristics (CriticalDamping/Bessel/Butterworth/Chebyshev)
Types.FilterTypefilterTypeModelica_LinearSystems2.Utilities.Types.FilterType.LowPassType of filter (LowPass/HighPass)
Integerorder2Order of filter
Modelica.Units.SI.Frequencyf_cut1Cut-off frequency
Realgain1.0Gain (= amplitude of frequency response at zero frequency)
BooleannormalizedtrueTrue, if amplitude at f_cut decreases/increases 3 db (for low/high pass filter), otherwise unmodified filter
RealA_ripple0.5Pass band ripple for Chebyshev filter (otherwise not used)
Advanced options
Types.BlockTypeWithGlobalDefaultblockType (from PartialSampledBlock)Modelica_LinearSystems2.Controllers.Types.BlockTypeWithGlobalDefault.UseSampleClockOptionType of block
Types.InitWithGlobalDefaultinitType (from PartialSampledBlock)Types.InitWithGlobalDefault.UseSampleClockOptionType of initialization (no init/steady state/initial state/initial output)
Real[nx]x_start (from ZerosAndPoles)zeros(nx)Initial or guess values of states
Realy_start (from ZerosAndPoles)0Initial or guess values of output
Advanced options › Discrete block parameters
Types.MethodWithGlobalDefaultmethodType (from PartialSampledBlock)Types.MethodWithGlobalDefault.UseSampleClockOptionType of discretization if discrete block
IntegersampleFactor (from PartialSampledBlock)1Sample factor (Ts = sampleFactor * sampleClock.sampleTime)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu (from PartialSISO2)Continuous or discrete input signal of block
Modelica.Blocks.Interfaces.RealOutputy (from PartialSISO2)Continuous or discrete output signal of block
Modelica.Blocks.Interfaces.RealOutput[nx]x (from ZerosAndPoles)State of continuous block