Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Using SPARK as a Solver for Modelica

Conference ·
OSTI ID:936247
Modelica is an object-oriented acausal modeling language that is well positioned to become a de-facto standard for expressing models of complex physical systems. To simulate a model expressed in Modelica, it needs to be translated into executable code. For generating run-time efficient code, such a translation needs to employ algebraic formula manipulations. As the SPARK solver has been shown to be competitive for generating such code but currently cannot be used with the Modelica language, we report in this paper how SPARK's symbolic and numerical algorithms can be implemented in OpenModelica, an open-source implementation of a Modelica modeling and simulation environment. We also report benchmark results that show that for our air flow network simulation benchmark, the SPARK solver is competitive with Dymola, which is believed to provide the best solver for Modelica.
Research Organization:
Ernest Orlando Lawrence Berkeley National Laboratory, Berkeley, CA (US)
Sponsoring Organization:
Environmental Energy Technologies Division
DOE Contract Number:
AC02-05CH11231
OSTI ID:
936247
Report Number(s):
LBNL-634E
Country of Publication:
United States
Language:
English

Similar Records

Simulation Speed Analysis and Improvements of Modelica Models for Building Energy Simulation
Conference · Mon Sep 21 00:00:00 EDT 2015 · OSTI ID:1249560

Modelica Builder (ModBuild)
Software · Mon Apr 06 20:00:00 EDT 2020 · OSTI ID:code-35090

Automatic code generation in SPARK: Applications of computer algebra and compiler-compilers
Technical Report · Tue Sep 01 00:00:00 EDT 1992 · OSTI ID:10161277