get file data and calculate potentials