Commit Graph

11 Commits

Author SHA1 Message Date
e4071d7f46 replace C-style include files with their C++ equivalents 2018-04-27 18:00:24 -04:00
1b07a4edee Fix memory leak in pair python 2017-12-10 17:14:08 -05:00
a7d790a827 Fixes coverity issue CID 179439 2017-05-22 17:33:47 -04:00
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
43efe9e417 adding Pair::single() support to python pair style and examples
with the single function, python pair styles can be massively
sped up and made compatible to accelerators, as one can translate
the analytic force and energy functions through LAMMPS into suitable
tables and then simply use the on-the-fly tables for production runs
2017-05-17 17:20:56 -04:00
45becfb235 correct author attributions 2017-05-17 09:59:01 -04:00
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
69ccbd1562 Extract common wrappers to Python compatibility header 2017-05-15 17:46:57 -04:00
d662f5d429 whitspace cleanup and gitignore update 2017-05-15 00:22:22 -04:00
6e113c1eaf basic feature complete version of lj melt example with python interaction function 2017-05-15 00:15:41 -04:00
34cc3946b8 first few pieces of pair style python 2017-05-14 18:29:06 -04:00