NPTEnsembleSpec¶
- class jaxrens.cli.schema.ensemble.NPTEnsembleSpec(*, type='npt', pressure, pressure_units='eva3')[source]¶
Bases:
BaseEnsembleSpecIsothermal-isobaric NPT — the backend adds
P*Vto 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:
- to_ensemble_params(*, cohort_index=0)[source]¶
Return
{"pressure": float}in eV/ų forcohort_index.Pressure is converted from GPa to eV/ų when
pressure_units == "gpa".
- model_config = {'extra': 'forbid', 'frozen': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].