Is it possible to construct an animation of complex vibration modes? Obviously, the actual shape is described by a real field, composed of a real part and an imaginary part of a vector V:
v = ReVcos(at) - ImVsin(at).
At first I was going to suggest using Python Calculator, but due to a bug I just found, I expect that won’t work for you.
Until that’s fixed, you’ll probably have to use the Programmable Filter. You can use that to get the real and imaginary fields from your data as well as the current time from the pipeline. From there, you can compute the instant value of the vibration. Here is an example Script for the Programmable Filter:
However, that alone won’t do it because you also have to tell the VTK pipeline what time you want. If you don’t, the pipeline won’t give you any time. So, you will need to also set the the RequestInformation Script (an advanced property). The following RequestInformation Script sets up 100 time steps between time 0 and time 1.
executive = self.GetExecutive()
outInfo = executive.GetOutputInformation(0)
for i in range(0, 100):
Here is an example state file that creates some fabricated data with real and imaginary components and then applies a Programmable Filter to animate the vibration: vibration-animation-example.pvsm (583.1 KB)
The output of this Programmable Filter will just create a field named vibrate that will change over time. If you want to use the vibrate field as displacements to change the shape, you will have to apply the Warp by Vector filter.