Path Integral Quantum Monte Carlo
|
A NDIM-dimensional hyperprism with periodic boundary conditions. More...
#include <container.h>
Public Member Functions | |
Prism (const double, const int) | |
Create a NDIM-dimensional hyperprism given density and number of particles. More... | |
Prism (const dVec &, const iVec &_periodic=1) | |
Create a NDIM-dimensional hyperprism given the edge sizes. More... | |
~Prism () | |
Empty destructor. | |
void | putInside (dVec &r) const |
For PBC, this is identical to putInBC. | |
dVec | randPosition (MTRand &) const |
Return a random position inside the cube. | |
dVec | randUpdate (MTRand &, const dVec &) const |
Return a random position close to the supplied one. | |
int | gridIndex (const dVec &) const |
Given a particle position, return a single integer which maps to a unique grid position. More... | |
double | gridBoxVolume (const int) const |
Given a grid index, return the hyper volume of the associated grid box. More... | |
Public Member Functions inherited from Container | |
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 |
double | gridRadius2 (const int) const |
The radius of a grid box. More... | |
Additional Inherited Members | |
Data Fields inherited from Container | |
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 inherited from Container | |
dVec | pSide |
Periodic * side. | |
A NDIM-dimensional hyperprism with periodic boundary conditions.
Definition at line 106 of file container.h.
Prism::Prism | ( | const double | density, |
const int | numParticles | ||
) |
Create a NDIM-dimensional hyperprism given density and number of particles.
We create a NDIM hyperprism with periodic boundary conditions in all dimensions with a side that is set by the volume, given by the particle density in atoms/A^3 and the number of particles.
Definition at line 82 of file container.cpp.
Create a NDIM-dimensional hyperprism given the edge sizes.
We create a NDIM hyperprism with periodic boundary conditions in all dimensions with sides that are set at teh command line.
Definition at line 115 of file container.cpp.
|
virtual |
Given a grid index, return the hyper volume of the associated grid box.
n | The grid index |
Implements Container.
Definition at line 212 of file container.cpp.
|
virtual |
Given a particle position, return a single integer which maps to a unique grid position.
Used for correlating estimators with individual particle positions.
pos | The particle position |
Implements Container.
Definition at line 192 of file container.cpp.