functionimportFromModel
This example demonstrates how to generate a linear discrete state space system from a (nonlinear) Modelica moodel
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | modelName | "Modelica_LinearSystems2.Utilities.Plants.DoublePendulum" | |
| Modelica.Units.SI.Time | Ts | 0.01 | |
| Modelica.Units.SI.Time | T_linearize | 0 | Point in time of simulation to linearize the model |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| DiscreteStateSpace | dss | DiscreteStateSpace.Import.fromModel(modelName = modelName, Ts = Ts, T_linearize = T_linearize) |