|
FhSim
3.1.0
Marine systems simulation
|
Linear time-invariant system.
Collaboration diagram for Linear system:Implements a linear system with constant coefficients. The system is formulated as from the input \(u\) to the output \(y\) with the internal state \(x\).
\[\dot{x}=Ax+Bu,\\ y=Cx+Du\]
The size of the system state std::vector \(x\), the input \(u\) and the output \(y\) is derived from the sizes of the input matrices which define the system. The matrices are defined as a list of comma separated row vectors, which are in turn separated by the column separator ";".
The number of internal system states is N, the number of inputs M and the number of outputs K.
| Name | Width | Description |
|---|---|---|
| In | M | The input signal \(u\) |
| Name | Width | Description |
|---|---|---|
| Out | K | \(y=Cx+Du\) |
| Name | Width | Description |
|---|---|---|
| A | NxN | System matrix |
| B | NxM | Gain matrix |
| C | KxN | Output matrix |
| D | KxM | Feedthrough matrix (Default: zero-matrix) |
| Name | Width | Description |
|---|---|---|
| State | N | State std::vector initial conditions |
This SimObject is referred to as Math/LinearSystem