Commit Graph

7 Commits

Author SHA1 Message Date
Axel Kohlmeyer 436d3fd761 make hybrid example use half the atoms with python, half with lj/cut 2017-05-18 00:30:41 -04:00
Axel Kohlmeyer 67962b15fc 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.
2017-05-17 20:55:48 -04:00
Axel Kohlmeyer a34c935e20 update log files in python pair style example 2017-05-17 08:00:21 -04:00
Axel Kohlmeyer 96f0a82aa5 simplify class names in pair style python examples. add SPC/E water example 2017-05-17 07:48:15 -04:00
Richard Berger 7caf6cf459 Change how a Python pair style is loaded
Implements a class loader which takes a fully qualified Python class
name, loads the module and creates an object instance.

To add flexibility, the current working directory and the
directory specified by the LAMMPS_POTENTIALS environment variable are
added to the module search path.
2017-05-16 23:29:48 -04:00
Axel Kohlmeyer df55a90ef6 some example input file tweaks 2017-05-15 00:22:03 -04:00
Axel Kohlmeyer 34cc3946b8 first few pieces of pair style python 2017-05-14 18:29:06 -04:00