mc_lj_potential.Box¶
-
class
mc_lj_potential.Box(box_length, coordinates=None)¶ -
__init__(box_length, coordinates=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(box_length[, coordinates])Initialize self.
minimum_image_distance(r_i, r_j, box_length)Computes the minimum image distance between two particles.
wrap(coordinates, box_length)This is for wrapping all particles in the box, updating the coordinates.
Attributes
Property decorator function which calculates the number of particles in the cubic simulation box.
Property decorator function which calculates the volume of the cubic simulation box.
-