setting up electrostatic computation