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.3.tar.gz (942.7 kB view details)

Uploaded Source

Built Distribution

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

moist_thermodynamics-0.0.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moist_thermodynamics-0.0.3.tar.gz
  • Upload date:
  • Size: 942.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.4

File hashes

Hashes for moist_thermodynamics-0.0.3.tar.gz
Algorithm Hash digest
SHA256 aff46ab7fee6519dc8fe57f7e57e293d029e21caaf985d8b9061d7625d105c1f
MD5 9bfcbb764b3902e3b9d862251b1218d3
BLAKE2b-256 2e22aca98ea4055c0bff157d6a6c3eaa1a7e37349eb29f9264d62b60274bded5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moist_thermodynamics-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18e8497fcf3bdaf17ae1961b286c3bdb4edb570bcd5231e9fd7b158b7d816e2b
MD5 201643992f1d7958db3a6e24ebbc5a50
BLAKE2b-256 d0459a6b53a48cbbca5dc9c9e267ce82734ef45d56a37814c25f239761398133

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