Potentials (pele.potentials)#
This module exports native potential bindings and Python implementations. The reference below groups the available models and wrappers by purpose.
Potential interface#
Python potentials can derive from these base classes.
Base class for all potentials |
|
this class defines the python interface for c++ pair potentials |
|
Base class for all potentials that can use interaction lists |
When creating a potential, implement getEnergy(). Many routines also use
gradients, so implement getEnergyGradient() to avoid calculating them
numerically. See Creating Your Potential for a worked example.
Pair potentials#
define the python interface to the c++ LJ implementation |
|
Binary Lennard-Jones with a cutoff |
|
|
lennard jones potential with a cutoff that is continuous and smooth |
|
binary lennard jones potential with smooth cutoff |
Python interface to the native Frenkel pair potential. |
|
|
the morse potential |
Define the python interface to the c++ HS_WCA implementation. |
|
define the python interface to the c++ WCA implementation |
|
define the python interface to the c++ WCA implementation |
|
define the python interface to the c++ WCA implementation |
Inverse-power potentials#
define the python interface to the c++ InversePower implementation |
|
define the python interface to the c++ InversePowerHS implementation |
|
Python interface to C++ implementation of InversePowerStillinger. |
|
Python interface to C++ implementation of InversePowerStillingerCut, a smooth potential with cutoff distance. |
|
Python interface to C++ implementation of InversePowerStillingerCutQuad, a smooth repulsive potential with a cutoff distance. |
|
|
A python based inversepower potential for small system sizes with periodic boundary conditions. |
Many-body potentials#
Harmonic and Gaussian potentials#
define the python interface to the c++ Harmonic potential implementation |
|
define the python interface to the c++ RadialGaussian potential implementation |
|
Sum of GaussianPot |
Spin potentials#
|
XY model of 2d spins on a lattice |
|
The classical Heisenberg Model of 3d spins on a lattice. |
|
The classical Heisenberg Model of 3d spins on a lattice with random anisotropy. |
Python interface to _Cdef_MeanFieldPSpinSpherical |
Potential wrappers#
Sum native potentials added with |
|
Wrapper for a potential object for freezing degrees of freedom |
Cost and test functions#
|
Cost function to be used for maximum likelihood optimization. |
Python Interface to the c++ PoweredCosineSum potential implementation |
External potentials#
|
Interface to fortran GMIN potential |
LAMMPSPotential is available when the optional LAMMPS dependency is
installed. See the Python adapter source
and native adapter source
for its energy and gradient interface.