modelica / ModelicaSpecification

Specification of the Modelica Language
https://specification.modelica.org
Creative Commons Attribution Share Alike 4.0 International
101 stars 41 forks source link

Clarification of solver methods for clocked systems #1359

Closed modelica-trac-importer closed 5 years ago

modelica-trac-importer commented 5 years ago

Reported by otter on 21 Nov 2013 12:24 UTC Section 16.8.2 of the Modelica Specification 3.3 about solver methods needs some clarification.

Issues:


Migrated-From: https://trac.modelica.org/Modelica/ticket/1359

modelica-trac-importer commented 5 years ago

Comment by otter on 21 Nov 2013 13:32 UTC Replying to [ticket:1359 otter]:

Section 16.8.2 of the Modelica Specification 3.3 about solver methods needs some clarification.

Issues:

  • The meaning of "u" in the formulas is not clear. For example:
    Real u1 = sample(u1C, Clock(0.1));
    Real u2 = exp(u1);
    Real x;
    equation
    der(x) = u2;

    is "u" in the formula "u1" or "u2" (it is "u1").

Here is a more precise formulation, based on input from Sven Erik:

A solver method is to be applied on a subclock partition. Such a partition has explicit inputs u marked by sample(u), subSample(u), superSample(u), shiftSample(u) and backSample(u). The arguments of these are to be used as input signals u in the discretization formula. Therefore, in the above example the "u" in the formula is "u1C".

modelica-trac-importer commented 5 years ago

Comment by otter on 24 Nov 2013 15:37 UTC Fixed in r7150 according to the suggestion.