Skip to content

Support clocked variables? #85

Description

@casella

Since Modelica 3.3, clocked systems are defined in Modelica, see Chapter 16 of the language specification and this introductory paper.

Note that clocked variables are completely different from discrete variables. The former are only defined at events, while the latter change at events but are always defined. Also, the sampling of clocked systems is very rigourously defined through synchronous system theory, which is lacking for discrete variables.

In Modelica, clocks are propagated automatically according to synchronous semantics, which allows to determine synchronous clock partitions in a given system. According to the current Base Modelica draft specification, clock partitioning will be performed by the exporting tool, so the Base Modelica output already indicates the clock partitions explicitly and there is no need to figure them out by the importing tool. This makes implementing them in Base Modelica much easier than in Modelica.

Q1: is something similar to clocked variables and synchronous semantics defined in MTK?
Q2: if so, how hard would it be to map Base Modelica synchronous models with clocked partitions onto MTK?

Maybe @JKRT can also comment on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions