Skip to content

Python Implementation of AGA8 DETAIL method for calculating gas compressibility factor, Z from P, T and gas composition.

Notifications You must be signed in to change notification settings

Dseal95/AGA8-Detail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AGA8 Detail

Python Implementation of AGA8 DETAIL method for calculating gas compressibility factor, Z from P, T and gas composition.

Notes:

  • Code refactored from the C++ DETAIL code in file Detail.cpp from this repository - https://github.com/usnistgov/AGA8

  • Implementation is tested on the same test inputs used in the C++ code, see main.py input P, T and x.

  • Python implementation of DensityDetail() and PropertiesDetail().

Setup

  1. create .venv using the instructions inside the setup_venv.sh script OR run the shell script using the bash cmd: sh setup_venv.sh
  2. run command pip install -e ./src to install the AGA8 package (in editable mode).
  3. Choose what inputs, P, T and x you want to run the AGA8 Detail method on and add them to the main.py
  4. Run main.py and output Z and approximated P are printed to the screen

Testing

All tests for AGA8Detail are inside the /tests folder. The tests cases are split into 2:

About

Python Implementation of AGA8 DETAIL method for calculating gas compressibility factor, Z from P, T and gas composition.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published