jaxrens.cli.schema.ensemble¶
Pydantic schema for the [ensemble] section of a jaxrens YAML config.
Each concrete spec class maps to a thermodynamic ensemble. to_ensemble_params
returns the per-cohort scalar/vector ensemble parameters (pressure, chemical
potentials, …) consumed by EnsembleTerm at run time.
Supported ensembles¶
NVTcanonical; no additional parameters.
NPTisothermal-isobaric; requires
pressure.semi_grandsemi-grand μPT; requires a per-species
chemical_potentialsvector and an optionalpressure. The backend adds- μ·N(and+ P·Vwhen a pressure is given) to the raw potential, i.e.H = U + P·V - μ·N.
Each spec may carry a list on its driving parameter (pressures for NPT, μ-vectors for semi_grand) to fan a run out across replicas — the resolver turns that list into the replica axis.
Classes
Isothermal-isobaric NPT — the backend adds |
|
Canonical NVT — fixed cell, no ensemble correction ( |
|
Semi-grand μPT: |