{"id":299,"date":"2009-09-01T22:36:55","date_gmt":"2009-09-02T03:36:55","guid":{"rendered":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/?p=299"},"modified":"2011-06-13T11:26:42","modified_gmt":"2011-06-13T16:26:42","slug":"how-to-tune-the-eos-in-your-process-simulation-software","status":"publish","type":"post","link":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/2009\/09\/how-to-tune-the-eos-in-your-process-simulation-software\/","title":{"rendered":"How to Tune the EOS in your Process Simulation Software?"},"content":{"rendered":"<p>Process simulation computer programs are excellent tools for designing or evaluating gas processing plants, chemical plants, oil refineries or pipelines. In these simulation programs, most of the thermodynamic properties are calculated by an equation of state (EOS). The cubic equations of state can be regarded as the heart of these programs for generating the required properties. However, none of the equations of state is perfect and often some sort of tuning must be done prior to their applications. Some tuning is already done by researchers and has been embedded in the data base of these simulation programs. In dealing with non-standard or complex systems, the user should check the validity and accuracy of the selected thermodynamic package (i.e. EOS) in the simulation programs prior to attempting to run the desired simulation. Often the users find that tuning is required. This can be done by performing a series of vapor liquid equilibria (VLE) calculations such as dew point, bubble point or flash calculations and comparing the results with the field data or experimental data. If the accuracy is not within acceptable range, then the EOS should be tuned to improve its accuracy. The tuning can be done in several ways but the one most often used is adjusting\/regressing the binary interaction parameters between binary pairs in the mixture using the experimental PVT or VLE data.<\/p>\n<p>In this tip of the month (TOTM), we will demonstrate how the binary interaction parameters are tuned in a simulation program to improve the accuracy of a selected EOS. For this purpose, we will demonstrate how the accuracy of the bubble point pressure prediction of a ternary system of carbon dioxide, pentadecane, and hexadecane can be improved. We will use the Peng-Robinson (PR) [1] equation of state in ProMax [2] and the experimental VLE data published in the literature [3]. The same procedure can be used with any EOS in other simulation programs.<\/p>\n<p dir=\"ltr\"><strong>The PR EOS<\/strong><br \/>\nThe PR EOS [2] in terms of pressure (P), volume (v) and temperature (T) is defined as:<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/14.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-300\" title=\"1\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/14.png?resize=194%2C80\" alt=\"Equation 1\" width=\"194\" height=\"80\" \/><\/a><br \/>\nThe values of the parameters a and b must be determined in a special way for mixtures. Any equation, or series of equations, used to obtain mixture parameters is called a\u00a0<em>combination rule <\/em>or\u00a0<em>mixing rule<\/em>. The calculation, regardless of its exact form, is based on the premise that the properties of a mixture are some kind of weighted average summation of the properties of the individual molecules comprising that mixture.<br \/>\nThe mixing rules used in cubic equations of state (i.e., Peng-Robinson, Soave-Redlich-Kwong, and van der Waals) are:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/23.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-301\" title=\"2\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/23.png?resize=183%2C70\" alt=\"Equation 2\" width=\"183\" height=\"70\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/33.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-303\" title=\"3\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/33.png?resize=101%2C66\" alt=\"Equation 3\" width=\"101\" height=\"66\" \/><\/a><\/p>\n<p><em>Where: <\/em>a and b = the interaction energy and molecular size parameters for the mixture<br \/>\na<sub>i<\/sub>, b<sub>i<\/sub> = a and b parameters for component i in the mixture<br \/>\nx<sub>i<\/sub> = composition (mol fraction) for component i in the mixture<br \/>\nk<sub>ij<\/sub> = binary interaction parameter<br \/>\nn = number of component in the mixture<br \/>\nR = Universal gas constant<br \/>\nThe a<sub>i<\/sub> and b<sub>i<\/sub> for each component in the mixture are calculated in terms of critical temperature (Tc<sub>i<\/sub>), pressure (Pc<sub>i<\/sub>), and\u00a0 acentric factor (?<sub>i<\/sub>) as presented in equations 4 and 5.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/42.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-302\" title=\"4\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/42.png?resize=477%2C77\" alt=\"Equation 4\" width=\"477\" height=\"77\" srcset=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/42.png?w=477 477w, https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/42.png?resize=300%2C48 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/51.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-304\" title=\"5\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/51.png?resize=127%2C65\" alt=\"Equation 5\" width=\"127\" height=\"65\" \/><\/a><\/p>\n<p>Once a and b have been determined, the equation of state computations proceed as though a and b were for a pure component. With cubic equations of state the mixing rules sum the properties based on binary pairs.<\/p>\n<p>The binary interaction parameter, k<sub>ij<\/sub>, has no theoretical basis. It is empirical and is used to overcome deficiencies in the corresponding states theory or the basic model (equation of state). Binary interaction parameters are regressed from experimental data for a specific model and should be applied in that model only. In addition, k<sub>ij<\/sub>\u2019s can be determined from regression of PVT data or VLE data. This will result in different k<sub>ij<\/sub>\u2019s for the same binary mixture.<\/p>\n<p dir=\"ltr\"><strong>The Effect of k<sub>ij<\/sub> on Bubble Point Pressure Prediction<\/strong><br \/>\nTo study the effect of the k<sub>ij<\/sub>, the bubble point pressure for a binary mixture of CO<sub>2<\/sub> (1) and pentadecane (2) at 40 \u00b0C for a series of CO<sub>2<\/sub> mole % in the liquid phase were predicted using the PR EOS in ProMax. First, the default value of the binary interaction in the data base (DB) of ProMax in which k<sub>12<\/sub>=0.0 was used.\u00a0 The predicted results were compared with the experimental values and the average absolute percent deviation (AAPD) for eight data points calculated to be 41.06%. This AAPD was reduced to 1.64% when the binary interaction parameter of k<sub>12<\/sub>=0.112 was used. Figure 1 presents the effect of k<sub>12<\/sub> on the predicted bubble point pressure of CO2 and pentadecane mixture. This figure demonstrates clearly the role of k<sub>ij<\/sub> in improving the accuracy for bubble point pressure calculations. The improvement is substantial and the accuracy now is as good as the experimental data.<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/62.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-305\" title=\"6\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/62.png?resize=480%2C320\" alt=\"Figure 1\" width=\"480\" height=\"320\" srcset=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/62.png?w=480 480w, https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/62.png?resize=300%2C200 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p dir=\"ltr\">Similar improvement is observed when the binary interaction parameter, k<sub>12<\/sub>, was changed from zero, and the default value in data base (k<sub>12<\/sub>=DB) of ProMax, to 0.112 for the binary mixture of CO<sub>2<\/sub> (1) and hexadecane (2) at 40 \u00b0C. For this case the AAPDs were 40.65%, 3.64% and 1.26% for k<sub>12<\/sub>=0.0, k<sub>12<\/sub>=DB, and k<sub>12<\/sub>=0.112; respectively.<\/p>\n<p>For these two systems the liquid densities were also predicted and compared with the experimental values. For CO<sub>2<\/sub>and pentadecane binary system, the calculated AAPD for liquid densities were 6.10% and 6.36% for k<sub>12<\/sub>=0.0 and k<sub>12<\/sub>=0.112; respectively. Similar AAPD changes were observed for CO<sub>2<\/sub> and hexadecane binary mixture.<\/p>\n<div><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/72.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-306\" title=\"7\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/72.png?resize=480%2C322\" alt=\"Figure 2\" width=\"480\" height=\"322\" srcset=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/72.png?w=480 480w, https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/72.png?resize=300%2C201 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/div>\n<p dir=\"ltr\">Normally, the binary interaction parameters obtained from regressing binary mixture VLE data work well in multicomponent systems. This is demonstrated by using the same obtained kijs in a ternary mixture. The obtained binary interaction parameters of CO<sub>2<\/sub> + pentadecane and CO<sub>2<\/sub> + hexadecane were used without any further change to predict the bubble point pressure of the ternary mixtures of CO<sub>2<\/sub> (1) + pentadecane (2) + hexadecane (3). Figure 3 indicates these binary interaction parameters obtained from the individual binary mixtures improve the accuracy of EOS considerably. Similar to the case of binary mixtures, when the binary interaction parameters, k<sub>12<\/sub>, k<sub>13<\/sub>, were changed from zero, and the default value of ProMax data base (kijs=DB), to 0.112 for the ternary mixture of CO<sub>2<\/sub> (1) + pentadecane (2) + hexadecane (3) at 40 \u00b0C, the AAPDs were reduced from 40.99%\u00a0 and 25.16% to 1.75%, respectively.<\/p>\n<p dir=\"ltr\"><strong>Discussion and Conclusions<\/strong><br \/>\nIt was shown that the binary interaction parameters of an EOS can be adjusted\/tuned\/regressed to improve the accuracy of VLE calculations considerably. It was also shown that when the regressed binary interaction parameters based on the binary experimental VLE data used without further changes in a multicomponent system considerable improvement in accuracy may be obtained.<\/p>\n<p>It is a sound practice to check the accuracy of a selected thermodynamic package prior to running any simulation. However, experimental or field data are required to fulfill this task.<\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/82.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-307\" title=\"8\" src=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/82.png?resize=480%2C322\" alt=\"Figure 3\" width=\"480\" height=\"322\" srcset=\"https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/82.png?w=480 480w, https:\/\/i0.wp.com\/www.jmcampbell.com\/tip-of-the-month\/wp-content\/uploads\/2011\/03\/82.png?resize=300%2C201 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p dir=\"ltr\">To learn more about similar cases and how to run process simulations, we suggest attending our <a href=\"http:\/\/www.jmcampbell.com\/process-facility-fundamentals-g40.php\">G40(Process\/Facility Fundamentals)<\/a>, <a href=\"http:\/\/www.jmcampbell.com\/gas-conditioning-and-processing-g4.php\">G4 (Gas Conditioning and Processing)<\/a> and <a href=\"http:\/\/www.jmcampbell.com\/gas-conditioning-and-processing-special.php\">G5 (Gas Conditioning and Processing &#8211; Special) <\/a> courses.<\/p>\n<p dir=\"ltr\"><em>By: Dr. Mahmood Moshfeghian<\/em><\/p>\n<p dir=\"ltr\"><strong>References:<\/strong><\/p>\n<ol>\n<li>Peng, D.Y. and Robinson, D.B., \u201cA New Two-Constant Equation of State,\u201d\u00a0<strong><em>Ind. Eng. Chem., Fundam<\/em><\/strong>., Vol. 15, No. 1, P. 59, 1976.<\/li>\n<li>ProMax, V. 3.0, Bryan, Tex.: Bryan Research &amp; Engineering Inc, 2009.<\/li>\n<li>Tanaka, H., Yamaki, Y. and Kato, M., \u201cSolubility of Carbon Dioxide in Pentadecane, Hexadecane, and Pentadecane + Hexadecane,\u201d\u00a0<strong><em>J. Chem. Eng. Data,<\/em><\/strong>38,<strong> <\/strong>386-388,<strong><\/strong>1993.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Process simulation computer programs are excellent tools for designing or evaluating gas processing plants, chemical plants, oil refineries or pipelines. In these simulation programs, most of the thermodynamic properties are calculated by an equation of state (EOS). The cubic equations of state can be regarded as the heart of these programs for generating the required [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[],"coauthors":[],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-gas-processing"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1pQc4-4P","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":6,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":1497,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/posts\/299\/revisions\/1497"}],"wp:attachment":[{"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/tags?post=299"},{"taxonomy":"author","embeddable":true,"href":"http:\/\/www.jmcampbell.com\/tip-of-the-month\/wp-json\/wp\/v2\/coauthors?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}