Hello, I would like to calculate the work function of my surface, therefore I need the plane averaged potential from the electrostatic potential. How do you calculate the electrostatic potential that is outputted in in the ESP.dat file? Many thanks, Laura