hello, you can also follow this approach by interpolation (you can always interpolate on the mesh points)
cordially christian.stan