Path Integral Quantum Monte Carlo
|
The base class which holds details on the generalized box that our system will be simulated inside of. More...
#include <container.h>
Public Member Functions | |
Container () | |
Initialize all variables. | |
virtual | ~Container () |
Empty destructor. | |
void | putInBC (dVec &r) const |
Place a vector in boundary conditions. More... | |
void | putInBC1 (dVec &r) const |
virtual void | putInside (dVec &) const =0 |
Place a vector inside the simulation cell. | |
virtual dVec | randPosition (MTRand &) const =0 |
Random position inside a box. | |
virtual dVec | randUpdate (MTRand &, const dVec &) const =0 |
Random updated position inside a box. | |
virtual int | gridIndex (const dVec &) const =0 |
Map a position into a grid index. | |
virtual double | gridBoxVolume (const int) const =0 |
The physical size of a NDIM-dimensional grid box. | |
double | gridRadius2 (const int) const |
The radius of a grid box. More... | |
Data Fields | |
TinyVector< unsigned int, NDIM > | periodic |
Determines which dimensions have periodic bc. | |
dVec | side |
The linear dimensions of the box. | |
dVec | sideInv |
The inverse box dimensions. | |
dVec | sideInv2 |
2 times the inverse box dimensions | |
double | volume |
The volume of the container in A^3. | |
double | rcut2 |
The smallest separation squared. | |
double | maxSep |
The maximum possible separation for 2 beads on the same timeslice. | |
string | name |
The name of the container. | |
int | numGrid |
The number of grid boxes for the position grid. | |
bool | fullyPeriodic |
Is the prism fully periodic? | |
dVec | gridSize |
The grid size in each dimension. | |
Protected Attributes | |
dVec | pSide |
Periodic * side. | |
The base class which holds details on the generalized box that our system will be simulated inside of.
This class implements boundary conditions, and holds details on the physical dimensions of the simulation cell.
Definition at line 24 of file container.h.
double Container::gridRadius2 | ( | const int | n | ) | const |
The radius of a grid box.
Given a grid box number, return the associated radius.
n | The grid index |
Definition at line 51 of file container.cpp.
|
inline |
Place a vector in boundary conditions.
Algorithm C4 from
Definition at line 50 of file container.h.