CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Animation in ParaView (https://www.cfd-online.com/Forums/paraview/151752-animation-paraview.html)

Vijayendra April 16, 2015 10:13

Animation in ParaView
 
Hi
I would like to animate the following data. I have mesh file in (*.vtk) format and I have the following ascii data (nodal displacements at different time steps) in a file.

Time Step 1:
Nodes Displacement X Displacement Y
1 .................................................. ........................
2 .................................................. ............................
3 .................................................. ...............................
.................................................. ...........................................
Time Step 2
1 .................................................. ..............................
2 .................................................. ................................
.................................................. .......................................
and so on.
My intention is to animate this nodal displacement data in ParaView. What is the data format required to achieve this? could anyone please tell me with a small example?

Thanks!
With regards
Vijayendra

wyldckat April 19, 2015 14:27

Quick answer:
  1. You need to save the displacements as a vector field, for each node of the mesh, even those that aren't moving.
  2. When saving into VTK, each VTK file is relative to 1 time snapshot and should include the original mesh of the case. Which means that all VTK files have the same mesh.
  3. Example on name format:
    Code:

    snap00.vtk
    snap01.vtk
    snap02.vtk
    snap03.vtk

  4. Some more details: http://www.cfd-online.com/Forums/par...-paraview.html
  5. Then, after loading the VTK group "snap..vtk" in ParaView, you can apply the filter "Warp By Vector", which can be used for applying the displacement on all nodes by using the displacement field.


All times are GMT -4. The time now is 11:18.