.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.2*j

See also

StateSpace.Conversion.toTransferFunction, Math.Polynomial.evaluateComplex

Interface

encapsulated function evaluate
  import Modelica.ComplexMath;
  import Modelica.ComplexMath.j;
  import Complex;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.StateSpace;
  input StateSpace ss "State space system";
  input Complex s "Value of s where tf shall be evaluated";
  input Real den_min = 0 "Minimum value of |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-12-26T19:25:54Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos