public class PBC
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
position(double r,
double size)
Adjusts the postion of a particle assuming peridoic boundary conditions.
|
static int |
position(int r,
int size)
Adjusts the postion of a particle assuming peridoic boundary conditions.
|
static double |
separation(double dr,
double size)
Computes the minimum separation using periodic boundary conditions.
|
static int |
separation(int dr,
int size)
Computes the minimum separation using periodic boundary conditions.
|
public static double position(double r, double size)
r
- doublesize
- doublepublic static int position(int r, int size)
r
- intsize
- intpublic static double separation(double dr, double size)
dr
- double the separationsize
- double the box sizepublic static int separation(int dr, int size)
dr
- int the separationsize
- int the box size