Library Modelica.Utilities contains Modelica functions that are especially suited for scripting. Currently, only a rudimentary User's Guide is present. This will be improved in the next releases. The User's Guide has currently the following chapters:
Error handling
In case of error, all functions in this library use a Modelica "assert(..)"
to provide an error message and to cancel all actions. This means that
functions do not return, if an error is triggered inside the function.
In the near future, an exception handling mechanism will be introduced
in Modelica that will allow to catch errors at a defined place.
Name | Description |
---|---|
ImplementationNotes | Implementation Notes |
ReleaseNotes | Release notes |
Contact | Contact |
Below the major design decisions of this library are summarized.
String s[:], s_temp; ... s_temp := s[i]; s[i] := s[j]; s[j] := s_temp;Formally, three strings are copied. Due to the feature sketched above, a Modelica tool can replace this copy operation by pointer assignments, a very "cheap" operation. The Modelica.Utilities functions will perform efficiently, if such types of optimizations are supported by the tool.
First version implemented.
Acknowledgements:
Dag Brück, Dynasim AB, Sweden
Hilding Elmqvist, Dynasim AB, Sweden
Hans Olsson, Dynasim AB, Sweden
Martin Otter, DLR Oberpfaffenhofen, Germany.