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 -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.4.1
    • help updated
  • 0.3.0
    • delta subcommand added
  • 0.2.0
    • StateReporter used
  • 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.4.1.tar.gz (149.5 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.4.1-py3-none-any.whl (152.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1656246a8b9ee88c2e69651fdc255f181f71fa6bd99c8f50623e46e25d5b53b9
MD5 e7ea14fd522ae3c3d9367bf2919e5663
BLAKE2b-256 eb356cd677d53a2080f2dd738e138788ccb17488ac02fa0cd482df69a0141818

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eddfc34e29470440a4da9392d0f125cbf8eaf79813b7caa311104ba11d5db503
MD5 0f8a3c10fceb705ada4bcf66e6528078
BLAKE2b-256 94c9fd27ed7adb3c2d21bf7d493f0f9c9986745944d44642391ad107b8095188

See more details on using hashes here.

Provenance

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