Automatic implementation of thermodynamic models using computer algebra

被引:43
作者
Castier, M [1 ]
机构
[1] Univ Fed Rio de Janeiro, Escola Quim, BR-21949900 Rio De Janeiro, Brazil
关键词
Thermath; Mathematica (R); equations of state; thermodynamic models;
D O I
10.1016/S0098-1354(99)00286-0
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
A new package, Thermath, for the automatic implementation of thermodynamic models was developed in the Mathematica(R) programming language. Starting from an excess Gibbs free energy (G(E)) model or an equation of state (EOS), Thermath can be used to derive expressions for several thermodynamic properties and to analyze the structure of these expressions, generating a code that implements them in a computer language (Fortran77 is used in this paper). Using the package, procedures that implement properties derived from commonly used G(E) models could be rapidly generated. For EOSs, two situations occurred. Properties from simple EOSs could be readily derived and implemented. For more complex EOS, lengthy expressions may result, and their analysis can be very demanding in terms of computer time. To overcome this difficulty, a strategy to split this problem in tasks of feasible computational demand is presented. Although the applications of this paper deal with the implementation of thermodynamic models, most of the procedures developed here can possibly be used to implement models in other fields of science and engineering. (C) 1999 Elsevier Science Ltd. All rights reserved.
引用
收藏
页码:1229 / 1245
页数:17
相关论文
共 21 条
[1]   STATISTICAL THERMODYNAMICS OF LIQUID-MIXTURES - NEW EXPRESSION FOR EXCESS GIBBS ENERGY OF PARTLY OR COMPLETELY MISCIBLE SYSTEMS [J].
ABRAMS, DS ;
PRAUSNITZ, JM .
AICHE JOURNAL, 1975, 21 (01) :116-128
[2]  
ADAMS S, 1994, MAPLETECH, V1, P68
[3]  
[Anonymous], 1992, SCI PROGRAMMING-NETH
[4]   CALCULATION OF SIMULTANEOUS CHEMICAL AND PHASE-EQUILIBRIA IN NONIDEAL SYSTEMS [J].
CASTIER, M ;
RASMUSSEN, P ;
FREDENSLUND, A .
CHEMICAL ENGINEERING SCIENCE, 1989, 44 (02) :237-248
[5]  
CHAR BW, 1991, MAPLE V LANGUAGE REF
[6]  
HEARST E, 1988, STEVENS HDB EXPT PSY, V2, P3
[7]   THE CALCULATION OF CRITICAL-POINTS [J].
HEIDEMANN, RA ;
KHALIL, AM .
AICHE JOURNAL, 1980, 26 (05) :769-779
[8]  
Larsen B. L., 1986, THESIS DANMARKS TEKN
[9]   THE ISOTHERMAL FLASH PROBLEM .1. STABILITY [J].
MICHELSEN, ML .
FLUID PHASE EQUILIBRIA, 1982, 9 (01) :1-19
[10]   THE ISOTHERMAL FLASH PROBLEM .2. PHASE-SPLIT CALCULATION [J].
MICHELSEN, ML .
FLUID PHASE EQUILIBRIA, 1982, 9 (01) :21-40