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
| Type | Name | Default | Description |
|---|---|---|---|
| TypeName | className (from simulationArguments) | The model | |
| Real | startTime (from simulationArguments) | nan() | Start time |
| Real | stopTime (from simulationArguments) | nan() | Stop time |
| Integer | numberOfIntervals (from simulationArguments) | -1 | Number of intervals |
| Real | stepSize (from simulationArguments) | nan() | Interval of the result file |
| Real | tolerance (from simulationArguments) | nan() | Integration tolerance |
| String | method (from simulationArguments) | "<default>" | Integration method |
| String | fileNamePrefix (from simulationArguments) | "<default>" | File name prefix |
| String | options (from simulationArguments) | "<default>" | Not used |
| String | outputFormat (from simulationArguments) | "<default>" | Result file format |
| String | variableFilter (from simulationArguments) | "<default>" | Variables to store |
| String | cflags (from simulationArguments) | "<default>" | Flags for the C compiler |
| String | simflags (from simulationArguments) | "<default>" | Flags for the simulation |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | linearizationResult |
Revisions
| Revision | Author | Comment |
|---|---|---|
| 13421 | wbraun | Added to omc |