Assign vertex values to function with Lagrange element of degree higher than 1

If you want the curvature, I have posted an alternative approach here: How to compute curvature of a boundary