Homec4science

a bunch refactoring changes in the python pair style and the examples

Authored by Axel Kohlmeyer <akohlmey@gmail.com> on May 18 2017, 02:55.

Description

a bunch refactoring changes in the python pair style and the examples

  • make all python potential classes derived from LAMMPSPairPotential which contains shared functionality. We currently don't check for supported atom types. may want to add that again later.
  • keep track of skipped atom types in the C++ code.
  • add test against units setting. must set self.units='...' in constructor
  • make compute_force method consistent with Pair::single() in LAMMPS and return force/r instead of force.
  • rename potentials.py to py_pot.py
  • update test runs. some small tweaks.

Details

Committed
Axel Kohlmeyer <akohlmey@gmail.com>May 18 2017, 02:55
Pushed
jungeOct 19 2017, 09:53
Parents
rLAMMPS1d48f287f00a: add partial documentation for pair style python
Branches
Unknown
Tags
Unknown

Event Timeline

Axel Kohlmeyer <akohlmey@gmail.com> committed rLAMMPS67962b15fc07: a bunch refactoring changes in the python pair style and the examples (authored by Axel Kohlmeyer <akohlmey@gmail.com>).May 18 2017, 02:55