Repository navigation
photochem v0.9.1
This patch release addresses discontinuities in gas thermodynamic fits that can destabilize photochemical integration, including the gas giant case that exposed the issue. It targets photochem_clima_data v0.3.4, which retains the repaired gas fits and expands aerosol optical-property coverage.
Changes
- Photochem now checks enthalpy, entropy, and heat capacity at every gas thermodynamic polynomial join when it reads a reaction mechanism. A significant jump produces an error identifying the species, temperature, and property, rather than allowing integration to proceed with discontinuous Gibbs energy.
- New
photochem.utils.check_thermo_continuityandphotochem.utils.make_thermo_continuousfunctions inspect and repair Shomate, NASA7, and NASA9 fits. They accept EvoAtmosphere reaction files, AdiabatClimate species files, and Equilibrate thermodynamic inputs. Species markedcondensate: trueare skipped because phase transitions need separate treatment. vulcan2yamlnow repairs gas thermodynamic joins by default and reports its corrections. Setrepair_thermo_discontinuities=Falseto retain the source fits.- Aerosol optical-property tables now cover 0.01–500 µm in radius and 10 nm–1,000 µm in wavelength. Photochem supports arbitrary radius-grid lengths and defaults omitted particle radii to 1 µm.
- The project and development environment now target
photochem_clima_datav0.3.4. Focused Fortran and Python tests cover thermodynamic evaluation, join validation, and repair.
Full Changelog: v0.9.0...v0.9.1