Examples¶
Working examples from the PhreeqPython notebooks, as live editors in the browser. Click Run (or Ctrl+Enter) on each cell, or Run all to execute every editor on the page in order. Editors on a page share a session.
The original Jupyter notebooks remain in examples/ if you prefer to run them locally.
General¶
- Functionality overview — create solutions, query properties, mix, copy
- Carbonic acid equilibrium — CO₂ / HCO₃⁻ / CO₃²⁻ vs pH
Equilibrium¶
- Ca–F and fluorite — fluoride vs calcium during feldspar dissolution
- Calcite dissolution — calcite vs CO₂ pressure, including mixing
- Gibbsite solubility — dissolved Al vs pH
- Aluminium drinking-water limit — pH where 0.2 mg/kgw Al is in equilibrium with gibbsite
- Gypsum on evaporation — gypsum precipitation as water is removed
Kinetics¶
- Quartz dissolution —
solution.kinetics()and SciPyodeint - Monod kinetics — methanogenic phenol biodegradation
Gas¶
- Solubilities — O₂, N₂, CH₄, and CO₂ in 4 M NaCl
- Gas-phase calculations — fixed-pressure vs fixed-volume gas after organic-matter reaction