functionsimulationArguments
The arguments of simulate, buildModel and the other simulation calls.
Extends from classNameArgument (The model of a simulation call.), experimentArguments (The experiment of simulate, buildModelFMU and the other calls that simulate or export a model.).
Information
Only className is necessary. For startTime, stopTime, numberOfIntervals, stepSize and tolerance,
see experimentArguments. An argument that is not given gets its value from the default below.
The declared value "<default>" only marks an argument that is not given.
| Argument | Value if not given |
|---|---|
method | "auto": the simulation runtime chooses the method (see -s). With --daeMode, "ida". For optimize(), "optimization". |
fileNamePrefix | The name of the class. The result file is <fileNamePrefix>_res.<outputFormat>. |
options | Not used. |
outputFormat | "mat". The other formats are "csv", "plt", "arrow" and "empty", which writes no result file. |
variableFilter | ".*". Only the variables whose full name matches this regular expression go into the result file. |
cflags | "". Extra flags for the C compiler. |
simflags | The __OpenModelica_simulationFlags annotation of the class, else "".
With --ignoreSimulationFlagsAnnotation, omc does not use the annotation. |
The flags in simflags apply when the simulation executable runs, and they replace the values above:
for example, -s=euler replaces method.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| TypeName | className (from classNameArgument) | The model | |
| Real | startTime (from experimentArguments) | nan() | Start time |
| Real | stopTime (from experimentArguments) | nan() | Stop time |
| Integer | numberOfIntervals (from experimentArguments) | -1 | Number of intervals |
| Real | stepSize (from experimentArguments) | nan() | Interval |
| Real | tolerance (from experimentArguments) | nan() | Integration tolerance |
| String | method | "<default>" | Integration method |
| String | fileNamePrefix | "<default>" | File name prefix |
| String | options | "<default>" | Not used |
| String | outputFormat | "<default>" | Result file format |
| String | variableFilter | "<default>" | Variables to store |
| String | cflags | "<default>" | Flags for the C compiler |
| String | simflags | "<default>" | Flags for the simulation |