An inversion method for harmonic functions reconstruction