Discrete State Space
Discrete State Space block
Description
Connections
Parameters
Modelica Standard Library
The Discrete State Space (or State Space) component defines the relation between the input and the output in state-space form,
x=A⁢pre⁡x+B⁢u
y=C⁢pre⁡x+D⁢u
where pre⁡x is the value of the discrete state x at the previous sample time instant.
The input is a vector of length ν, the output is a vector of the length ny, and nx is the number of states. Accordingly,
A has the dimension: A⁡nx,nx,
B has the dimension: B⁡nx,ν,
C has the dimension: C⁡ny,nx,
D has the dimension: D⁡ny,ν
The dimensions of the state-space matrices specified in parameters A, B, C, and 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]].
Name
Modelica ID
u
Continuous input signals
y
Continuous output signals
General Parameters
Default
Units
A
1,0,0,1
Matrix A of state space model
B
1,1
Matrix B of state space model
C
Matrix C of state space model
D
*
Matrix D of state space model
Sample Period
0.1
s
Sample period of component
samplePeriod
T0
0
First sample time instant
startTime
* zeros⁡size⁡C,1,size⁡B,2
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.
See Also
Discrete Signal Blocks
Signal Blocks
Download Help Document