.ModelicaReference.'time'

Information

Built-in variable time

Examples

encapsulated model SineSource
  import Modelica.Math.sin;
  connector OutPort=output Real;
  OutPort y=sin(time); // Uses the built-in variable time.
end SineSource;

Syntax

time

Description

All declared variables are functions of the independent variable time. Time is a built-in variable available in all classes, which is treated as an input variable. It is implicitly defined as:

input Real time (final quantity = "Time",
                 final unit     = "s");

The value of the start attribute of time is set to the time instant at which the simulation is started.


Generated at 2024-12-25T19:25:50Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos