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

num_particles

Property decorator function which calculates the number of particles in the cubic simulation box.

volume

Property decorator function which calculates the volume of the cubic simulation box.