[Paraview] Problems about calculate the difference between two datasets

Mathieu Westphal mathieu.westphal at kitware.com
Sun May 22 09:43:22 EDT 2016


Hello

Python calculator is the way to go here

inputs[0].PointData['flux1'] - inputs[1].PointData['flux2']

Beware of the order of the input, they will be ordered randomly by
paraview, but you can reorder them wia the python shell, or modify your
python-calculator script.


Mathieu Westphal

On Sun, May 22, 2016 at 10:31 AM, Feng Jiang <jfrx04 at gmail.com> wrote:

> ParaView newbie here ,and sorry to interrupt you for some problems i met.
>
> I have been using two vtk input files which named t1 and t2 for example,
> both input files contained only one dataset for CellData may called flux1
> and flux2.
>
> Exactly the structure and the data t1 and t2 got were same and only make a
> reflect from the surface of the center of x axis.
>
> And I want to make the CellData flux1 to subtrack the flux2.
> However I have tried Using the Group Datasets and the Calculator, or Using
> the Python Calculator or Programmable filter, and all the result I got is
> empty.
>
> The results I tried seems the ParaView only subtracked the data basic on
> the Cell ID.
>
> So is there any way to solve it or some wrong operate I made I wondered,
> or I must make the datasets reflect before I input ParaView ?
>
> Thanks for any guidance,
>
> Feng
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160522/2f5058f7/attachment.html>


More information about the ParaView mailing list