[Paraview] Using Probe Filter To Get The Average Value Around A Point
Moreland, Kenneth
kmorel at sandia.gov
Tue Feb 6 21:45:33 EST 2018
As far as I know, there is no way to get the probe filter to get all points within a radius as you describe. You may instead consider the Point Data to Cell Data Filter. That will for each cell take the values of all attached points and average them.
The point volume interpolator filter will create a grid (by default 100^3) and, in gaussian kernel mode, will “splat” a gaussian function onto the grid from every point. Another way to think of it is that a 3D gaussian function is convolved with a 3D function comprising an impulse function at every point in the mesh scaled by the field value (and then sampled on the grid).
-Ken
Sent from my iPad
> On Feb 6, 2018, at 8:21 PM, Jeremias Gonzalez <jgonzalez49 at ucmerced.edu> wrote:
>
> Thank you very much for your explanations and suggestions. Responses interspersed below.
>
>> On 2/5/2018 4:57 PM, Moreland, Kenneth wrote:
>> Jeremias,
>> When you set a radius and number of points in the probe filter, then the filter will randomly sample the volume within the defined sphere the number of times requested. The resulting values are the field values at those randomly sampled locations. >
>> An easy way to get an average of your samples is to run the result of the probe filter through the descriptive statistics filter. Look at the "Statistical Model" table and it will report the mean value for each field. (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical Model table wrong by default. You have to also change the Composite Data Set Index parameter in the Display part of the properties panel to select only the Derived Statistics block.)
>> A couple of caveats to this approach. First, because the sampling is random, don't expect the exact same answer every time you run it. Second, if one of the samples happens to lie outside of the mesh, that sample will be filled with 0's for all fields. That will throw off the average value.
>
> Is there a probe setting that will simply grab all the points living in the original mesh within the radius of the sphere I choose?
>
>> That said, another approach you might want to take is to first filter the data in a way that blurs out the noise first. One way you can do that is to run the Point Volume Interpolator filter. Change the Kernel to something like Gaussian (the default Voronoi filter will not do the averaging that you want). Set the radius appropriately. You can then probe the resulting data set with a single value (radius 0) and immediate see the "averaged" result.
>> -Ken
>
> I don't seem to be finding any information on what exactly the Gaussian kernel does with the data, so how close is it to the plain averaging I would like it to be doing?
More information about the ParaView
mailing list