Some calculations using the Ewald transformation