Konferensartikel
Development of a Thermodynamic Engine in OpenModelica
Rahul Jain
Dept. of Chemical Engineering, Indian Institute of Technology Bombay, India
Kannan M. Moudgalya
Dept. of Chemical Engineering, Indian Institute of Technology Bombay, India
Peter Fritzson
Dept. Computer and Information Sciences, Linköping University, Sweden
Adrian Pop
Dept. Computer and Information Sciences, Linköping University, Sweden
Ladda ner artikelhttp://dx.doi.org/10.3384/ecp1713289Ingår i: Proceedings of the 12th International Modelica Conference, Prague, Czech Republic, May 15-17, 2017
Linköping Electronic Conference Proceedings 57:9, s. 89-99
Visa mer +
Publicerad: 2017-07-04
ISBN: 978-91-7685-575-1
ISSN: 1650-3686 (tryckt), 1650-3740 (online)
Abstract
OpenModelica, an open source equation oriented modeling environment for steady state and dynamic simulation, lacks good chemical engineering support. This problem is addressed by making available in different ways the thermodynamic library Chemsep that comes with DWSIM, an open source sequential modular steady state simulator. Only slow speeds could be achieved through a Python-C API based interface connecting OpenModelica with the thermodynamic library. A socket programming based interface helps achieve faster speeds. Best results have been achieved by porting the thermodynamic library and the calculation routines to OpenModelica, due to two reasons: (1) thermodynamic equations are solved simultaneously with mass and energy balances (2) overheads in calling the external routines of DWSIM are eliminated. Performances of the above mentioned three approaches have been validated with steady state and dynamic simulations. Benzene - toluene separation, methanol - ethanol – water distillation, and steam distillation of an n-octane – n-decane mixture, have been carried out through these simulations. This work makes available a powerful simulation platform to the chemical engineering.
Nyckelord
OpenModelica, DWSIM, Chemsep, thermodynamics, modeling, simulation, chemical engineering, Python-C API, socket programming, media
Referenser
Inga referenser tillgängliga
Citeringar i Crossref