Corresponding states utilities from Chemical, Biochemical, and Engineering Thermodynamics (5th edition) by Stan Sandler
Project description
Sandlercorrespondingstates
Corresponding states utilities from Sandler's 5th ed.
Sandlercorrespondingstates implements a python interface to a corresponding states calculations using charts from Chemical, Biochemical, and Engineering Thermodynamics (5th edition) by Stan Sandler (Wiley, USA). It should be used for educational purposes only.
Installation
Sandlercorrespondingstates is available via pip:
pip install sandlercorrespondingstates
Usage
Command-line
$ sandlercorrespondingstates state -n methane -P 7.5 -T 400
T = 400.00 K
P = 7.50 mpa
Tc = 190.40 K
Pc = 4.60 mpa
Tr = 2.10
Pr = 1.63
v = 0.000435 m3/mol
Z = 0.98
Hdep = -438.15 J/mol = -0.55 cal/mol-K
Sdep = -1.13 J/mol-K = -0.27 cal/mol-K
API
>>> from sandlercorrespondingstates.charts import CorrespondingStatesChartReader
>>> from sandlermisc.gas_constant import GasConstant
>>> from sandlerprops.properties import PropertiesDatabase
>>> db = PropertiesDatabase()
>>> component = db.get_compound('methane')
>>> cs = CorrespondingStatesChartReader()
>>> Rpv = GasConstant("bar", "m3")
>>> result = cs.dimensionalized_lookup(T=400, P=0.5, Tc=component.Tc, Pc=component.Pc/10, R_pv=Rpv)
>>> print(result.report())
T = 400.00 K
P = 7.50 mpa
Tc = 190.40 K
Pc = 4.60 mpa
Tr = 2.10
Pr = 1.63
v = 0.000435 m3/mol
Z = 0.98
Hdep = -438.15 J/mol = -0.55 cal/mol-K
Sdep = -1.13 J/mol-K = -0.27 cal/mol-K
Release History
- 0.3.0
deltasubcommand added
- 0.2.0
StateReporterused
- 0.1.2
- fixed messaging errors
- 0.1.0
- Initial release
Meta
Cameron F. Abrams – cfa22@drexel.edu
Distributed under the MIT license. See LICENSE for more information.
https://github.com/cameronabrams
Contributing
- Fork it (https://github.com/cameronabrams/sandlercorrespondingstates/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sandlercorrespondingstates-0.3.0.tar.gz.
File metadata
- Download URL: sandlercorrespondingstates-0.3.0.tar.gz
- Upload date:
- Size: 149.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9178ceeb465358c6e2d29800ef799505d30c6884c9506e57fcff310bdd569b0a
|
|
| MD5 |
7707348954305879396f711123f226a4
|
|
| BLAKE2b-256 |
291c891e76b9c828c8fae437ab557ebdf85d854c7c69e7d614f50567038a3805
|
Provenance
The following attestation bundles were made for sandlercorrespondingstates-0.3.0.tar.gz:
Publisher:
release.yaml on cameronabrams/sandlercorrespondingstates
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sandlercorrespondingstates-0.3.0.tar.gz -
Subject digest:
9178ceeb465358c6e2d29800ef799505d30c6884c9506e57fcff310bdd569b0a - Sigstore transparency entry: 786203388
- Sigstore integration time:
-
Permalink:
cameronabrams/sandlercorrespondingstates@3f79cc493dbcff454983303c81c0e79b8b6cdd28 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cameronabrams
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@3f79cc493dbcff454983303c81c0e79b8b6cdd28 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sandlercorrespondingstates-0.3.0-py3-none-any.whl.
File metadata
- Download URL: sandlercorrespondingstates-0.3.0-py3-none-any.whl
- Upload date:
- Size: 152.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28ed29bde5b695a3bc998da8813f65b35023b1451fb0cc85b67a531952a9d1de
|
|
| MD5 |
8dc26c896c2b48c1f61045448c81b050
|
|
| BLAKE2b-256 |
15aa8d7af7b8dc40bd3efa7d1eaa63a385dfbdd8ed0f74e84ffadf4166320929
|
Provenance
The following attestation bundles were made for sandlercorrespondingstates-0.3.0-py3-none-any.whl:
Publisher:
release.yaml on cameronabrams/sandlercorrespondingstates
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sandlercorrespondingstates-0.3.0-py3-none-any.whl -
Subject digest:
28ed29bde5b695a3bc998da8813f65b35023b1451fb0cc85b67a531952a9d1de - Sigstore transparency entry: 786203399
- Sigstore integration time:
-
Permalink:
cameronabrams/sandlercorrespondingstates@3f79cc493dbcff454983303c81c0e79b8b6cdd28 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cameronabrams
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@3f79cc493dbcff454983303c81c0e79b8b6cdd28 -
Trigger Event:
push
-
Statement type: