Thermodynamics.jl
Thermodynamics.jl copied to clipboard
A package containing a library of moist thermodynamic relations.
🤖 Beep boop. I am GabrieleBOT. 🤖 Please, check the [release notes](https://github.com/CliMA/ClimaModules/blob/main/NEWS.md) before merging this PR. Modifications might be required.
I was searching for some way to calculate the kinematic viscosity based on temperature and or humidity. Is there any plans to add a simplified viscosity law? I guess something...
This PR updates the readme, and provides an example. Closes #189.
This PR removes `print_warning` and `error_on_non_convergence`, which allow users to toggle how Thermodynamics does error handling. With this PR, those methods are removed, and instead users pass in objects that...
A more concise and descriptive "About" for this package is: > Thermodynamic relations for moist atmospheres. It's helpful to specify this package is for moist atmospheres. And the phrase "a...
`if` statements appear throughout this package. For example: https://github.com/CliMA/Thermodynamics.jl/blob/d73a83404eccbf5351722777dfa2f59800e5d106/src/relations.jl#L1290-L1311 In all cases except those in which one branch cannot be executed in some situation, `if` statements should be replaced by...
There are some ClimaAtmos functions that call several functions, resulting in several expensive calls. We could either cache the expensive variables in the thermo state, or we could define a...
This PR adds the use of PrecompileTools to precompile Thermodynamics functions.
We need a way to log (exactly once) variable values found outside of their valid ranges, and this needs to be GPU compatible. Right now, we use KernelAbstractions to print...