NPTState¶
- class torch_sim.integrators.npt.NPTState(*, positions, masses, cell, pbc, atomic_numbers, system_idx=None, _constraints=<factory>, _system_extras=<factory>, _atom_extras=<factory>, _rng=None, momenta, energy, forces, stress)[source]¶
Bases:
MDStateState information for an NPT system.
This class extends MDState with the stress tensor needed for constant-pressure simulations. Integrator-specific NPT states (e.g., NPTLangevinAnisotropicState, NPTNoseHooverIsotropicState) inherit from this class and add their own auxiliary variables.