I posted a question about how to impose "measured data" to Dirichlet boundary conditions here (the other question). Then I realized that I'm also not able to figure out how to load in the "measured data" properly. I don't want to complicate the other question, so I posted this one as a separate one here.
I'm solving a PDE-constrained optimization problem and we have the experimentally "measured data" on all points in the mesh, and they are vector-valued. Is there a way to load the data together with the mesh data so that the "measured data" can fall to proper places, such as right vertices and dofs, from the mesh information, suppose I'm reading in a mesh?
I found MeshFunctions and MeshCollectionValues can be loaded with mesh data, but they seem to only work with cells instead of points / vertices. My "measured data" is defined on points. Also, the purpose of MeshFunctions and MeshCollectionValues seems to help mesh generation, refinement and boundary tagging, which is not my aim.
Many thanks in advance for advices from experienced fenics' users?