Implementation of polarisation energy