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.5.tar.gz (944.2 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.5-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for moist_thermodynamics-0.0.5.tar.gz
Algorithm Hash digest
SHA256 cc3688aef84818070767ffbb18df2d82f3b1b70f41c97f5d4ea3f90b659808fd
MD5 c54d6e68d22c9aea9a26a2a36a10897c
BLAKE2b-256 1aa70453c3d3ad08e2968b2d0ecbebff785d75887a32d8f3c62032e067f65846

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moist_thermodynamics-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 64b3a0fd5bede8d79f6971d2b0d5ecf4f79473ea4b33ceb57d4b16196cfcaf7a
MD5 573ac9f6178246dbc9880bc9bde46a65
BLAKE2b-256 b9b98cc27c58ccac0aaa056fe3fd966cf8e10d6fc0978b1f9ed10c81fee0d45c

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