Path Integral Quantum Monte Carlo
Public Member Functions
DipolePotential Class Reference

Computes the potential energy for polarized electrical dipoles with strength D in reduced units where lengths are measured in units of a = m D / \hbar^2 and energies in units of \hbar^2 / m a^2. More...

#include <potential.h>

+ Inheritance diagram for DipolePotential:
+ Collaboration diagram for DipolePotential:

Public Member Functions

 DipolePotential ()
 Constructor.
 
 ~DipolePotential ()
 Destructor.
 
double V (const dVec &r)
 Return the dipole potential 1/r^3.
 
dVec gradV (const dVec &r)
 Return the gradient of the dipole potential. More...
 
double grad2V (const dVec &r)
 Return the Laplacian of the dipolar potential.
 
- Public Member Functions inherited from PotentialBase
 PotentialBase ()
 Constructor.
 
virtual ~PotentialBase ()
 Destructor.
 
virtual double V (const dVec &, const dVec &)
 The effective potential for the pair product approximation.
 
virtual double dVdlambda (const dVec &, const dVec &)
 The derivative of the effective potential with respect to lambda and tau.
 
virtual double dVdtau (const dVec &, const dVec &)
 
virtual Array< dVec, 1 > initialConfig (const Container *, MTRand &, const int)
 Default Initial configuration of particles. More...
 
void output (const double)
 A debug method that output's the potential to a supplied separation. More...
 
virtual Array< double, 1 > getExcLen ()
 Array to hold data elements. More...
 

Additional Inherited Members

- Data Fields inherited from PotentialBase
double tailV
 Tail correction factor.
 
- Protected Member Functions inherited from PotentialBase
double deltaSeparation (double sep1, double sep2) const
 Return the minimum image difference for 1D separations.
 

Detailed Description

Computes the potential energy for polarized electrical dipoles with strength D in reduced units where lengths are measured in units of a = m D / \hbar^2 and energies in units of \hbar^2 / m a^2.

See also
: http://link.aps.org/doi/10.1103/PhysRevA.87.063604

Definition at line 360 of file potential.h.

Member Function Documentation

◆ gradV()

dVec DipolePotential::gradV ( const dVec r)
inlinevirtual

Return the gradient of the dipole potential.

\partial (1/r^3) \partial r \hat{r} = -3r^{-5} \vec{r}

Reimplemented from PotentialBase.

Definition at line 379 of file potential.h.

379  {
380  double x = sqrt(dot(r,r));
381  if (x < EPS)
382  return 0.0;
383  return (-3.0/(x*x*x*x*x)) * r;
384  }
#define EPS
A small number.
Definition: common.h:94

The documentation for this class was generated from the following files: