functionlinearize

Creates a model with symbolic linearization matrices.

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
TypeNameclassNamethe class that should simulated
RealstartTime"<default>"the start time of the simulation. <default> = 0.0
RealstopTime1.0the stop time of the simulation. <default> = 1.0
IntegernumberOfIntervals500number of intervals in the result file. <default> = 500
RealstepSize0.002step size that is used for the result file. <default> = 0.002
Realtolerance1e-6tolerance used by the integration method. <default> = 1e-6
Stringmethod"<default>"integration method used for simulation. <default> = dassl
StringfileNamePrefix"<default>"fileNamePrefix. <default> = ""
BooleanstoreInTempfalsestoreInTemp. <default> = false
BooleannoCleanfalsenoClean. <default> = false
Stringoptions"<default>"options. <default> = ""
StringoutputFormat"mat"Format for the result file. <default> = "mat"
StringvariableFilter".*"Only variables fully matching the regexp are stored in the result file. <default> = ".*"
Stringcflags"<default>"cflags. <default> = ""
Stringsimflags"<default>"simflags. <default> = ""

Outputs

TypeNameDefaultDescription
StringlinearizationResult

Revisions

RevisionAuthorComment
13421wbraunAdded to omc