.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-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos