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

TypeNameDefaultDescription
StringmodelName"Modelica_LinearSystems2.Utilities.Plants.DoublePendulum"
RealT_linearize0Simulate until T_linearize and then linearize the model

Outputs

TypeNameDefaultDescription
StateSpacessStateSpace.Import.fromModel(modelName = modelName, T_linearize = T_linearize)