CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Calling .VTK and .VTI fields in Paraview (https://www.cfd-online.com/Forums/paraview/152342-calling-vtk-vti-fields-paraview.html)

Xavi7 April 29, 2015 05:32

Calling .VTK and .VTI fields in Paraview
 
Heej!

I use Paraview to visualize Elmer Multiphysics ouput (.vtu). I want to operate between results in different Time Steps.

I normally load a file and use the calculator (Filters/Data Analysis/Calculator) to perform operation between the different scalars/vectors in the same Time Step. It works smoothly.

Now I wanted to perform operations using scalars/vectors between different Time Steps.

One way to do it is:
- Load TimeSteps separately in Paraview so they are independent (different input files).
- Select both of them and apply the Pyhton Calculator (Filters/Alphabetical/Pyhton Calculator).
- Write the calculation you want to perform:

With .vtk files it works this way
inputs[0].CellData("temperature")-inputs[1].CellData("temperature") (select Array Association Cell Data)
or
inputs[0].PointData("temperature")-inputs[1].PointData("temperature") (select Array Association Point Data)

With .vtu files I am not able to access to the data from the input files.

Have someone faced this problem?

Thanks in advance,

/Xavi


All times are GMT -4. The time now is 20:41.