Skip to main content

Cubic equations of state from Chemical, Biochemical, and Engineering Thermodynamics (5th edition) by Stan Sandler

Project description

Sandlercubics

Digitized cubic equations of state from Sandler's 5th ed.

Sandlercubics implements a python interface to the cubic equations of state found in Chemical, Biochemical, and Engineering Thermodynamics (5th edition) by Stan Sandler (Wiley, USA). It should be used for educational purposes only.

Currently only the generalized vdW and generalized Peng-Robison equations for pure substances are implemented.

Installation

sandlercubics is available via pip:

pip install sandlercubics

Usage

Command-line interface

A volumetric calculation on methane using Peng-Robninson:

$ sandlercubics state -T 400 -P 0.5 -eos pr -n methane
At T=400.0 K and P=0.5 MPa, the molar volume is 0.0066279 m^3/mol

API

Below we create a PengRobinsonEOS object to reproduce the above calculation:

>>> from sandlercubics.eos import PengRobsinsonEOS
>>> from sandlerprops.properties import PropertiesDatabase
>>> db = ProperitesDatabase()
>>> m = db.get_compound('methane')
>>> s1 = PengRobinsonEOS(Tc=m.Tc, Pc=m.Pc/10, omega=m.Omega)
>>> s1.T = 400
>>> s1.P = 0.5
>>> s1.v.item()  # it is a np float
0.0066279171348771915

Release History

  • 0.1.1
    • fixed erroneous thank-you message
  • 0.1.0
    • Initial version, implements vdw and PengRobinson

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/sandlercubics/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

sandlercubics-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

sandlercubics-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandlercubics-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sandlercubics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cce22c385ee70e931d9a5c5a956958f58809abd448a6358714479e297df3fff0
MD5 e7b93056aaf7be51cd97c320886d52f5
BLAKE2b-256 6487364ebb10dd4f146539c59dfa28bcc8316b01d9079588636b91321f631b5a

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on cameronabrams/sandlercubics

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

File details

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

File metadata

  • Download URL: sandlercubics-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sandlercubics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d12f62865007d8a0587b7c768667513f12fce141bf3259b14189760e511568e5
MD5 9c0c0734735f4b9b942772a856bbe972
BLAKE2b-256 5290fe769dfce130625b5b598c866942de61f9418554edbdf1dfd180b9ddb204

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on cameronabrams/sandlercubics

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