result = StateSpace.Analysis.evaluate(ss,s)
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).
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
StateSpace.Conversion.toTransferFunction, Math.Polynomial.evaluateComplex
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;
Date | Author | Comment |
---|---|---|
2010-05-31 | Marcus Baur, DLR-RM | Realization |