Marine systems simulation
|
Linear combination mapping.
Implements a linear combination mapping. The sim object takes two inputs \(u\), \(v\) and maps them to the output \(y\).
\(y=C_u u + C_v v\)
The dimensions of the output vector and the inputs \(u\) and \(u\) are derived from the sizes of the input matrices \(C_u\) and \(C_v\). The matrices are defined as a list of comma-separated row vectors, which in turn are separated by ";". The number of rows in these matrices must be equal, i.e. the dimension of the output.
The input matrices,
\(c_{u}=\begin{bmatrix}0 & 1 & 2\\0 & -2 & -3\end{bmatrix}\) and \(c_{v}=\begin{bmatrix}1 & 2\\3 & 2\end{bmatrix}\)
and the inputs,
\(u=\begin{bmatrix}3\\2\\1\end{bmatrix}\) and \(v=\begin{bmatrix}2\\2\end{bmatrix}\)
yields the following linear mapping:
\(y=\begin{bmatrix}0 & 1 & 2\\0 & -2 & -3\end{bmatrix} \cdot \begin{bmatrix}3\\2\\1\end{bmatrix} + \begin{bmatrix}1 & 2\\3 & 2\end{bmatrix}\ \cdot \begin{bmatrix}2\\2\end{bmatrix} = \begin{bmatrix}10\\3\end{bmatrix}\)
Dimension of vectors and matrices are: \(y : M\), \(u: K\), \(v: K\), \(C_u : M \times K\), \(C_v : M \times L\).
Name | Width | Description |
---|---|---|
InU | K | The first input signal. |
InV | L | The second input signal. |
Name | Width | Description |
---|---|---|
Out | M | The output vector \(y\). |
Out1 .. Out<M> | 1 | De-muxed output \(y_i\). |
Name | Width | Description |
---|---|---|
Cu | MxK | Matrix \(C_u\). |
Cv | MxL | Matrix \(C_v\). |
This SimObject is referred to as Math/LinearMapping