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.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

  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.2.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.2-py3-none-any.whl (151.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.1.2.tar.gz
Algorithm Hash digest
SHA256 113c02f4e1d20a678d18b201af3f9b286292fb5a6ee0c4fb8b16f0ee015af8d0
MD5 2106d95c3a058376aef17b4c6515f84d
BLAKE2b-256 fbd04e9786ab8eebd54a74b0d7790d3a9a5d525630264c2d7ec0881f8fceda18

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlercorrespondingstates-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac81cff99d9729a47e3adbdae21cb77d530c9da630ade39bb85bda63979f2bb0
MD5 4aa020758851aff1fca4ec049a0561ea
BLAKE2b-256 d5b8d3d3adda669a75475e210aee1fd768b8024ec3edd87f3e1a81f17fd2f8c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandlercorrespondingstates-0.1.2-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