mc_lj_potential.Box.wrap

Box.wrap(coordinates, box_length)

This is for wrapping all particles in the box, updating the coordinates.

Parameters
  • coordinates (np.array) – Original coordinates from the generate_initial_state function.

  • box_length (float) – Side of cubic simulation box.