Automatic code generation in SPARK [electronic resource] : Applications of computer algebra and compiler-compilers
- Published
- Washington, D.C. : United States. Dept. of Energy, 1992.
Oak Ridge, Tenn. : Distributed by the Office of Scientific and Technical Information, U.S. Dept. of Energy. - Physical Description
- Pages: (18 pages) : digital, PDF file
- Additional Creators
- Lawrence Berkeley National Laboratory, United States. Department of Energy, and United States. Department of Energy. Office of Scientific and Technical Information
Access Online
- Restrictions on Access
- Free-to-read Unrestricted online access
- Summary
- We show how computer algebra and compiler-compilers are used for automatic code generation in the Simulation Problem Analysis and Research Kernel (SPARK), an object oriented environment for modeling complex physical systems that can be described by differential-algebraic equations. After a brief overview of SPARK, we describe the use of computer algebra in SPARK's symbolic interface, which generates solution code for equations that are entered in symbolic form. We also describe how the Lex/Yacc compiler-compiler is used to achieve important extensions to the SPARK simulation language, including parametrized macro objects and steady-state resetting of a dynamic simulation. The application of these methods to solving the partial differential equations for two-dimensional heat flow is illustrated.
- Report Numbers
- E 1.99:lbl-32815
lbl-32815 - Subject(s)
- Other Subject(s)
- Note
- Published through SciTech Connect.
09/01/1992.
"lbl-32815"
"DE93015232"
Winkelmann, F.; Nataf, J.M. - Funding Information
- AC03-76SF00098
View MARC record | catkey: 14079272