ASEMomentaConstraint

class narupatools.ase.constraints.constraint.ASEMomentaConstraint(*args, **kwargs)

Protocol for a Constraint that modifies the momenta.

Inheritance

Inheritance diagram of ASEMomentaConstraint

Methods

__init__

Initialize self.

adjust_forces

Adjust the forces in-place for an ASE Atoms object.

adjust_momenta

Adjust the momenta in-place for an ASE Atoms object.

adjust_positions

Adjust the positions in-place for an ASE Atoms object.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

abstract adjust_forces(atoms: ase.atoms.Atoms, forces: numpy.ndarray, /)None

Adjust the forces in-place for an ASE Atoms object.

Parameters
  • atoms – The ASE Atoms object this constraint applies to.

  • forces – The forces to be modified by this constraint, in eV per nm.

abstract adjust_momenta(atoms: ase.atoms.Atoms, momenta: numpy.ndarray, /)None

Adjust the momenta in-place for an ASE Atoms object.

Parameters
  • atoms – The ASE Atoms object this constraint applies to.

  • momenta – The momenta to be modified by this constraint, in a.m.u angstrom per ASE time unit.

abstract adjust_positions(atoms: ase.atoms.Atoms, positions: numpy.ndarray, /)None

Adjust the positions in-place for an ASE Atoms object.

Parameters
  • atoms – The ASE Atoms object this constraint applies to.

  • positions – The positions to be modified by this constraint, in angstrom.