#include <cell_list_potential.h>
Public Member Functions | |
~CellListPotential () | |
CellListPotential (std::shared_ptr< pairwise_interaction > interaction, std::shared_ptr< distance_policy > dist, pele::Array< double > boxvec, double rcut, double ncellx_scale) | |
virtual double | get_energy (Array< double > x) |
virtual double | get_energy_gradient (Array< double > x, Array< double > grad) |
virtual double | get_energy_gradient_hessian (Array< double > x, Array< double > grad, Array< double > hess) |
Protected Member Functions | |
void | refresh_iterator (Array< double > x) |
Protected Attributes | |
pele::CellLists< distance_policy > | m_cell_lists |
std::shared_ptr < pairwise_interaction > | m_interaction |
std::shared_ptr< distance_policy > | m_dist |
Static Protected Attributes | |
static const size_t | m_ndim = distance_policy::_ndim |
Potential to loop over the list of atom pairs generated with the cell list implementation in cell_lists.h. This should also do the cell list construction and refresh, such that the interface is the same for the user as with SimplePairwise.
Definition at line 337 of file cell_list_potential.h.
pele::CellListPotential< pairwise_interaction, distance_policy >::~CellListPotential | ( | ) | [inline] |
Definition at line 344 of file cell_list_potential.h.
pele::CellListPotential< pairwise_interaction, distance_policy >::CellListPotential | ( | std::shared_ptr< pairwise_interaction > | interaction, |
std::shared_ptr< distance_policy > | dist, | ||
pele::Array< double > | boxvec, | ||
double | rcut, | ||
double | ncellx_scale | ||
) | [inline] |
Definition at line 345 of file cell_list_potential.h.
virtual double pele::CellListPotential< pairwise_interaction, distance_policy >::get_energy | ( | Array< double > | x | ) | [inline, virtual] |
Return the energy of configuration x. This is the only function which must be overloaded
Reimplemented from pele::BasePotential.
Definition at line 355 of file cell_list_potential.h.
virtual double pele::CellListPotential< pairwise_interaction, distance_policy >::get_energy_gradient | ( | Array< double > | x, |
Array< double > | grad | ||
) | [inline, virtual] |
compute the energy and gradient.
If not overloaded it will compute the numerical gradient
Reimplemented from pele::BasePotential.
Definition at line 372 of file cell_list_potential.h.
virtual double pele::CellListPotential< pairwise_interaction, distance_policy >::get_energy_gradient_hessian | ( | Array< double > | x, |
Array< double > | grad, | ||
Array< double > | hess | ||
) | [inline, virtual] |
compute the energy and gradient and Hessian.
If not overloaded it will compute the Hessian numerically and use get_energy_gradient to get the energy and gradient.
Reimplemented from pele::BasePotential.
Definition at line 393 of file cell_list_potential.h.
void pele::CellListPotential< pairwise_interaction, distance_policy >::refresh_iterator | ( | Array< double > | x | ) | [inline, protected] |
Definition at line 421 of file cell_list_potential.h.
pele::CellLists<distance_policy> pele::CellListPotential< pairwise_interaction, distance_policy >::m_cell_lists [protected] |
Definition at line 340 of file cell_list_potential.h.
std::shared_ptr<distance_policy> pele::CellListPotential< pairwise_interaction, distance_policy >::m_dist [protected] |
Definition at line 342 of file cell_list_potential.h.
std::shared_ptr<pairwise_interaction> pele::CellListPotential< pairwise_interaction, distance_policy >::m_interaction [protected] |
Definition at line 341 of file cell_list_potential.h.
const size_t pele::CellListPotential< pairwise_interaction, distance_policy >::m_ndim = distance_policy::_ndim [static, protected] |
Definition at line 339 of file cell_list_potential.h.