Skip to main content

correspondingstatesellaneous 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.0.tar.gz (148.7 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.0-py3-none-any.whl (151.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ec30636a5cd36b5754ec77149e2141499f387f00ba0c99d3fcfb8c21beb7ec0
MD5 43a235d57a5490b10a77bdd087a111c2
BLAKE2b-256 d4c8d65deb47b5717e47a00dceebaae3ad6be9612da8f1bb8a21052856f78ea0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0697643aadc1b6877dfac18332a7abe6a1aab38100850696c7d832f45692c67
MD5 7f3ad2e84ebf8c43edf32928ae8bcd41
BLAKE2b-256 4b05b03f6ae80b90d7868e21f1828b4b5e9271d2df97956f0c8d30e84b84104a

See more details on using hashes here.

Provenance

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