tf = StateSpace.Conversion.toTransferFunction(ss)
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.
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
function toTransferFunction import Modelica; import Modelica_LinearSystems2; import Modelica_LinearSystems2.TransferFunction; import Modelica_LinearSystems2.WorkInProgress.StateSpace; import Modelica_LinearSystems2.WorkInProgress.ZerosAndPoles; input StateSpace ss "StateSpace object"; output TransferFunction tf; end toTransferFunction;
| Date | Author | Comment |
|---|---|---|
| 2010-05-31 | Marcus Baur, DLR-RM | Realization |