Add pair potential and tests
This commit is contained in:
parent
dfd6f43e9b
commit
6162b27a89
11 changed files with 330 additions and 14 deletions
22
src/box.hpp
Normal file
22
src/box.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef BOX_H
|
||||
#define BOX_H
|
||||
|
||||
/**
|
||||
* Struct representing the simulation box.
|
||||
* Currently the simulation box is always assumed to be perfectly rectangular.
|
||||
* This code does not support shearing the box. This functionality may be added
|
||||
* in later.
|
||||
*/
|
||||
template <typename T> struct Box {
|
||||
T xlo;
|
||||
T xhi;
|
||||
T ylo;
|
||||
T yhi;
|
||||
T zlo;
|
||||
T zhi;
|
||||
bool x_is_periodic;
|
||||
bool y_is_periodic;
|
||||
bool z_is_periodic;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue