Skip to main content

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 -T 400 -P 0.5 -n methane   
Tr: 2.100840336134454
Pr: 0.10869565217391305
v: 0.06643327431492282
Hdep: 4.020845568856118
Sdep: 0.022707829240921282
defaults: {'Z': 0.9987607943819014, 'Hdep': -0.00504729598256478, 'Sdep': -0.005427301443814838}

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)
>>> for prop, value in result.items():
>>>     print(f"{prop}: {value}")
Tr: 2.100840336134454
Pr: 0.10869565217391305
v: 0.06643327431492282
Hdep: 4.020845568856118
Sdep: 0.022707829240921282
defaults: {'Z': 0.9987607943819014, 'Hdep': -0.00504729598256478, 'Sdep': -0.005427301443814838}

Release History

  • 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

  1. Fork it (https://github.com/cameronabrams/sandlercorrespondingstates/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. 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

sandlercorrespondingstates-0.1.1.tar.gz (148.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sandlercorrespondingstates-0.1.1-py3-none-any.whl (151.8 kB view details)

Uploaded Python 3

File details

Details for the file sandlercorrespondingstates-0.1.1.tar.gz.

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f8142e5c94264d46ccb036fbc5add1c5232f3aa3668bcec1e670ce641a585bb
MD5 7042fa31de5c0b2e81d3e06bdf214c66
BLAKE2b-256 2c967d10d1778f589c4fc925cf4fd9d52c57a6a2c78b1469c48785b7b36aaf3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlercorrespondingstates-0.1.1.tar.gz:

Publisher: release.yaml on cameronabrams/sandlercorrespondingstates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sandlercorrespondingstates-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b12442e45ca05d663fff3649c25760d762659a7658f9bf3aa563620bffc04a
MD5 43e70d0453554022a07577a2426b6c67
BLAKE2b-256 d5ef560e684f237c351fe7311374dfc7c78458f2bb002ae21bb25bf77dcf7200

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlercorrespondingstates-0.1.1-py3-none-any.whl:

Publisher: release.yaml on cameronabrams/sandlercorrespondingstates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page