Abstract
The Lekner method for calculation of electrostatic interactions in periodically replicated simulation cells is extended to quasi-two-dimensional systems of particles with dipolar interactions. The electric field, potential energy, forces and torques are expressed through rapidly converging series of modified Bessel functions. The method contains no arbitrary parameters, and has no limitations on the simulation box width.