.Modelica_LinearSystems2.Examples.DiscreteStateSpace.importFromModel

Information

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

Interface

function importFromModel
  extends Modelica.Icons.Function;
  import Modelica_LinearSystems2.DiscreteStateSpace;
  input String modelName = "Modelica_LinearSystems2.Utilities.Plants.DoublePendulum";
  input Modelica.Units.SI.Time Ts = 0.01;
  input Modelica.Units.SI.Time T_linearize = 0 "Point in time of simulation to linearize the model";
  output DiscreteStateSpace dss = DiscreteStateSpace.Import.fromModel(modelName = modelName, Ts = Ts, T_linearize = T_linearize);
end importFromModel;

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos