ensemble_energy

jaxrens.backends.ensemble.ensemble_energy(cell, species, pressure=None, chemical_potentials=None)[source]

P·V − μ·N for one configuration.

The single definition of the ensemble correction: EnsembleTerm adds it to the model energy, and replica exchange uses it (via rebase_ensemble_energy()) to move a stored energy from one run’s ensemble to another’s. A missing pressure (or cell) drops the P·V term, a missing chemical_potentials the μ·N term.

Parameters:
  • cell (Array | None)

  • species (Array)

  • pressure (Any)

  • chemical_potentials (Array | None)

Return type:

Array