|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.numerics.PBC
public class PBC
Implements methods to support periodic boundary condtions.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double position(double r,
double size)
r - doublesize - double
public static int position(int r,
int size)
r - intsize - int
public static double separation(double dr,
double size)
dr - double the separationsize - double the box size
public static int separation(int dr,
int size)
dr - int the separationsize - int the box size
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||