I am trying to save a vector function which contains two vectors as .vtk file as follows:
UU = as_vector([U1, U2]) vtkfile = File('Figures/2Ddisp.pvd') vtkfile << UU
*) U1 and U2 are my 2D displacement vector results
But I have received this error:
vtkfile << UU
TypeError: in method ‘File___lshift__’, argument 2 of type ‘dolfin::Function const &’
Aborted (core dumped)
P.S. I have tried to get the figure by matplotlib which is working fine but I can not get the deformed shape just displacement vectors on my initial configuration.
Thank you in advance.