.Modelica_LinearSystems2.StateSpace.Conversion.toTransferFunction

Information

Syntax

tf = StateSpace.Conversion.toTransferFunction(ss)

Description

Computes a TransferFunction record

      n(s)     b0 + b1*s + ... + bn*s^n
tf = ------ = --------------------------
      d(s)     a0 + a1*s + ... + an*s^n

The algorithm uses StateSpace.Conversion.toZerosAndPoles to convert the state space system into a zeros and poles representation first and after that ZerosAndPoles.Conversion.toTransferFunction to generate the transfer function.

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A = [-1.0, 0.0, 0.0;
          0.0,-2.0, 0.0;
          0.0, 0.0,-3.0],
    B = [1.0;
         1.0;
         0.0],
    C = [1.0,1.0,1.0],
    D = [0.0]);

algorithm
  tf:=Modelica_LinearSystems2.StateSpace.Conversion.toZerosAndPoles(ss);
//             2*s + 3
//   tf =  -----------------
             s^2 + 3*s + 2

Interface

function toTransferFunction
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.ZerosAndPoles;
  input StateSpace ss "State space system";
  input Real tol = 1e-10 "Tolerance of reduction procedure, default tol = 1e-10";
  output TransferFunction tf "Transfer function description of system";
end toTransferFunction;

Revisions

Date Author Comment
2010-05-31 Marcus Baur, DLR-RM Realization

Generated at 2024-12-26T19:25:54Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos