Conference article

A MATLAB to Modelica Translator

Mohammad Jahanzeb
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Arunkumar Palanisamy
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Martin Sjölund
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Peter Fritzson
Department of Computer and Information Science, Linköping University, Linköping, Sweden

Download articlehttp://dx.doi.org/10.3384/ecp140961285

Published in: Proceedings of the 10th International Modelica Conference; March 10-12; 2014; Lund; Sweden

Linköping Electronic Conference Proceedings 96:137, p. 1285-1294

Show more +

Published: 2014-03-10

ISBN: 978-91-7519-380-9

ISSN: 1650-3686 (print), 1650-3740 (online)

Abstract

Matlab is a proprietary; interactive; dynamically-typed language for technical computing. It is widely used for prototyping algorithms and applications of scientific computations. Since it is a dynamically typed language; the execution of programs has to be analyzed and interpreted which results in lower computational performance. In order to increase the performance and integrate with Modelica applications it is useful to be able to translate Matlab programs to statically typed Modelica programs.

This paper presents the design and implementation of Matlab to Modelica translator. The Lexical and Syntax analysis is done with the help of the OMCCp (OpenModelica Compiler Compiler parser generator) tool which generates the Matlab AST; which is later used by the translator for generating readable and reusable Modelica code.

Keywords

Modelica; MetaModelica; Matlab; OMCCp; translation

References

No references available

Citations in Crossref