Access to a field of an Elmer .vtu file from Paraview
Posted: 10 Apr 2015, 10:24
Hej gents!
I use Paraview to visualize Elmer's ouput. I normally load a file and use the calculator (Filters/Data Analysis/Calculator) to perform operation between the different scalars/vectors. It works smoothly.
Now I wanted to perfrom operations using scalars/vectors from different Time Steps.
One way to do it is:
- Load them 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
I use Paraview to visualize Elmer's ouput. I normally load a file and use the calculator (Filters/Data Analysis/Calculator) to perform operation between the different scalars/vectors. It works smoothly.
Now I wanted to perfrom operations using scalars/vectors from different Time Steps.
One way to do it is:
- Load them 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