Skip to main content

Python module for estimating thermodynamic properties of water in freshwater lakes.

Project description

Compute thermodynamic properties of lake water

travis-ci build status

The freshwater toolbox is a python package for estimating thermodynamic properties of water in freshwater bodies. Given temperature, salinity, and pressure, the freshwater toolbox enables the user to estimate the density, thermal expansion coefficient, specific heat capacity, speed of sound, temperature of maximum density, and freezing point of a parcel of lake water. The equation of state described in Chen and Millero (1986) [1] is implemented, which is suited for lake waters over the range of temperature, salinity, and pressure of 0–30 °C, 0–0.6 g/kg, and 0–180 bar, respectively.

Installation

The easiest way to install the freshwater toolbox is using pip:

pip install freshwater

You can also clone the source code from the github repository and install it with the following commands:

git clone https://github.com/danielrobb/freshwater
cd freshwater/
pip install .

Quick Start

Say you have a sample of lake water with temperature 10 °C, salinity 0.5 g/kg, and pressure 0 bar, and you would like to compute its density 𝜌 and thermal expansion coefficient 𝛼. This can be done with the following commands.

First, import the equation of state (Eos) class:

>>> from freshwater.eos import Eos

Second, Eos takes arguments of temperature, salinity and pressure:

>>> e = Eos(t=10, s=0.5, p=0)
>>> e.rho
1000.091963
>>> e.alpha
8.94332e-05

Please consult the online documentation for more details.

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

freshwater-0.1.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

freshwater-0.1.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file freshwater-0.1.5.tar.gz.

File metadata

  • Download URL: freshwater-0.1.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for freshwater-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9442b73be7ffc9cfeaf04285698d701b6ae08ea34c075f895fa73797878a1be1
MD5 c631fd5e973a4fb5fcb87a95827b4271
BLAKE2b-256 db96a116104cc5cabc85777661536cbe1de03a498ea5bf75edf58bdfe6853275

See more details on using hashes here.

File details

Details for the file freshwater-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: freshwater-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for freshwater-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc0ee4e45a2c886f649e22af28fa3dee69951d16e1906082ee90a2a9c54261d
MD5 8aab06f3c6d549e601ab3a6f48412bc1
BLAKE2b-256 157066c47e3a04e9dec799abece8d02d6c8e1fb86ff010ad7e9db600f64c1823

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page