diff --git a/docs/2_2_common_mechanisms.adoc b/docs/2_2_common_mechanisms.adoc index f108a41e3..67f299861 100644 --- a/docs/2_2_common_mechanisms.adoc +++ b/docs/2_2_common_mechanisms.adoc @@ -804,7 +804,7 @@ In some clock semantics (e.g. <>), a clocked variable has a value only wh However, <> will return the value computed at the last Clock activation time. Before the first Clock tick, clocked variables have their initial value. -The association between <> and their <> is defined by the <> elements <>. +The association between <> and their <> is defined by the attribute <>. <> can depend on multiple Clocks. _[For example, a global counter could be incremented by multiple tasks, each controlled by a different Clock.]_ diff --git a/docs/2_4_common_schema.adoc b/docs/2_4_common_schema.adoc index ab49ed62f..462974272 100644 --- a/docs/2_4_common_schema.adoc +++ b/docs/2_4_common_schema.adoc @@ -1077,12 +1077,19 @@ The default value of this attribute is `false`. | [[previous,`previous`]] If present, this variable is a <> and this attribute is a value reference to the variable with the previous value. -Only clocked variables (they are listed in at least one of the <> lists) may have the <> attribute. +Only clocked variables (i.e. variables with the attribute <>) may have the <> attribute. Only variables with <> may have a previous value. _[For example, if `previous == 3` for variable `8`, then variable `3` is the previous value of variable `8`. See also <>._ _Note: This is reverse compared to the <> attribute.]_ +|`clocks` +| +[[clocks,`clocks`]] +If present, this variable is clocked. +The value of <> is a list of value references of <> variables this variable depends on. +Only discrete variables can have this attribute. +_[More rigorous importers requiring a variable to be dependent on a single clock can reject FMUs violating this restriction.]_ |==== If <> is not present, its value is defined by <> based on the values of <> and <> (default [.underline]#underlined#): @@ -1690,8 +1697,8 @@ latexmath:[{\dot{\mathbf{x}_c} := \mathbf{f}_{\mathit{der}}(\mathbf{x}_c, \mathb |`ClockedState` | [[ClockedState,``]] -A <> is part of the discrete state of a model partition and represented by a <> variable. -To which clock or clocks it belongs is described in <>. +A <> is part of the discrete state of a model partition and represented by a clocked variable. +To which Clock or Clocks it belongs is described by the attribute <>. Each <> must have the attribute <> to represent the previous value of this <>. All <> must have <>. @@ -1735,20 +1742,11 @@ _The ordering of the variables in this list is defined by the exporting tool.]_ For Co-Simulation, elements <> are ignored. _[If an FMU supports both Model Exchange and Co-Simulation, then the <> elements might be present, since it is needed for Model Exchange.]_ - -|`Clock` -| -[[ClockElement,``]] -List of all clocks and their clocked variables. -All variables referenced by these lists must have <>. -A clocked variable my depend on multiple clocks and may therefore be listed in multiple <> elements. -_[More rigorous importers requiring a variable to be dependent on a single clock can reject FMUs violating this restriction.]_ - |==== -Elements <>, <>, <>, <>, <> and <> have (partially) the following attributes: +Elements <>, <>, <>, <>, and <> have (partially) the following attributes: -.<>, <>, <>, <>, <> and <> attribute details. +.<>, <>, <>, <>, and <> attribute details. [[table-output-der-initialUknown-details]] [cols="1,5", options="header"] |==== @@ -1809,12 +1807,6 @@ Only for floating point type unknowns latexmath:[{\mathbf{v}_{\mathit{unknown}}} `=` <>: tunable factor, latexmath:[{p \cdot \mathbf{v}_{\mathit{known},i}}] where latexmath:[{p}] is an expression that is evaluated before <> is called and in <> due to event handling (ME) or at a communication point (CS and SE) `=` <>: discrete factor, latexmath:[{d \cdot \mathbf{v}_{\mathit{known},i}}] where latexmath:[{d}] is an expression that is evaluated before <> is called and in <> due to an external or internal event or at a communication point (CS and SE). - -|`clockedVariables` -| -[[clockedVariables, `clockedVariables`]] -This element is only available with the <> element and is a list of value references indicating clocked variables depending on this clock. - |==== _[Example 1:_ diff --git a/schema/fmi3ModelDescription.xsd b/schema/fmi3ModelDescription.xsd index c4d898d1e..d5aaf4c8d 100644 --- a/schema/fmi3ModelDescription.xsd +++ b/schema/fmi3ModelDescription.xsd @@ -104,19 +104,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - - - - - - - - - - - diff --git a/schema/fmi3Variable.xsd b/schema/fmi3Variable.xsd index 48d838dd0..ce200d7c3 100644 --- a/schema/fmi3Variable.xsd +++ b/schema/fmi3Variable.xsd @@ -350,6 +350,11 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + + +