Hello,
Is there a way to save the solution only at nodal values (vertices of triangular elements) instead than at all degrees of freedom? I would like to do that for Lagrange quadratic elements.
Now, after computing the solution a1
, I do the following:
X=V.tabulate_dof_coordinates()
X.resize((V.dim(), 2))
x = X[:,0]
y = X[:,1]
a_values = a1.vector().array()
np.savetxt("results/a_p2.csv", np.c_[x, y, a_values], delimiter=",")
Is there a way to save only nodal values?