Path Integral Quantum Monte Carlo
Public Member Functions
HarmonicCylinderPotential Class Reference

Computes the potential energy for an external harmonic potential with axial symmetry. More...

#include <potential.h>

+ Inheritance diagram for HarmonicCylinderPotential:
+ Collaboration diagram for HarmonicCylinderPotential:

Public Member Functions

 HarmonicCylinderPotential (const double)
 Constructor. More...
 
 ~HarmonicCylinderPotential ()
 Destructor.
 
double V (const dVec &r)
 The potential.
 
dVec gradV (const dVec &r)
 The gradient of the 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 grad2V (const dVec &)
 Grad^2 of the potential.
 
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 an external harmonic potential with axial symmetry.

Definition at line 202 of file potential.h.

Constructor & Destructor Documentation

◆ HarmonicCylinderPotential()

HarmonicCylinderPotential::HarmonicCylinderPotential ( const double  radius)

Constructor.

Using a supplied tube radius, setup the soft harmonic tube potential.

Definition at line 358 of file potential.cpp.

358  : PotentialBase()
359 {
360  /* c is a dimensionless constant */
361  c = 1.20272;
362 
363  /* We have to determine the frequency of the oscillator from it's length.
364  * w = \hbar / (m R^2). It is measured in THz */
365  w = 6.35077 / (radius*radius*constants()->m());
366 }
double m() const
Get mass.
Definition: constants.h:45
PotentialBase()
Constructor.
Definition: potential.cpp:25
ConstantParameters * constants()
Global public access to the constants.
Definition: constants.h:201
+ Here is the call graph for this function:

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