.Modelica_LinearSystems2.StateSpace.Analysis.evaluate

Information

Syntax

result = StateSpace.Analysis.evaluate(ss,s)

Description

Function Analysis.evaluate evaluates the corresponding transfer function of the state space system at a given (complex) value of s. The state space system is converted to the transfer function G(s)=N(s)/D(s), which is evaluated by calculating the numerator polynomial N(s) and the denominator polynomial D(s).

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1],
    B=[1],
    C=[1],
    D=[0]);
  Complex s=Complex(1,1);

  Complex result;

algorithm
  result := Modelica_LinearSystems2.StateSpace.Analysis.evaluate(ss, s);
//  result = 0.4 - 0.2j

See also

StateSpace.Conversion.toTransferFunction, Math.Polynomial.evaluateComplex

Interface

encapsulated function evaluate
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.Math.Complex;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.StateSpace;
  input StateSpace ss;
  input Complex s "Value of s where tf shall be evaluated";
  input Real den_min = 0 "|denominator(s)| is limited by den_min";
  output Complex result "= tf(s)";
end evaluate;

Revisions

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

Generated at 2024-03-28T19:15:55Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos