Hello,
I’m trying to animate a “Magnitude/Phase” harmonic field. In particular NO time data is present in the data file, as it can be generated with a sinusoidal function.

Example of a regular wave: in the annexed zipped file we can define
H = Velocity_X
P = Velocity_Y

I would like to produce a time-series of the free-surface of the wave at instant “TIME”:
FS(TIME) = H/2 * cos(6.28 * TIME + P)
where H and P are the fields already defined and TIME is the new variable (it is a real number and can be ANY number, and defines the periodic motion via the cosine function).
In practice I would like to obtain an animation similar to the annexed video (that I realized on this data with another postprocessor).
I have no idea how to generate the time-sequence in paraview: have you any suggestion on how I could proceed? Should I use the python functionality (I never used it before) or I can perform the task with standard filters?

A side question: if instead of writing the FS field I want to generate directly the FS, I was thinking using a python animation operator (updating directly the calculator value):

I added the print at the end but I get no output in the output message window. What could I do? I’m sorry if my questions look naive, but I never worked before with python…

I don’t obtain any effect: even the print statement does nothing.
In general I don’t understand where should I insert the formula for computing the free surface? In the [Animation Track python script] or directly in the calculator filter?
Thanks
Tig