functionimportFromModel
Generate a linear state space system from a (nonlinear) Modelica model
Extends from Modelica.Icons.Function (Icon for functions).
Information
This example demonstrates how to generate a linear state space system from a (nonlinear) Modelica model.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | modelName | "Modelica_LinearSystems2.Utilities.Plants.DoublePendulum" | |
| Real | T_linearize | 0 | Simulate until T_linearize and then linearize the model |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | ss | StateSpace.Import.fromModel(modelName = modelName, T_linearize = T_linearize) |