Skip to content

photochem v0.9.1

Choose a tag to compare

@Nicholaswogan Nicholaswogan released this 27 Sep 06:15
· 55 commits to main since this release

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_continuity and photochem.utils.make_thermo_continuous functions inspect and repair Shomate, NASA7, and NASA9 fits. They accept EvoAtmosphere reaction files, AdiabatClimate species files, and Equilibrate thermodynamic inputs. Species marked condensate: true are skipped because phase transitions need separate treatment.
  • vulcan2yaml now repairs gas thermodynamic joins by default and reports its corrections. Set repair_thermo_discontinuities=False to 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_data v0.3.4. Focused Fortran and Python tests cover thermodynamic evaluation, join validation, and repair.

Full Changelog: v0.9.0...v0.9.1