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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9178ceeb465358c6e2d29800ef799505d30c6884c9506e57fcff310bdd569b0a
MD5 7707348954305879396f711123f226a4
BLAKE2b-256 291c891e76b9c828c8fae437ab557ebdf85d854c7c69e7d614f50567038a3805

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sandlercorrespondingstates-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28ed29bde5b695a3bc998da8813f65b35023b1451fb0cc85b67a531952a9d1de
MD5 8dc26c896c2b48c1f61045448c81b050
BLAKE2b-256 15aa8d7af7b8dc40bd3efa7d1eaa63a385dfbdd8ed0f74e84ffadf4166320929

See more details on using hashes here.

Provenance

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