Hi,
I think you could, firstly, get all coordinates and then get function value for the current coordinate.
You could find an example in the tutorial:
http://fenicsproject.org/documentation/tutorial/fundamentals.html#examining-the-discrete-solution
coor = mesh.coordinates()
if mesh.num_vertices() == len(u_array):
for i in range(mesh.num_vertices()):
print 'u(%8g,%8g) = %g' % (coor[i][0], coor[i][1], u_array(coor[i][0], coor[i][1]))
Regards, Maksim