Newton’s Method Cubic Equation of State C++ Source Code for Iterative Volume Computation
International Journal of Recent Engineering Science (IJRES) | |
|
© 2021 by IJRES Journal | ||
Volume-8 Issue-3 |
||
Year of Publication : 2021 | ||
Authors : Abdulhalim Musa Abubakar, Ahmad Abubakar Mustapha |
||
DOI : 10.14445/23497157/IJRES-V8I3P103 |
How to Cite?
Abdulhalim Musa Abubakar, Ahmad Abubakar Mustapha, "Newton’s Method Cubic Equation of State C++ Source Code for Iterative Volume Computation," International Journal of Recent Engineering Science, vol. 8, no. 3, pp. 12-22, 2023. Crossref, https://doi.org/10.14445/23497157/IJRES-V8I3P103
Abstract
This write-up enumerates the basic cubic equations of state used for pressure, volume and temperature determination for pure substances. It, however, focuses on developing a Dev C++ program for molar volume computation. Since molar volume in all cubic equations of state appears unsolvable due to their nonlinear nature, numerical solution methods, one of which is the Newton-Raphson method, can be utilized to estimate the root of such polynomial equations. The 257 lines of code running from Figure 1 to Figure 6, if executed, will return the molar volume to some certain iteration over a tolerance error specified. The program is a 4-in-1 calculator. The user is capable of working with a desired equation of state at a time. Users should note that the source code converges for either large or small errors specified.
Keywords
C++ program, Cubic equations of state, Equation of state, Newton's method, Iteration.
Reference
[1] Ulrich K. Deiters, and Ricardo Macías-Salinas, “Calculation of Densities from Cubic Equations of State: Revisited,” Industrial & Engineering Chemistry Research, vol. 53, no. 6, pp. 2529−2536, 2014.
[CrossRef] [Google Scholar] [Publisher Link]
[2] Pallab Ghosh, Numerical Methods with Computer Programs in C++, PHI Learning Private Limited, 2009.
[Google Scholar]
[3] David Mautner Himmelblau, and James B. Riggs, Basic Principles and Calculations in Chemical Engineering, New Jersey: Prentice Hall, 1982.
[Google Scholar]
[4] Zakia Nasri, and Housam Binous, “Applications of the Soave–Redlich–Kwong Equation of State Using Mathematica,” Journal of Chemical Engineering of Japan, vol. 40, no. 6, pp. 534–538, 2007.
[CrossRef] [Google Scholar] [Publisher Link]
[5] Zakia Nasri, and Housam Binous, “Applications of the Peng-Robinson Equation of State using MATLAB,” Chemical Engineering Education, vol. 43, no. 2, pp. 115-124, 2009.
[Google Scholar] [Publisher Link]
[6] Mohamed Eman Mansour, Equation of State, Inverse Heat Conduction and Heat Exchangers, Cairo: Intech Open, 2020.
[Google Scholar]
[7] Attila Mate, Introduction to Numerical Analysis with C Program, Brooklyn College of the City University of New York, 2014.
[Google Scholar] [Publisher Link]
[8] M.B. Oliveira et al., “Modeling Phase Equilibria Relevant to Biodiesel Production: A Comparison of gE Models, Cubic EoS, EoS-gE and Association EoS,” Industrial & Engineering Chemistry and Research, vol. 50, no. 4, pp. 2348-2358, 2011.
[CrossRef] [Google Scholar] [Publisher Link]
[9] Sashay Ramdharee, Edison Muzenda, and Mohamed Belaid, “A Review of the Equations of State and their Applicability in Phase Equilibrium Modeling,” International Conference on Chemical and Environmental Engineering, pp. 84-87, 2013.
[Google Scholar] [Publisher Link]
[10] S H. Ratnawati, “Improvement of the Redlich-Kwong Equation of State by Modification of Co-Volume Parameter,” Reaktor, vol. 13, no. 1, pp. 58-65, 2010.
[Google Scholar] [Publisher Link]