A NEW OBJECT-ORIENTED LIBRARY FOR CALCULATING ANALYTICALLY HIGH-ORDERMULTIVARIABLE DERIVATIVES AND THERMODYNAMIC PROPERTIES OF FLUIDS WITHEQUATIONS OF STATE

Authors
Citation
R. Thiery, A NEW OBJECT-ORIENTED LIBRARY FOR CALCULATING ANALYTICALLY HIGH-ORDERMULTIVARIABLE DERIVATIVES AND THERMODYNAMIC PROPERTIES OF FLUIDS WITHEQUATIONS OF STATE, Computers & geosciences, 22(7), 1996, pp. 801-815
Citations number
42
Categorie Soggetti
Mathematical Method, Physical Science","Geosciences, Interdisciplinary","Computer Science Interdisciplinary Applications
Journal title
ISSN journal
00983004
Volume
22
Issue
7
Year of publication
1996
Pages
801 - 815
Database
ISI
SICI code
0098-3004(1996)22:7<801:ANOLFC>2.0.ZU;2-J
Abstract
A new global approach for calculating thermodynamic properties of flui ds with equations of state is proposed. This method uses an object-ori ented library, written in C++, and containing a number of routines tha t facilitate thermodynamic calculations. It is applicable to any equat ion of state formulated by an analytical expression of the Helmholtz f ree energy. The programming work of the user is limited to the buildin g of a parse representation of the Helmholtz free energy. This parse g raph is then processed by the program for analytically calculating the required derivatives and thermodynamic properties of fluids. A demons tration of this library is made with the Anderko and Fitter equation o f state for H2O-NaCl-KCl fluids. The Helmholtz free energy has been di fferentiated analytically up to the fourth order with respect to the t emperature, molar volume, and composition. Calculated derivatives are used to calculate the critical line of H2O-NaCl mixtures and other the rmodynamic properties, which otherwise would be difficult to obtain. C opyright (C) 1996 Elsevier Science Ltd