modelTransferFunction

Model of a generic rational transfer function [a(m)*s^m + a(m-1)*s^(m-1) + ... + a(1)*s + a(0) ]/[b(n)*s^n + b(n-1)*s^(n-1) + ... + b(1)*s + b(0) ]

Extends from Interfaces.DiscreteBaseBlock (Partial discrete time block interfaces).

Information

Description

Discretised version of the continuous time transfer function, defined by its numerator and denumerator.

   Y(s)     a(m)*s^m + a(m-1)*s^(m-1) + ... + a(1)*s + a(0) 
   ----  = -------------------------------------------------
   U(s)     b(n)*s^n + b(n-1)*s^(n-1) + ... + b(1)*s + b(0)
  

The order of the numerator cannot be higher than the denumerator one: m <= n.

Discretisation

The discretisation of the continuos time transfer function has been performed with the bilinear transformation formula
                 z - 1 
  s = ------------------------------
        z*alpha*Ts - (alpha - 1)*Ts
  
that is equivalent to
  • Forward Euler (FE) if
    alpha = 0
  • Backward Euler (BE) if
    alpha = 1
  • Tustin (TU) if
    alpha = 0.5

Parameters

TypeNameDefaultDescription
Discretisation
RealTs (from DiscreteBaseBlock)0.01Sampling time [s]
IndustrialControlSystems.LinearSystems.Discrete.Types.discrMethodmethod (from DiscreteBaseBlock)IndustrialControlSystems.LinearSystems.Discrete.Types.discrMethod.BEDiscretisation method
Block parameters
Real[:]num{1, 1}Numerators coefficients (4*s + 2) is {4,2}
Real[:]den{2, 1, 1}Denumerators coefficients (4*s + 2) is {4,2}
Initial conditions
Realy_start0Output initial value
BooleaninitOutputfalseInitialise the output
BooleaninitSteadyStatefalseInitialise at steady state
BooleaninitSteadyOutputfalseInitialise at steady output

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu (from BaseBlock)input
Modelica.Blocks.Interfaces.RealOutputy (from BaseBlock)output

Revisions

Industrial Control Systems (v 1.0.0) : April-May 2012
List of revisions:

  • 11 May 2012 (author: Marco Bonvini)

Main Authors:
Marco Bonvini; <bonvini@elet.polimi.it>
Alberto Leva <leva@elet.polimi.it>
Politecnico di Milano
Dipartimento di Elettronica e Informazione
Via Ponzio 34/5
20133 Milano - ITALIA -
Copyright:
Copyright © 2010-2012, Marco Bonvini and Alberto Leva.
The IndustrialControlSystems package is free software; it can be redistributed and/or modified under the terms of the Modelica license.