Discrete State Space - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Discrete State Space

Discrete State Space block

 

Description

Connections

Parameters

Modelica Standard Library

Description

The Discrete State Space (or State Space) component defines the relation between the input and the output in state-space form,

x=Aprex+Bu

y=Cprex+Du

where prex 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: Anx,nx,

B has the dimension: Bnx,ν,

C has the dimension: Cny,nx,

D has the dimension: Dny,ν

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]].

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

1,0,0,1

 

Matrix A of state space model

A

B

1,1

 

Matrix B of state space model

B

C

1,1

 

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

T0

0

s

First sample time instant

startTime

* zerossizeC,1,sizeB,2

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.

See Also

Discrete Signal Blocks

Signal Blocks