Name VTK output

Hello everyone,

how can I name the variable that I am writing to a vtk file in the following code segment? It looks weird if in the legend in paraview it says “f_32” or something similar. Thanks in advance!

vtkfile = File("velocity")
#some stuff calculating u and t
vtkfile << (u,t)

while defining you solution space define something like this:

u = Function(W, name = ‘velocity’)
That should work.

1 Like