Symbolically Derived Jacobians Using Automatic Differentiation - Enhancement of the OpenModelica Compiler
نویسندگان
چکیده
Jacobian matrices are used in a wide range of applications from solving the original DAEs to sensitivity analysis. Using Automatic Differentiation the necessary partial derivatives can be provided efficiently within a Modelica-Tool. This paper describes the corresponding implementation work within the OpenModelica Compiler (OMC) to create a symbolic derivative module. This new OMC-feature generates symbolically partial derivatives in order to calculate Jacobian matrices with respect to different variables. Applications presented here, are the generation of linear models of non-linear Modelica models and the usage of the Jacobian matrix in DASSL for simulating a model.
منابع مشابه
A Task Merging Technique for Parallelization of Modelica Models
This paper presents improvements on techniques of merging tasks in task graphs generated in the ModPar automatic parallelization module of the OpenModelica compiler. Automatic parallelization is performed on Modelica models by building data dependency graphs called task graphs from the model equations. To handle large task graphs with fine granularity, i.e. low ratio of execution and communicat...
متن کاملCompilation of Modelica Array Computations into Single Assignment C for Efficient Execution on CUDA-enabled GPUs
Mathematical models, derived for example from discretisation of partial differential equations, often contain operations over large arrays. In this work we investigate the possibility of compiling array operations from models in the equation-based language Modelica into Single Assignment C (SAC). The SAC2C SAC compiler can generate highly efficient code that, for instance, can be executed on CU...
متن کاملAn OpenModelica Java External Function Interface Supporting MetaProgramming
A complete Java interface to OpenModelica has been created, supporting both standard Modelica and the metamodeling extensions in MetaModelica. It is bidirectional, and capable of passing both standard Modelica data types, as well as abstract syntax trees and list structures to and from Java and process them in either Java or the OpenModelica Compiler. It currently uses the existing CORBA interf...
متن کاملMeta Programming and Function Overloading in OpenModelica
The OpenModelica framework is an Open Source effort for building a complete compiler for Modelica started at the programming environments laboratory at Linköping university. It is written in a language called RML [10], Relational Meta Language, based on natural semantics. Natural semantics is a popular formalism for describing the semantics (i.e. the meaning of language constructs) for compiler...
متن کاملExploiting Repeated Structures and Vectorization in Modelica
Large and highly-detailed Modelica models are frequently modeled by utilizing repeated structures, which is a repetition of various elements that are linked together in an iterative manner. While the Modelica language standard supports the representation of repeated structures, most Modelica compilers do not exploit their advantages for efficient simulations. Instead, all repeated equations are...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011