Transfer Function

Purpose

Model linear time-invariant system using transfer function

Library

Control / Continuous

Description

../../_images/transferfunction.svg

The Transfer Function models a linear time-invariant system that is expressed in the Laplace domain in terms of the argument \(s\):

\[\frac{Y(s)}{U(s)}=\frac{n_ns^n + \cdots+n_1s+n_0}{d_ns^n+ \cdots +d_1s+d_0}\]

The transfer function is displayed in the block if it is large enough, otherwise a default text is shown. To resize the block, select it, then drag one of its selection handles.

The Transfer Function block performs scalar expansion: If the input signal is a vector, the transfer function is applied to each element of the input vector individually, and the output signal is a concatenated vector of all system outputs.

Parameters

Numerator coefficients

A vector of the \(s\) term coefficients \([n_n \ldots n_1, n_0]\) for the numerator, written in descending order of powers of \(s\). For example, the numerator \(s^3+2s\) would be entered as [1,0,2,0]}.

The Transfer Function supports multiple outputs for a single input by entering a matrix for the numerator. Each row of the matrix defines the numerator coefficients of an output.

Denominator coefficients

A vector of the \(s\) term coefficients \([d_n \ldots d_1, d_0]\) for the denominator, written in descending order of powers of \(s\).

Note

The order of the denominator (highest power of \(s\)) must be greater than or equal to the order of the numerator.

Initial condition

The initial condition vector of the internal states of the Transfer Function in the form \([x_n \ldots x_1, x_0]\).

The initial condition must be specified for the controller normal form, depicted below for the transfer function

\[\frac{Y(s)}{U(s)}=\frac{n_2s^2+n_1s+n_0}{d_2s^2+d_1s+d_0} = b_2\left(a_2 + \frac{a_1s + a_0}{s^2 + b_1s + b_0}\right)\]
../../_images/tf_controller_normalform.svg

Fig. 159 Transfer function controller normal form

where

\[\begin{split}\begin{array}{rcll} b_i & = & \frac{\displaystyle d_i}{\displaystyle d_n} & \mbox{for $i<n$ }\\ b_n & = & \frac{\displaystyle 1}{\displaystyle d_n}\\ a_i & = & n_i - \frac{\displaystyle n_n d_i}{\displaystyle d_n} & \mbox{for $i<n$}\\ a_n & = & n_n \end{array}\end{split}\]

For the normalized transfer function (with \(n_n = 0\) and \(d_n = 1\)) this simplifies to \(b_i = d_i\) and \(a_i = n_i\).

Note

The number of internal states is defined by the highest power of \(s\) of the denominator.

Note

A scalar initial condition will be applied to all internal states.

Note

In case of scalar expansion (multiple input signals), the initial condition can also be a matrix, where each row defines the initial condition for the individual inputs.

Probe Signals

Input

The input signal.

Output

The output signal.

State

The internal states of the controller normal form.