impure functionlinearize

Creates a model with symbolic linearization matrices.

Extends from Internal.simulationArguments (The arguments of simulate, buildModel and the other simulation calls.).

Information

Creates a model with symbolic linearization matrices.

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

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 model
RealstartTime (from simulationArguments)nan()Start time
RealstopTime (from simulationArguments)nan()Stop time
IntegernumberOfIntervals (from simulationArguments)-1Number of intervals
RealstepSize (from simulationArguments)nan()Interval of the result file
Realtolerance (from simulationArguments)nan()Integration tolerance
Stringmethod (from simulationArguments)"<default>"Integration method
StringfileNamePrefix (from simulationArguments)"<default>"File name prefix
Stringoptions (from simulationArguments)"<default>"Not used
StringoutputFormat (from simulationArguments)"<default>"Result file format
StringvariableFilter (from simulationArguments)"<default>"Variables to store
Stringcflags (from simulationArguments)"<default>"Flags for the C compiler
Stringsimflags (from simulationArguments)"<default>"Flags for the simulation

Outputs

TypeNameDefaultDescription
StringlinearizationResult

Revisions

RevisionAuthorComment
13421wbraunAdded to omc