doesn’t make sense, why would a Vector space have anything to do with the mesh? I intend to use mixed elements, so will define multiple vector spaces over the mesh, so I certainly wouldn’t want there to be any a priori requirements on the vector space
If someone could point me to some code example in dolfinx that generates a custom mesh, that would be great, thank you!
A mesh is defined with a finite element because a mesh can consist of non-affine cells (higher order triangles/tets with curved edges, or quad/hex elements). Thus you need a set of basis functions mapping from the reference element to the physical element (to for instance compute jacobians in integrals).
The vector space used in the mesh initialization does not limit what function spaces one can use in variational problems.