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 ndecane mixture, have been carried out through these simulations. This work makes available a powerful simulation platform to the chemical engineering.
[1]
J. Prausnitz,et al.
LOCAL COMPOSITIONS IN THERMODYNAMIC EXCESS FUNCTIONS FOR LIQUID MIXTURES
,
1968
.
[2]
John Goerzen.
Foundations of Python Network Programming
,
2004,
Apress.
[3]
G. Soave.
Equilibrium constants from a modified Redlich-Kwong equation of state
,
1972
.
[4]
H. Kooijman,et al.
The ChemSep book.
,
2001
.
[5]
Peter Fritzson,et al.
Principles of Object-Oriented Modeling and Simulation with Modelica 3.3: A Cyber-Physical Approach
,
2014
.
[6]
Adrian Pop,et al.
An Open Source Modelica Graphic Editor Integrated with Electronic Notebooks and Interactive Simulation
,
2011
.
[7]
Kai Fischer,et al.
A data bank for azeotropic data — status and applications
,
1995
.
[8]
J. Smith,et al.
Introduction to chemical engineering thermodynamics
,
1949
.
[9]
Peter Piela,et al.
An Introduction to the ASCEND Modeling System: Its Language and Interactive Environment
,
1993,
J. Manag. Inf. Syst..