.Modelica_LinearSystems2.Examples.StateSpace.importFromModel

Information

This example demonstrates how to generate a linear state space system from a (nonlinear) Modelica model.

Interface

function importFromModel
  extends Modelica.Icons.Function;
  import Modelica_LinearSystems2.StateSpace;
  input String modelName = "Modelica_LinearSystems2.Utilities.Plants.DoublePendulum";
  input Real T_linearize = 0 "Simulate until T_linearize and then linearize the model";
  output StateSpace ss = StateSpace.Import.fromModel(modelName = modelName, T_linearize = T_linearize);
end importFromModel;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos