Skip to content

markpicci/EOS

Repository files navigation

EOS

EOS for GAS and Water

This is a collection of Equation of State for GAS and Water written by others, for a detail explanation refer to Github pages

  • AGA 8 - Written by Eric W. Lemmon
  • GERG 2008 - Written by Eric W. Lemmon
  • Generalized Cubic - J. Res. NIST, 2016
  • IF97 - Ian Bell and the CoolProp team

I collect the codes in a simple application to use as a handy tool ready to use quickly, session is recorder in a log file.

Application start asking name of file to log the current section, extension ".log" is added to name. Next main menu is shown

image

Selecting "9" for water EOS IAPWS 97 only pressure and temperature are required.

Other EOS for gas requires to define the mixture selecting "m"

image

Item g - show available mixture in working directory Item l - load a saved mixture Item s - save mixture Item i - input a new mixture Item m - show active mixture Item c - show all mixture that are loaded and select active Item d - deleet ALL mixture item e - exit and return to main menu

I would like to note that binary interaction parameter for the Generalized Cubic Peng Robinson equation are quite rude and shall be revised, any contribution is most then welcome.

BUILD Main sub is included in EOS.CPP simple attach to your project all other files, I personally succesfully compile it using mingw and codeblock on wondows operative system. Other environment are not supported.

Licensed under the [GNU Lesser General Public License, Version 3.0 without any warranty or liability.