Skip to main content

Constants and functions for the treatment of moist atmospheric thermodynamics.

Project description

moist_thermodynamics

Description

This repository contains a python module providing constants and functions used for the analysis of moist atmospheric thermodynamic processes. An effort is made to be as accurate as possible given the assumption of a Rankine-Kirchoff fluid, i.e., zero condensate volume, perfect mixtures of perfect gases, perfect liquids and constancy of specific heats.

In some cases even more exact treatments will be desired, for instance the more accurate specifications of the saturation vapor pressure are not consistent with the assumptions of a Rankine-Kirchoff fluid, but are useful references. Those more generally interested in the most accurate treatment are referred to the IAPWS, or the TEOS libraries, e.g., their sea-ice-air library is available on github

The functionality is not meant to be exhaustive, but to provide the basic tools to treate moist thermodynamics in a consistent manner and in ways that allow the tools to be easily incorporated into other programmes, or used as references for simpler more analytically tractable approximations.

Usage

Jupyter notebooks are provided in the examples directory to provide illustrative use cases and further information pursuant to choices made in structuring the code, and the functionality it enables. This includes analyses used in (Marquet and Stevens (2021).

References

Marquet, P., & Stevens, B. (2022). On Moist Potential Temperatures and Their Ability to Characterize Differences in the Properties of Air Parcels, Journal of the Atmospheric Sciences, 79(4), 1089-1103. (open access pdf version)

Romps, D.M. (2021), The Rankine–Kirchhoff approximations for moist thermodynamics. QJR Meteorol Soc, 147: 3493-3497. https://doi.org/10.1002/qj.4154

Siebesma, A., Bony, S., Jakob, C., & Stevens, B. (Eds.). (2020). Clouds and Climate: Climate Science's Greatest Challenge. Cambridge: Cambridge University Press. doi:10.1017/9781107447738

Contributing

Code contributions are welcome. Please suggest changes on a branch and make a merge request. Format all changes using Black, and test docstrings using pytest before making merge requests.

Authors and acknowledgment

The code was written by Bjorn Stevens with contributions from Lukas Kluft and Tobias Kölling. LK and TK also are thanked for expert input in setting up the repository and on how best to structure and code the libraries in ways that enourage intuitive use. They, also along with Jiawei Bao, Geet George and Hauke Schulz are thanked for their feedback on the thermodynamic analysis.

License

Copyright 2016-2021 MPI-M, Bjorn Stevens

Code subject to BSD-3-C, SPDX short identifier: BSD-3-Clause, see license file

Contact

bjorn.stevens@mpimet.mpg.de

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

moist_thermodynamics-0.0.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

moist_thermodynamics-0.0.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file moist_thermodynamics-0.0.1.tar.gz.

File metadata

  • Download URL: moist_thermodynamics-0.0.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for moist_thermodynamics-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0ae8b8dfbfd5a7ab065c1b80960b53a796bc1905f04da94e1d40bd20101de52e
MD5 d1461d5c1487ed0fd132d5f3d28e2269
BLAKE2b-256 77c4720743f213ffe09ad45906c526463db3291e38c9825b95ff0705f1d0bab3

See more details on using hashes here.

Provenance

The following attestation bundles were made for moist_thermodynamics-0.0.1.tar.gz:

Publisher: package.yml on mpimet/moist_thermodynamics

Attestations:

File details

Details for the file moist_thermodynamics-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for moist_thermodynamics-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9921f20051738e6598cb3bbc4d88f32354e3d0f78a381fa23b0d52b0e6e5b60
MD5 3b973ca454479f2469b327a63229f75d
BLAKE2b-256 02b845f87aa11a01cb0fb2b4686f7fd1dc7e22c37576256c51382bcde4c253c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for moist_thermodynamics-0.0.1-py3-none-any.whl:

Publisher: package.yml on mpimet/moist_thermodynamics

Attestations:

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