I am visualizing my simulation results (which contain tones of particles) with ‘Point Gaussian’ in Paraview.
I wrote the Lagacy VTK file in my C/C++ program, with the following structure.
BINARY
DATASET POLYDATA
POINTS n_particles double
... (positions)
POINT_DATA n_particles
FIELD FieldData n_data
...
I have the following set of files, each contains the information of the each time step of the simulation and ‘_initial’ contains the initial condition.
output_initial.vtk
output_00001.vtk
output_00002.vtk
…
The thing is, the change of the positions of the particles are so small that I need to exaggerate it for clear visualization.
More specifically, say ‘pos[3] = (x,y,z)’ is the positions of the particles from ‘output_N.vtk’, and pos_init[3] = (x_init, y_init, z_init)’ is the initial positions of the particles from ‘output_initial.vtk’.
So I want to modify the ‘pos[:]’ from ‘output_N.vtk’ to ‘pos_init[:] + 100 * (pos[:] - pos_init[:])’ to exaggerate the displacements from the initial condition 100 times, while maintaining other Field quantities the same as ‘output_N.vtk’.
I have been using VTK for years, but mostly I used very basic features such as ‘Calculator’ and so on, and barely used the programmable filters.
Does anyone could give me a comment on how this could be done on the ParaView, and some keywords of the programmable filters, functions, and so on if I have to code it? It would be great if I can do this via some simple filters, though.