Path Integral Quantum Monte Carlo
|
Computes the value of the external wall potential for an hour-glass shaped cavity. More...
#include <potential.h>
Public Member Functions | |
LJHourGlassPotential (const double, const double, const double) | |
Constructor. More... | |
~LJHourGlassPotential () | |
Destructor. | |
double | V (const dVec &) |
The integrated LJ hour glass potential. More... | |
dVec | gradV (const dVec &pos) |
The gradient of the potential. More... | |
double | grad2V (const dVec &pos) |
Grad^2 of the potential. | |
Array< dVec, 1 > | initialConfig (const Container *, MTRand &, const int) |
Initial configuration corresponding to the LJ cylinder potential. More... | |
Array< dVec, 1 > | initialConfig1 (const Container *, MTRand &, const int) |
Return a set of initial positions inside the hourglass. More... | |
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 &) |
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. | |
Computes the value of the external wall potential for an hour-glass shaped cavity.
Definition at line 622 of file potential.h.
LJHourGlassPotential::LJHourGlassPotential | ( | const double | radius, |
const double | deltaRadius, | ||
const double | deltaWidth | ||
) |
Constructor.
We create a Lennard-Jones hourglass, which for now, directly evaluates the potential based on breaking up the pore into finite size pieces, each with their own radius.
radius | The radius of the cylinder |
deltaRadius | R(z=0) = radius - deltaRadius |
deltaWidth | The width of the hourglass constriction |
Definition at line 1273 of file potential.cpp.
The gradient of the potential.
Use the prrimitive approx.
Reimplemented from PotentialBase.
Definition at line 632 of file potential.h.
|
virtual |
Initial configuration corresponding to the LJ cylinder potential.
Return a set of initial positions inside the hourglass.
boxPtr | A pointer to the simulation cell |
random | The random number generator |
numParticles | The initial number of particles |
Reimplemented from PotentialBase.
Definition at line 1429 of file potential.cpp.
Array< dVec, 1 > LJHourGlassPotential::initialConfig1 | ( | const Container * | boxPtr, |
MTRand & | random, | ||
const int | numParticles | ||
) |
Return a set of initial positions inside the hourglass.
boxPtr | A pointer to the simulation cell |
random | The random number generator |
numParticles | The initial number of particles |
Definition at line 1354 of file potential.cpp.
|
virtual |
The integrated LJ hour glass potential.
Return the actual value of the LJ Cylinder potential, for a distance r from the surface of the wall.
Checked and working with Mathematica (hourglass_potential_test.nb) on 2014-09-04.
r | the position of a particle |
Reimplemented from PotentialBase.
Definition at line 1314 of file potential.cpp.