NPTEnsembleSpec

class jaxrens.cli.schema.ensemble.NPTEnsembleSpec(*, type='npt', pressure, pressure_units='eva3')[source]

Bases: BaseEnsembleSpec

Isothermal-isobaric NPT — the backend adds P*V to the energy.

A list of pressures is what fans the run out across replicas, one per entry — the usual way to set up a pressure-RENS ladder alongside inter_re.

ensemble:
  type: npt
  pressure: 0.1
  pressure_units: eva3
ensemble:
  type: npt
  pressure: [0.01, 0.1, 1.0, 10.0]   # 4 replicas
  pressure_units: gpa
Parameters:
cohort_size()[source]

Number of replicas this ensemble drives (1 = single run).

Overridden by specs whose driving parameter (pressure, μ) can be a list. The default covers parameterless ensembles like NVT.

Return type:

int

to_ensemble_params(*, cohort_index=0)[source]

Return {"pressure": float} in eV/ų for cohort_index.

Pressure is converted from GPa to eV/ų when pressure_units == "gpa".

Parameters:

cohort_index (int) – Index into the pressure list; must be < cohort_size().

Returns:

Dict with a single "pressure" key in eV/ų.

Return type:

dict

model_config = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].