impure functionlinearize

Creates a model with symbolic linearization matrices.

Extends from Internal.simulationArguments (The arguments of simulate, buildModel and the other simulation calls. An argument that is not given is taken from the experiment annotation.).

Information

Creates a model with symbolic linearization matrices.

At stopTime the linearization matrices are evaluated and a modelica model is created.

The only required argument is the className, while all others have some default values.

Usage:

linearize(A, stopTime=0.0);

Creates the file in the selected linearization output language (modelica by default) that contains the linearized matrices at stopTime.

The output language can be changed with the command line option --linearizationDumpLanguage e.g., setCommandLineOptions("--linearizationDumpLanguage=modelica")

Inputs

TypeNameDefaultDescription
TypeNameclassName (from simulationArguments)the class that should simulated
RealstartTime (from simulationArguments)nan()the start time of the simulation. <default> = 0.0
RealstopTime (from simulationArguments)nan()the stop time of the simulation. <default> = 1.0
IntegernumberOfIntervals (from simulationArguments)-1number of intervals in the result file. <default> = 500
RealstepSize (from simulationArguments)nan()step size that is used for the result file; overrides numberOfIntervals. <default> = 0.002
Realtolerance (from simulationArguments)nan()tolerance used by the integration method. <default> = 1e-6
Stringmethod (from simulationArguments)"<default>"integration method used for simulation. <default> = dassl
StringfileNamePrefix (from simulationArguments)"<default>"fileNamePrefix. <default> = ""
Stringoptions (from simulationArguments)"<default>"options. <default> = ""
StringoutputFormat (from simulationArguments)"<default>"Format for the result file. <default> = "mat"
StringvariableFilter (from simulationArguments)"<default>"Only variables fully matching the regexp are stored in the result file. <default> = ".*"
Stringcflags (from simulationArguments)"<default>"cflags. <default> = ""
Stringsimflags (from simulationArguments)"<default>"simflags. <default> = ""

Outputs

TypeNameDefaultDescription
StringlinearizationResult

Revisions

RevisionAuthorComment
13421wbraunAdded to omc