Discrete State Space - MapleSim Help

Discrete State Space

Discrete State Space block

 Description The Discrete State Space (or State Space) component defines the relation between the input and the output in state-space form, $x=A\mathrm{pre}\left(x\right)+Bu$ $y=C\mathrm{pre}\left(x\right)+\mathrm{D}u$ where $\mathrm{pre}\left(x\right)$ is the value of the discrete state $x$ at the previous sample time instant. The input is a vector of length $\mathrm{\nu }$, the output is a vector of the length $\mathrm{ny}$, and $\mathrm{nx}$ is the number of states. Accordingly, $A$ has the dimension: $A\left(\mathrm{nx},\mathrm{nx}\right)$, $B$ has the dimension: $B\left(\mathrm{nx},\mathrm{\nu }\right)$, $C$ has the dimension: $C\left(\mathrm{ny},\mathrm{nx}\right)$, $\mathrm{D}$ has the dimension: $\mathrm{D}\left(\mathrm{ny},\mathrm{\nu }\right)$ The dimensions of the state-space matrices specified in parameters $A$, $B$, $C$, and $\mathrm{D}$ need to be adjusted according to the number of inputs that you provide. To change the dimensions of a matrix in a parameter field, right-click (Control-click for Mac) the parameter field and select Edit Matrix Dimensions. You can then specify the number of rows and columns to include in the matrix. Note: The context menu operation for setting the matrix dimension is not available if the parameter field is blank. In this case, you must enter a matrix as a list of lists, for example, [[1,2],[3,4]].

Connections

 Name Description Modelica ID $u$ Continuous input signals u $y$ Continuous output signals y

Parameters

General Parameters

 Name Default Units Description Modelica ID A $\left[\left[1,0\right],\left[0,1\right]\right]$ Matrix A of state space model A B $\left[\left[1\right],\left[1\right]\right]$ Matrix B of state space model B C $\left[\left[1,1\right]\right]$ Matrix C of state space model C D * Matrix D of state space model D Sample Period $0.1$ $s$ Sample period of component samplePeriod ${T}_{0}$ $0$ $s$ First sample time instant startTime

* $\mathrm{zeros}\left(\mathrm{size}\left(C,1\right),\mathrm{size}\left(B,2\right)\right)$

 Modelica Standard Library The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.