rgpmeta

RGP Table Generator with metastable approach

https://github.com/properallan/rgpmeta

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: springer.com
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

RGP Table Generator with metastable approach

Basic Info
  • Host: GitHub
  • Owner: properallan
  • Language: Python
  • Default Branch: main
  • Size: 1.01 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • Open Issues: 1
  • Releases: 0
Created over 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme Citation

README.md

RGP Table Generator v.0

  • Support for CoolProp and REFPROP backends
  • Able to crate a liquid-like metastable region
  • Capable of replacing saturation curve with spinodal line
  • Sucessfully tested for CO2

Dependencies

  • CoolProp==6.4.2dev
  • matplotlib==3.5.1
  • numpy==1.22.1
  • pandas==1.4.0
  • scipy==1.7.3

Issues

  • Metaestability for mixtures only works with REFPROP backend (should pass the reprop library path)
  • Metaestability require large number os discrete points for pressure and temperature.
  • HEOS backend(CoolProp) unable to run for mixtures.

Installation

Clone this git repository

console git clone https://github.com/properallan/RGPmeta.git

Recomended to create a and enviroment with Python 3.8

console conda create -n rgp python=3.8

Activate the environemnt

console conda activate rgp

Move to root path of git repository

console cd RGPmeta

You are ready to go! (TO RUN USING REFPROP backend, the path to proprietary libraries is set using a command line option -rp /home/ppiper/MEGA/refprop)

Sample command to generate a RGP table for CO2

python3 RGP.py -f CO2 -b HEOS -p 0.518e6,30e6 -T 230,520 -np 100 -nT 100 -ns 100 -mo 1 -sat True -me True -sp True -o out.rgp

python3 should match the python 3 interpreter alias of your operational system

Mixtures only working with REFPROP backend, in this case fluid name should be given as the AbstractState string standard, and mass fractions as a list 0,1, example:

python3.8 RGP.py -f 'CO2&Methane' -mf 0.95,0.05 -b REFPROP -p 1e6,20e6 -T 250,500 -rp /home/ppiper/MEGA/refprop -nT 100 -np 100 -me True -op ./outputs/ -o CO2_50_50_COOLPROP.rgp

Command Line Options

optional arguments: -h, --help show this help message and exit -f , --fluid CoolProp fluidname -b , --backend CoolProp backend e.g. (HEOS, REFPROP) -rp , --refprop_path REFPROP install path -p , --pressures Pressure range for the RGP table -T , --temperatures Temperature range for the RGP table -np , --n_pressures Number of points to discretize pressure range -nT , --n_temperatures Number of points to discretize temperature range -o , --output_file Output file name -me , --metastable Turn metastable region on and off e.g. (True, False)

References

https://link.springer.com/article/10.1134/S0036024406040030 https://github.com/CoolProp/CoolProp/blob/master/doc/notebooks/Maxwell_Loop.ipynb

Owner

  • Name: Allan Moreira de Carvalho
  • Login: properallan
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Carvalho
    given-names: Allan Moreira
    #orcid: https://orcid.org/1234-5678-9101-1121
  - family-names: Matos
    given-names: Julia Silva
title: "Table Generator for Real Gas Properties with Metastable Approach"
version: 0.0.1
#doi: 10.5281/zenodo.1234
date-released: 2022-07-20
url: "https://github.com/properallan/RGPmeta"

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1