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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | continuous (from PartialSampledBlock) | blockType == Types.BlockTypeWithGlobalDefault.Continuous or blockType == Types.BlockTypeWithGlobalDefault.UseSampleClockOption and sampleClock.blockType == Types.BlockType.Continuous | True, if continuous block, otherwise discrete block |
| Types.Init | init (from PartialSampledBlock) | Modelica_LinearSystems2.Controllers.Internal.convertToInit(initType, sampleClock.initType) | Type of initialization (no init/steady state/initial state/initial output) |
| Modelica_LinearSystems2.ZerosAndPoles | system (from ZerosAndPoles) | Data defining the ZerosAndPoles object | |
| Integer | nx (from ZerosAndPoles) | size(system.d1, 1) + 2*size(system.d2, 1) | Number of states |
| Types.AnalogFilter | analogFilter | Modelica_LinearSystems2.Utilities.Types.AnalogFilter.CriticalDamping | Analog filter characteristics (CriticalDamping/Bessel/Butterworth/Chebyshev) |
| Types.FilterType | filterType | Modelica_LinearSystems2.Utilities.Types.FilterType.LowPass | Type of filter (LowPass/HighPass) |
| Integer | order | 2 | Order of filter |
| Modelica.Units.SI.Frequency | f_cut | 1 | Cut-off frequency |
| Real | gain | 1.0 | Gain (= amplitude of frequency response at zero frequency) |
| Boolean | normalized | true | True, if amplitude at f_cut decreases/increases 3 db (for low/high pass filter), otherwise unmodified filter |
| Real | A_ripple | 0.5 | Pass band ripple for Chebyshev filter (otherwise not used) |
| Advanced options | |||
| Types.BlockTypeWithGlobalDefault | blockType (from PartialSampledBlock) | Modelica_LinearSystems2.Controllers.Types.BlockTypeWithGlobalDefault.UseSampleClockOption | Type of block |
| Types.InitWithGlobalDefault | initType (from PartialSampledBlock) | Types.InitWithGlobalDefault.UseSampleClockOption | Type of initialization (no init/steady state/initial state/initial output) |
| Real[nx] | x_start (from ZerosAndPoles) | zeros(nx) | Initial or guess values of states |
| Real | y_start (from ZerosAndPoles) | 0 | Initial or guess values of output |
| Advanced options › Discrete block parameters | |||
| Types.MethodWithGlobalDefault | methodType (from PartialSampledBlock) | Types.MethodWithGlobalDefault.UseSampleClockOption | Type of discretization if discrete block |
| Integer | sampleFactor (from PartialSampledBlock) | 1 | Sample factor (Ts = sampleFactor * sampleClock.sampleTime) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u (from PartialSISO2) | Continuous or discrete input signal of block | |
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialSISO2) | Continuous or discrete output signal of block | |
| Modelica.Blocks.Interfaces.RealOutput[nx] | x (from ZerosAndPoles) | State of continuous block |