Hi,
I would like to get the dof and their coordinate and import them to matlab
I’ve been trying to use
d2v = mesh_coordinates[dof_to_vertex_map(W)]
for a mixed finite element space but I failed as I get the below error
Error: Unable to tabulate vertex to dof map.
*** Reason: Cannot tabulate vertex_to_dof_map for a subspace.
*** Where: This error was encountered inside fem_utils.cpp.
*** Process: 0
*** DOLFIN version: 2019.2.0.dev0
*** Git changeset: unknown
I have then tried using
element = W.element()
dofmap = W.dofmap()
for cell in cells(mesh):
element_coordinates = element.tabulate_dof_coordinates(cell)
RT_CG_coordinates.append(element_coordinates)
element_dof = dofmap.cell_dofs(cell.index())
RT_CG_dof.append(element_dof)
and I have succeed to get each alone.
Can anyone guide me on how to link each dof to its coordinate so I can import them and plot them in matlab.