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

Standardizing FMU-import #3585

Open HansOlsson opened 4 days ago

HansOlsson commented 4 days ago

As discussed on the coordination meeting. The goal was not to standardize on an implementation, but instead standardize the interface of an FMU in Modelica.

Having an "FMU-external-object" is one way, but regardless we need to explain how an FMU behaves as Modelica class, specifically:

Notes:

Note that tools may have special options for this, and it is not clear if should only standardize one way or the options. E.g., Dymola has:

Additionally, it would be desirable that tools that do generate Modelica code, that code is at least standard-conformant, even if non-standard extensions are needed for performance reasons.

casella commented 3 days ago

As I understand (I'm not an expert here), we also need to define some primitives so that FMU actions like rejecting a step can be communicated to the Modelica tool runtime. This seems to me the really thorny issue.

HansOlsson commented 3 days ago

As I understand (I'm not an expert here), we also need to define some primitives so that FMU actions like rejecting a step can be communicated to the Modelica tool runtime. This seems to me the really thorny issue.

That seems to be part of the implementation (as well as step-events), and thus not something to standardize on.