Skip to content

It takes a system's volume and temperature and then uses Lee Kesler Correlation values to relate pressure to temperature and volume while assuming ideal gas laws. This is an iterative process to find an approximate pressure.

License

Notifications You must be signed in to change notification settings

awashmore/LeeKeslerCorrelation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeeKeslerCorrelation

In this project, I use C++ along with read-only csv files. The code features the use of regex iterators to traverse through the csv files. It also features a recursive function to recursively calculate pressure and find Z values. The code approximates the pressure at a given temperature for known critical pressure and critical temperature values.

To run the code on Windows:

g++ LeeKesler.cpp
./a.exe

To run the code on Linux:

g++ LeeKesler.cpp
./a.out

You will then put in every numerical value that is prompted for in this order:

  1. Critical Temperature in Kelvin
  2. Critical Pressure in Bar
  3. Fluid Omega Value
  4. System Temperature in Kelvin
  5. System Volume in cm^3/mol

About

It takes a system's volume and temperature and then uses Lee Kesler Correlation values to relate pressure to temperature and volume while assuming ideal gas laws. This is an iterative process to find an approximate pressure.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages