Skip to main content

Steam tables from Chemical, Biochemical, and Engineering Thermodynamics (5th edition) by Stan Sandler

Project description

Sandlersteam

Digitized steam tables from Sandler's 5th ed.

Sandlersteam implements a python interface to the steam tables found in Appendix III of Chemical, Biochemical, and Engineering Thermodynamics (5th edition) by Stan Sandler (Wiley, USA). It should be used for educational purposes only.

The interface operates similarly to the IAPWS steam tables (which you should use instead of these).

Installation

Sandlersteam is available via pip:

pip install sandlersteam

Usage example

Below we create a State object to define a thermodynamic state for steam at 100 deg. C and 0.1 MPa:

>>> from sandlersteam.state import State
>>> state1 = State(T=100.0,P=0.1)
>>> state1.h  # enthalpy in kJ/kg
2676.2
>>> state1.u  # internal energy in kJ/kg
2506.7
>>> state1.v  # volume in m3/kg
1.6958
>>> state1.s  # entropy in kJ/kg-K
7.3614

Specifying a state requires values for two independent state variables. The state variables recognized by sandlersteam are:

  • T temperature in C
  • P pressure in MPa
  • u specific internal energy in kJ/kg
  • v specific volume in m3/kg
  • h specific enthalpy in kJ/kg
  • s specific entropy in kJ/kg
  • x quality; mass fraction of vapor in a saturated vapor/liquid system (between 0 and 1)

Initializing a State instance with any two of these values set by keyword parameters results in the other properties receiving values by (bi)linear interpolation.

When specifying quality, a State objects acquires Liquid and Vapor attributes that each hold intensive, saturated single-phase property values. The property value attributes owned directly by the State object reflect the quality-weighted sum of the respective single-phase values:

>>> s = State(T=100,x=0.5)
>>> s.P
0.10135
>>> s.v
0.836972
>>> s.Vapor.v
1.6729
>>> s.Liquid.v
0.001044
>>> 0.5*(s.Vapor.v+s.Liquid.v)
0.836972

Release History

  • 0.1.2
    • Updated interpolators
  • 0.1.1
    • Updated pyproject.toml and README.md
  • 0.1.0
    • Initial version

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

sandlersteam-0.1.2.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

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

sandlersteam-0.1.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandlersteam-0.1.2.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for sandlersteam-0.1.2.tar.gz
Algorithm Hash digest
SHA256 943654e1a73b58c8b8e710d481a4abc5ca6fc809ee8aafb4c09e6b5a7271f20e
MD5 01d4a9227b1cb54f6a7c83ce97af9e96
BLAKE2b-256 1a1dd54c6e0f2e7036b76ee1ed6445dc2e0783a3b43b52ecbe50df0ecde370f7

See more details on using hashes here.

File details

Details for the file sandlersteam-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sandlersteam-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for sandlersteam-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2e1e15bfaf5db972b4f1a3b5609e30dcd9f1e5d8e033d2e215a851bf0a5b90
MD5 43bdbe18ae6a1b0a88a91bc4a449affa
BLAKE2b-256 7cc87e64381c320365a84e2e64b560fbd2e651921ddd28d84687e074929fba7d

See more details on using hashes here.

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