mc_lj_potential.Box.minimum_image_distance¶
-
Box.minimum_image_distance(r_i, r_j, box_length)¶ Computes the minimum image distance between two particles.
- Parameters
r_i (float) – Position of particle i
r_j (float) – Position of particle j
box_length (float) – Side of cubic simulation box.
- Returns
rij2 – Square of minimum image distance between an atom pair.
- Return type
float