Engee documentation

Second-Order Filter

A second-order filter.

blockType: SubSystem

Path in the library:

/Physical Modeling/Electrical/Control/General Control/Second-Order Filter

Description

Block Second-Order Filter implements one of the following transfer functions depending on the parameter value Filter Type:

  • Low-pass filter:

  • High-pass filter:

  • Bandpass filter:

  • Notch filter:

Where

  • — Laplace operator;

  • — natural frequency, ;

  • — attenuation coefficient (called Zeta in the block menu).

Features

The main characteristics of the block Second-Order Filter are:

  • The input port accepts a vector from signals and implements filters. This feature is especially useful for designing controllers in three-phase systems ( );

  • It is possible to initialize the filter states for the DC and AC Inputs specified.

Ports

Input

# IN_1 — filter input
scalar | vector

Details

The input signal of a second-order filter, specified as a scalar or vector.

Data types

Float64

Complex numbers support

I don’t

Output

# OUT_1 — filter output signal
scalar | vector

Details

The output signal of the second-order filter, returned as a scalar or vector.

Data types

Float64

Complex numbers support

I don’t

Parameters

Main group

# Filter Type — selecting the filter type
Lowpass | Highpass | Bandpass | Bandstop (Notch)

Details

Determine the type of second-order filter: Lowpass, Highpass, Bandpass (by default) or Bandstop (Notch).

Values

Lowpass | Highpass | Bandpass | Bandstop (Notch)

Default value

Bandpass

Program usage name

type

Evaluatable

Yes

# Natural frequency fn, Hz — the natural frequency of the filter

Details

The natural frequency of the filter, set in Hz.

Default value

120

Program usage name

f0

Evaluatable

Yes

# Damping ratio Zeta ( Q=1/(2*Zeta)) ) — attenuation coefficient of the filter

Details

The attenuation coefficient of the filter. Typically, the attenuation coefficient is in the range of 0 before 1.

The attenuation coefficient is related to the quality of the filter :

For a bandpass or notch filter, the bandwidth is at 3 dB is determined by the formula

Default value

0.707

Program usage name

zeta

Evaluatable

Yes

# Sample time — sampling period

Details

Specify the sampling period of the block in seconds. Set the value 0 to implement a continuous block.

Default value

0

Program usage name

sample_time

Evaluatable

Yes

# Initialize filter states — option to initialize filter states

Details

Select this option to initialize the filter states according to the parameters. AC initial input [Magnitude, Phase (deg), Frequency (Hz)] and DC initial input.

Default value

true (switched on)

Program usage name

enable_initialization

Evaluatable

Yes

# AC initial input [Magnitude, Phase (deg), Frequency (Hz)] — the initial value of the variable component

Details

Specify the initial value of the variable component of the input signal: amplitude, phase in degrees, and frequency in Hz.

If the input signal is a vector ( signals), specify the matrix on , where each row of the matrix corresponds to a specific input.

Dependencies

To use this option, check the box Initialize filter states.

Default value

[0 0 50]

Program usage name

V_AC_start

Evaluatable

Yes

# DC initial input — the initial value of the constant component

Details

Specify the initial value of the constant component of the input signal. If the input signal is a vector, specify the vector on , where each value corresponds to a specific input.

Dependencies

To use this option, check the box Initialize filter states.

Default value

0

Program usage name

V_DC_start

Evaluatable

Yes