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
| Type | Name | Default | Description |
|---|---|---|---|
| TypeName | className | the class that should simulated | |
| Real | startTime | "<default>" | the start time of the simulation. <default> = 0.0 |
| Real | stopTime | 1.0 | the stop time of the simulation. <default> = 1.0 |
| Integer | numberOfIntervals | 500 | number of intervals in the result file. <default> = 500 |
| Real | stepSize | 0.002 | step size that is used for the result file. <default> = 0.002 |
| Real | tolerance | 1e-6 | tolerance used by the integration method. <default> = 1e-6 |
| String | method | "<default>" | integration method used for simulation. <default> = dassl |
| String | fileNamePrefix | "<default>" | fileNamePrefix. <default> = "" |
| Boolean | storeInTemp | false | storeInTemp. <default> = false |
| Boolean | noClean | false | noClean. <default> = false |
| String | options | "<default>" | options. <default> = "" |
| String | outputFormat | "mat" | Format for the result file. <default> = "mat" |
| String | variableFilter | ".*" | Only variables fully matching the regexp are stored in the result file. <default> = ".*" |
| String | cflags | "<default>" | cflags. <default> = "" |
| String | simflags | "<default>" | simflags. <default> = "" |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | linearizationResult |
Revisions
| Revision | Author | Comment |
|---|---|---|
| 13421 | wbraun | Added to omc |