Changelog
---------

Release v3.0.0 (November 29, 2026) includes
  - Compatibility with Python 3.10-3.15.
  - Compatibility with NumPy 2.
  - Changed: V and H give totals based on number_of_moles. Use molar_* properties for per-mole values.
  - Changed: Averaging schemes now apply only to effective bulk and shear moduli (K_eff and G_eff).
  - Changed: Replaced geotherm functions with classes, including a class for adiabatic geotherms.
  - Changed: Isothermal equations of state now use F_0, the reference Helmholtz energy, in place of E_0.
  - Changed: Renamed BM2 to BM3Shear2 and brought the Birch-Murnaghan equations of state into one module.
  - Changed: Removed "free" from energy method and argument names, and fixed entropy in solution basis changes.
  - Changed: Renamed profile comparison functions, corrected the L2 norm, and fixed basis completion.
  - Changed: Renamed the solution model's formulas to site_formulae and removed solution_formulae.
  - Changed: Allowed a wider range of NumPy 2 and Numba versions.
  - Changed: Added a fallback for environments without Numba.
  - Changed: The de Koker-Stixrude solid equation of state defaults to the original code's Gruneisen model.
  - Changed: Anharmonic entropy and heat capacity now depend on temperature relative to the Debye temperature.
  - Changed: Use Mineral to get properties such as heat capacity at constant volume and the Gruneisen parameter.
  - Changed: Low-resolution Perple_X tables use a fixed refinement grid.
  - New: Added spherical self-consistent averaging of bulk and shear moduli for isotropic and anisotropic phases.
  - New: Added the Wu-Wentzcovitch property modifier for pressure-dependent excess volume.
  - New: Added linear composition constraints for equilibrium and relaxation, and corrected the HHPH2013 models.
  - New: Added the Pitzer-Sterner water equation of state, HP636, and the Green and Weller igneous datasets.
  - New: Added the Hyperelastic class for materials under large non-hydrostatic stresses.
  - New: Added differential evolution and adaptive damping options for nonlinear fitting.
  - New: Composition objects support addition, subtraction, multiplication, and division.
  - New: Added expand_strains to convert contracted strains to full tensors.
  - New: Added optional rotation when converting cell vectors to cell parameters.
  - New: Added polar decomposition of deformation gradients for anisotropic calculations.
  - New: Added the Anzellini (2013), Katsura (2022), and Plesa (2022) geotherms.
  - New: The equilibrate function now accepts RelaxedComposite objects.
  - New: FunctionSolution supports excess Gibbs energies that depend nonlinearly on pressure and temperature.
  - New: Added RelaxedComposite for equilibration and partial or full relaxation of assemblages.
  - New: Allow mineral site occupancies to vary during optimal thermobarometry fits.
  - New: Added optimal thermobarometry to estimate pressure and temperature from mineral assemblages.
  - New: Allow users to set the threshold for active constraints in the nonlinear solver.
  - New: Allow separate equilibration tolerances for pressure, temperature, phase amounts, and compositions.
  - New: Added a simplified Wu-Wentzcovitch anharmonic thermal model.
  - New: Added a lognormal anharmonic thermal model and improved ModularMGD model validation.
  - New: Added a modular Mie-Gruneisen-Debye equation of state with optional electronic and anharmonic terms.
  - New: Allow polygon masks to exclude regions from Perple_X phase diagrams.
  - New: Added a tool to create high-resolution phase diagrams with Perple_X.
  - New: Perple_X table calculations can be split across multiple input files.
  - New: Equations of state can be fitted using volume and temperature as independent variables.
  - New: Added a shared base class for isothermal equations of state.
  - New: Nonlinear fits can include correlated Gaussian priors on parameters.
  - New: Added a workflow to turn Perple_X calculations into ASPECT property tables along an adiabat.
  - New: Added a workflow to generate Perple_X property tables.
  - New: Added seismic model exports for AxiSEM and MINEOS.
  - New: Added example scripts and a spreadsheet from the SPOCK equation-of-state paper.
  - New: Added a hyperelastic example comparing different definitions of stress rate.
  - New: Added an example of anharmonicity in a modular equation of state.
  - Improved: Prepared for Python 3.15 and made BurnMan imports faster on that version.
  - Improved: Updated the stishovite and post-stishovite datasets, models, and plots.
  - Improved: Composition addition now accepts negative components.
  - Improved: The SLB datasets use NIST atomic masses.
  - Improved: Added checks for valid anisotropic elastic inputs.
  - Improved: Layer and planet pressure and gravity calculations are more robust at density jumps.
  - Improved: The Anderson-Ahrens iron equation of state now uses analytical derivatives.
  - Improved: Replaced finite differences with direct matrix exponential derivatives in anisotropic calculations.
  - Improved: Expanded the API reference for tools and utilities.
  - Improved: Reworked the class documentation with clearer explanations and examples.
  - Improved: Reorganized the documentation so material classes, examples, and API references are easier to find.
  - Improved: The relaxation example compares iron-magnesium exchange, phase changes, and full relaxation.
  - Improved: Documented the theory behind relaxed thermodynamic properties.
  - Improved: The spin-transition example uses RelaxedSolution and calculates properties along a geotherm.
  - Improved: Thermobarometry can account for pressure and temperature uncertainties and prior estimates.
  - Improved: Split optimal thermobarometry into reusable steps for reaction and fit calculations.
  - Improved: Equilibration retries difficult calculations with a larger cutoff for small site fractions.
  - Improved: Scaled solver variables consistently to make equilibration more stable.
  - Improved: Tightened numerical thresholds for equilibrium calculations.
  - Improved: Tightened equilibrium precision and updated the SLB2024 benchmarks.
  - Improved: Added docstrings for the SLB2024 and Holland-Powell solutions to show their model names.
  - Improved: Numbered Perple_X phase fields that are too small for their full labels.
  - Improved: Added clearer error messages when nonlinear fitting fails.
  - Improved: Replaced numerical derivatives in Brosh CALPHAD with analytical derivatives.
  - Improved: Setting state by volume is faster for minerals with a direct pressure-from-volume equation.
  - Fix: Updated the SLB2011 converter to generate code for the current mineral and solution classes.
  - Fix: Corrected the SLB2011 Landau entropy reference to match the published dataset.
  - Fix: Total properties now scale with sample amount across materials, composites, layers, and planets.
  - Fix: Corrected mineral volume solves near equation-of-state limits and with volume modifiers.
  - Fix: Improved reference-state pressure solves and corrected fitting plots and anisotropic initialization.
  - Fix: Corrected energies for isothermal equations of state with nonzero reference pressure.
  - Fix: Corrected which properties SolutionFit uses to calculate derivatives.
  - Fix: Corrected tensor indexing in the anisotropic equation of state.
  - Fix: Corrected bounded fitting, uncertainty estimates, and handling of volume modifiers.
  - Fix: Corrected low-temperature Brosh CALPHAD properties and magnetic parameters in SE_2015.
  - Fix: Corrected the units of the SLB2022 Landau volume term.
  - Fix: Corrected derivatives of the SLB2022 Landau property modifier.
  - Fix: Corrected the planet's isothermal compressibility and improved seismic profile gradients.
  - Fix: Improved SLB volume solves and corrected low-temperature magnetic energy and stishovite softening.
  - Fix: Corrected tensor rotations in non-orthotropic minerals and solutions.
  - Fix: Wave velocities can be calculated when eigenvectors have only tiny imaginary parts.
  - Fix: Corrected sodium endmember formulas in HHPH2013 and improved phase diagram and elastic property plots.
  - Fix: Corrected the enthalpy calculation in ElasticSolution.
  - Fix: Restored the PDF documentation build.
  - Fix: Improved how the Newton solver regularizes difficult steps.
  - Fix: The nonlinear solver detects and reports singular Jacobians.
  - Fix: The nonlinear solver reports failures when following a constraint.
  - Fix: Corrected volume derivatives in equilibration and added a residual-based convergence check.
  - Fix: Improved equilibrium convergence when the solver's Jacobian is ill-conditioned.
  - Fix: Correctly read mixed-valence site species when converting ThermoCalc solution models.
  - Fix: Existing outputs are protected when creating low-resolution Perple_X tables.
  - Fix: Corrected the parsing of chemical formula terms outside crystallographic sites.

Release v2.1.0 (November 28, 2024) includes
  - New: Added MACAW and SPOCK Equations of State
  - Changed: pycddlib returned to optional dependency as hard to install on Windows.

Release v2.0.0 (November 14, 2024) includes
  - Compatibility with Python 3.12.
  - Compatibility with new versions of numpy (1.26.0), scipy (1.14.0),
    cvxpy (1.6.0), pycddlib (3.0.0), matplotlib (3.9.0).
  - New: The evaluate method now allows users to specify different compositions
    as well as pressures and temperatures.
  - New: Non-orthotropic anisotropy in AnisotropicMaterial.
  - New: Addition of an AnisotropicSolution class.
  - New: Addition of a RelaxedSolution class, that calculates second derivatives
    while allowing isochemical variables to change to minimise the
    thermodynamic potential.
  - New: The Stixrude and Lithgow-Bertelloni (2024) dataset.
  - New: The Holland, Green and Powell (2018) solution models.
  - New: A large range of published pressure calibrants (many thanks to Robert Farla).
  - Fix: The generic PolynomialSolution model now has correct second derivatives.
  - Improved: Consistent naming of isentropic properties (rather than adiabatic).
  - Improved: Explicit specification of Reuss (isostress) properties.

Release v1.2.0 (July 1, 2023) includes
  - Two new helper functions:
    :func:`burnman.tools.chemistry.reactions_from_stoichiometric_matrix`
    :func:`burnman.tools.chemistry.reactions_from_formulae`.
    These functions generate a complete list of reactions
    (forward and reverse) from either the stoichiometric matrix
    (a 2D numpy array containing the amount of component j in phase i),
    or from a list of formulae
    (as strings or dictionaries of elemental amounts).
  - Solution and ElasticSolution objects are now instantiated
    with a SolutionModel object as a solution_model parameter.
    The use of the solution_type parameter has been removed
    completely, along with all of the optional parameters that were
    originally passed as parameters to SolutionModel.
  - A generalised PolynomialSolution class. The
    non-ideal excesses in this model are polynomial functions
    of composition. This class can deal with arbitrarily high powers in endmember
    proportions. However, because the class internally converts the
    list of lists to numpy arrays, high powers of solutions with a
    large number of endmembers will create very large
    arrays (with order n_endmembers^(highest power) elements).
    This may significantly slow down calculations.
  - Five new property modifier formulations,
    which can be specified with the names "debye", "debye_delta",
    "einstein", "einstein_delta" and "landau_slb_2022". These
    are based on the Debye and Einstein models of thermal energy
    and the Landau model of Stixrude and Lithgow-Bertelloni (2022).
    The heat capacity ("debye", "einstein")
    or entropy ("debye_delta", "einstein_delta")
    are based on the heat capacity of the respective thermal model,
    and reach a maximum at high temperature. The
    excess energy, entropy and heat capacity of these four modifiers
    are all zero at 0 K, and the excess volume is always zero.
  - An implementation of the SLB2022 dataset.
  - This version is associated with acceptance of the JOSS paper.

Release v1.1.0 (September 14, 2022)
  - the equilibrate function now solves problems where the bulk composition is allowed to vary
  - the solution model formulation has been updated to allow site multiplicities to vary linearly with endmember proportions (as in a Temkin model)
  - a new BoundaryLayerPerturbation class has been implemented to enable thermal perturbations to be added to planetary layers
  - a new equation of state, BroshCalphad has been implemented, following Brosh et al. (2007)
  - the Composite class now has a chemical_potential method
  - a new Calibrant class, that enables users to calculate pressure/volume as a function of volume/pressure and temperature, also allowing propagation of uncertainties
  - a new eos fitting function, fit_XPTp_data, that enables fitting of solution model parameters to experimental data
  - Material classes now have a method called set_state_with_volume
  - a new ElasticSolution class that defines excess solution properties as a function of the volume and temperature of the endmembers, rather than pressure and temperature
  - excess properties of solution models can now be defined using a function, rather than by hardwired functional forms


Release v1.0.1 (October 6, 2021)
  - Adds missing optimize submodule.

Release v1.0.0 (October 6, 2021)
  - python 3.7+ compatibility
  - major restructuring of source directory
  - documentation overhaul
  - a new equilibrate function for chemical equilibration of Composite materials.
  - new composition fitting functions (solution and bulk composition)
  - new MaterialPolytope class
  - implementation of melt phases from the the Holland and Powell (2011) and Holland et al. (2018) datasets
  - ternary terms added to the subregular solution model

Release v0.10.0 (August 2, 2021)
  - python 3.5+ compatibility
  - a new Composition class for compositional processing
  - a new CombinedMineral class
  - a new AnisotropicMaterial class
  - new Planet and Layer classes for mass, moment of inertia and seismic velocity calculations
  - new nonlinear fitting routines and a nonlinear solver
  - new static equations of state: Morse potential, Reciprocal K-prime
  - new thermal equations of state: Anderson and Ahrens (metallic iron), de Koker and Stixrude, Ramo and Stixrude (solids and liquids)
  - a large number of new minerals and solid solutions in the databases
  - a large number of new examples
  - updated documentation

Release v0.9.0 (April 25, 2016)
  - major documentation overhaul
  - new tutorials
  - huge performance improvements by caching property values
  - python 3 compatibility
  - gibbs free energy computation
  - new SolidSolution class
  - added ideal, symmetric, asymmetric and subregular solution model
    formulations
  - computation of chemical potentials
  - updated ipython notebooks
  - new seismic models
  - added EoS fitting functions
  - using jit compilation if available
  - additional equations of state: Vinet, BM4, ...
  - a large number of new minerals in the databases
  - much better test coverage

Release v0.7 (June 24, 2014)
  - Cleanup and rewrite of the mineral/composite feature
  - online html documentation
  - Scripts to reproduce the figures from Cottaar, Heister, Rose and
    Unterborn (2014) can be found in misc/.
  - Mineral physical libraries from Murakami (2013) and Zhang et al.
    (2013) are included.
  - Pressure-depth conversion following Cammarano (2013) are included.

Release v0.5 (October 28, 2013)

- New example for absolute beginners (October 28, 2013)
  Added an example script for beginners to burnman, as well as people
  less familiar with python scripts.  Goes through all of the basic
  steps of creating a rock, calculating seismic properties, and plotting
  them

- Nested Composites (October 17, 2013)
  You can now nest composites and implement dynamic composites that reduce to
  different sets of minerals depending on T,p. (no example yet)

Release v0.4 (June 3, 2013)
