[Paraview] Getting the coordinates of the point with max temperature

Tibi Chelcea tchelcea at transim.com
Mon Sep 12 10:23:28 EDT 2011


Thank you for the information. I ended up simply loading all the points from
the reader (without any filter) and computing myself the maximum. The
advantage was that I could also get the global index of the point with the
maximum, which means that when processing all the subsequent files from the
transient simulation, I could simply load all the points and access directly
the point with the respective global index to get the temperature.

I was wondering, is there a filter that provides the temperature at a point
with user-provided coordinates? If the coordinates happen to match one of
the points in the mesh, that's good, but what if the coordinates don't match
any of the points.

Thanks,
Tibi


-----Original Message-----
From: David E DeMarle [mailto:dave.demarle at kitware.com] 
Sent: Friday, September 09, 2011 12:00 PM
To: Tibi Chelcea
Cc: paraview at paraview.org
Subject: Re: [Paraview] Getting the coordinates of the point with max
temperature

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Thu, Sep 8, 2011 at 9:48 AM, Tibi Chelcea <tchelcea at transim.com> wrote:
> th.SelectInputScalars = ['0','0','0','1','temperature']

Try changing that to:
th.SelectInputScalars = ['0','0','0','0','temperature']

I think you are asking the filter to threshold the cell associated array
name temperature, and that yours is on the points instead.

See:
http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html#a42a55ca2c277aecc
909ad592d12978aa
And of course the code where that enum is declared.

Also, I think you should try to get 3.10 working on your system in batch
mode. Since 3.4, the paraview.simple layer and the Trace feature have made
paraview scripting far easier to learn.


good luck!



More information about the ParaView mailing list