.ModelicaReference.Annotations.experiment

Information

Define default experiment parameters

Examples

annotation(experiment(StartTime=0, StopTime=5, Tolerance=1e-6))

Syntax

experiment_annotation:
   annotation"(" "experiment" "(" [experimentOption] {, experimentOption}] ")"

experimentOption:
   StartTime  "=" ["+" | "-"] UNSIGNED_NUMBER |
   StopTime   "=" ["+" | "-"] UNSIGNED_NUMBER |
   Interval   "=" UNSIGNED_NUMBER
   Tolerance  "=" UNSIGNED_NUMBER

Description

The experiment annotation defines the default start time (StartTime) in [s], the default stop time (StopTime) in [s], the suitable time resolution for the result grid (Interval) in [s], and the default relative integration tolerance (Tolerance) for simulation experiments to be carried out with the model or block at hand.


Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos