https://github.com/clapeyronthermo/eossuperancillaries.jl

superancillary equations for cubics and PCSAFT

https://github.com/clapeyronthermo/eossuperancillaries.jl

Science Score: 26.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 9 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary

Keywords from Contributors

projection archival interactive profiles generic sequences genomics observability autograding hacking
Last synced: 11 months ago · JSON representation

Repository

superancillary equations for cubics and PCSAFT

Basic Info
  • Host: GitHub
  • Owner: ClapeyronThermo
  • License: mit
  • Language: Julia
  • Default Branch: main
  • Size: 5.02 MB
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • Open Issues: 2
  • Releases: 7
Created over 2 years ago · Last pushed 12 months ago
Metadata Files
Readme License

README.md

Build Status Dev project chat

EoSSuperancillaries

Superancillary equations to calculate saturation pressures and critical points for selected equations of state.

This is a Julia port of usnistgov/SAFTsuperanc

Introduction

Saturation calculation always involve iterative calculations. those calculations waste a lot of computing power. superancillaries provide direct equations that return some properties within Float64 accuracy.

It can calculate the following properties:

  • PC-SAFT: critical temperature, critical density, saturated densities.
  • van der Wals: saturated densities, saturated pressures.
  • Redlich-Kwong: saturated densities, saturated pressures.
  • Peng-Robinson: saturated densities, saturated pressures.
  • REFPROP reference equations: saturated densities, saturated pressures.

Usage

You can install EoSSuperancillaries by running the following commands on the julia REPL:

using Pkg Pkg.add(url="https://github.com/ClapeyronThermo/EoSSuperancillaries.jl")

``` using EoSSuperancillaries, Clapeyron model = PR("water") #model for comparison.

usage for cubics

a,b,_ = Clapeyron.cubic_ab(model,0.0,373.15)

direct calculation using superancillaries, takes about 150 ns

peq = prpsat(373.15,a,b) #96099.13581050883 vl,vv = prvlsat(373.15,a,b), prvvsat(373.15,a,b)

iterative calculation, takes about 2 μs

peq2,vl2,vv2 = Clapeyron.saturationpressure(model,373.15)[1] #96099.13581050835

usage for PC-SAFT

saft = PCSAFT("propane") m = saft.params.segment[1] ϵ = saft.params.epsilon[1] Tc = pcsafttc(m,ϵ) #150 ns Tc2 = Clapeyron.critpure(saft) #around 100 μs

usage for REFPROP reference fluids

water = refpropsuperanc("water") psat = refpsat(water,373.15) ```

Notes

This is not a library to calculate general properties of equations of state. in particular, you would need a PC-SAFT pressure implementation for calculation of saturation pressures and critical pressure.

While cubics can accept any alpha function for the calculation of a, PCSAFT superancillaries are more restricted, in the sense that they are fitted for components without association terms.

Superancillaries have problems on really low reduced temperatures, but those problems are caused by the artifacts of Float64 arithmetic. PCSAFT in particular has non-physical behaviour at low reduced temperatures, and at high reduced temperatures in conjuction with a high value of the segment length.

References

  1. Bell, I. H., & Deiters, U. K. (2021). Superancillary equations for cubic equations of state. Industrial & Engineering Chemistry Research, 60(27), 9983–9991. doi:10.1021/acs.iecr.1c00847
  2. Bell, I. H., & Deiters, U. K. (2023). Superancillary equations for nonpolar pure fluids modeled with the PC-SAFT equation of state. Industrial & Engineering Chemistry Research. doi:10.1021/acs.iecr.2c02916
  3. Bell, I. H. (2024). Superancillary equations for the multiparameter equations of state in REFPROP 10.0. Journal of Physical and Chemical Reference Data, 53(1). doi:10.1063/5.0191228

Owner

  • Name: Clapeyron
  • Login: ClapeyronThermo
  • Kind: organization

GitHub Events

Total
  • Watch event: 2
  • Issue comment event: 1
  • Pull request event: 1
  • Create event: 1
Last Year
  • Watch event: 2
  • Issue comment event: 1
  • Pull request event: 1
  • Create event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 37
  • Total Committers: 2
  • Avg Commits per committer: 18.5
  • Development Distribution Score (DDS): 0.054
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
longemen3000 l****0@g****m 35
dependabot[bot] 4****] 2

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 4
  • Total pull requests: 8
  • Average time to close issues: 1 day
  • Average time to close pull requests: about 19 hours
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 0.75
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 6
Past Year
  • Issues: 1
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
  • longemen3000 (2)
  • B-LIE (1)
  • JuliaTagBot (1)
Pull Request Authors
  • dependabot[bot] (6)
  • longemen3000 (2)
Top Labels
Issue Labels
Pull Request Labels
dependencies (6) github_actions (2)

Dependencies

.github/workflows/CI.yml actions
  • actions/checkout v4 composite
  • julia-actions/cache v1 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-buildpkg v1 composite
  • julia-actions/julia-docdeploy latest composite
  • julia-actions/julia-runtest v1 composite
  • julia-actions/setup-julia v1 composite
.github/workflows/CompatHelper.yml actions
.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite