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.
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.