I use
vfile << v, t
to write a function v at a time instance t to a file vfile = File('results/vel.pvd'). When I open the file in paraview, I find that the variable is named something like f_nn , where nn changes for each t.
v
t
vfile = File('results/vel.pvd')
f_nn
nn
How can I define a consistent name for the variable?
'consistent' is not the right term. I need a 'constant' name.
Not sure what you mean with consistent? By default the name is "f". You can change that by:
v.rename("something", "label")
where "label" is some sort of description of your Function
Function
Yes, that solves it. Thank you. I meant, that I got a different name in each iteration, what leads to crashes in paraview.