blockStateSpace

Continuous or discrete state space system block

Extends from Interfaces.PartialSampledBlock (Partial block of Sampled library (icon + default parameters)).

Information

Parameters

TypeNameDefaultDescription
Modelica_LinearSystems2.StateSpacesystemModelica_LinearSystems2.StateSpace(A = fill(0, 0, 0), B = fill(0, 0, 1), C = fill(0, 1, 0), D = fill(0, 1, 1))Continuous linear time-invariant system
Booleancontinuous (from PartialSampledBlock)blockType == Types.BlockTypeWithGlobalDefault.Continuous or blockType == Types.BlockTypeWithGlobalDefault.UseSampleClockOption and sampleClock.blockType == Types.BlockType.ContinuousTrue, if continuous block, otherwise discrete block
Types.Initinit (from PartialSampledBlock)Modelica_LinearSystems2.Controllers.Internal.convertToInit(initType, sampleClock.initType)Type of initialization (no init/steady state/initial state/initial output)
Integernxsize(system.A, 1)Number of states x
Integernysize(system.C, 1)Number of outputs y
Advanced options
Types.BlockTypeWithGlobalDefaultblockType (from PartialSampledBlock)Modelica_LinearSystems2.Controllers.Types.BlockTypeWithGlobalDefault.UseSampleClockOptionType of block
Types.InitWithGlobalDefaultinitType (from PartialSampledBlock)Types.InitWithGlobalDefault.UseSampleClockOptionType of initialization (no init/steady state/initial state/initial output)
Real[nx]x_startzeros(nx)Initial or guess values of states
Real[ny]y_startzeros(ny)Initial values of outputs (remaining states are in steady state if possible)
BooleanwithDelayfalseTrue, if a unit delay should be considered
Advanced options › Discrete block parameters
Types.MethodWithGlobalDefaultmethodType (from PartialSampledBlock)Types.MethodWithGlobalDefault.UseSampleClockOptionType of discretization if discrete block
IntegersampleFactor (from PartialSampledBlock)1Sample factor (Ts = sampleFactor * sampleClock.sampleTime)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[size(system.B, 2)]uContinuous or discrete input signals of block
Modelica.Blocks.Interfaces.RealOutput[size(system.C, 1)]yContinuous or discrete output signals of block
Modelica.Blocks.Interfaces.RealOutput[nx]xState vector of continuous system