Re: [Paraview] Integrate variable filter

2017-12-01 Thread Andy Bauer
You may also want to look at the Cell Size filter which has the advanced
option to globally sum the values.

The Integrate Variable filter can give unexpected results with mixed
dimension elements since it will integrate all 0D, 1D, 2D and 3D cells.

On Fri, Dec 1, 2017 at 5:02 AM, Andrew  wrote:

> Hello.
> For calculationg volumes and areas, the "Cell Data" attribute type of
> Integrate variables filter is usable. You don't need to define additional
> constant field for this. I checked it now and it seems to give the correct
> domain volume (554 m3 in SolidWorks, 557 m3 in ParaView). The error may be
> due to unequality of mesh and "ideal" geometry. You can also use the
> Threshold filter before the Intergate variables to define the custom volume
> (with particular scalar values).
>
> 2017-12-01 12:08 GMT+03:00 Lionel Wilhelm :
>
>> Dear Paraviewers,
>>
>> I'm trying to compute a closed volume in paraview. For that purpose, I
>> define a constant field with value 1 on the domain and use the integrate
>> filter. Unfortunately the result does not seem to be correct.
>>
>> Attached a screenshot of the GUI where I try to compute the volume of a
>> cube which volume is  0.075^3.
>>
>> I guess that floating point operations error might result in this error
>> but I'm unsure. Furthermore could you tell me if there is a mean for
>> computing such small volumes enclosed in complex surfaces?
>>
>> Kindly,
>>
>> Lionel Wilhelm
>>
>>
>> ___
>> 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
>>
>
>
> ___
> 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
>
>
___
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


Re: [Paraview] Integrate variable filter

2017-12-01 Thread Andrew
Hello.
For calculationg volumes and areas, the "Cell Data" attribute type of
Integrate variables filter is usable. You don't need to define additional
constant field for this. I checked it now and it seems to give the correct
domain volume (554 m3 in SolidWorks, 557 m3 in ParaView). The error may be
due to unequality of mesh and "ideal" geometry. You can also use the
Threshold filter before the Intergate variables to define the custom volume
(with particular scalar values).

2017-12-01 12:08 GMT+03:00 Lionel Wilhelm :

> Dear Paraviewers,
>
> I'm trying to compute a closed volume in paraview. For that purpose, I
> define a constant field with value 1 on the domain and use the integrate
> filter. Unfortunately the result does not seem to be correct.
>
> Attached a screenshot of the GUI where I try to compute the volume of a
> cube which volume is  0.075^3.
>
> I guess that floating point operations error might result in this error
> but I'm unsure. Furthermore could you tell me if there is a mean for
> computing such small volumes enclosed in complex surfaces?
>
> Kindly,
>
> Lionel Wilhelm
>
>
> ___
> 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
>
___
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


Re: [Paraview] Integrate variable filter

2014-05-20 Thread Berk Geveci
There is always a reason Alan :-) In the case, luckily, the reason is not
it is a bug. It is the fact that summing a variable is not integrating
a variable. So the filter does that its name implies. If you want to sum a
variable, there are other ways. The simplest being the programmable
filter with the following script:

print sum(inputs[0].PointData['RTData'][:,0], axis=0)


Substitute PointData and RTData with the appropriate cell/point
connectivity and array name.


Now I realize that this is totally black magic and not simple at all. We
really need to make this much more accessible to users through the
calculator. I am envisioning something like this:


Filter: Python Calculator

Expression: sum(array_name) (where the function sum is selected from a
pull-down menu)

Array Association: field data


Is this easy enough for most users?


Best,

-berk




On Mon, May 19, 2014 at 9:43 PM, Scott, W Alan wasc...@sandia.gov wrote:

  Utkarsh/Berk/All,
 I have a user that wants to add up all of the forces in a dataset, not
 volume corrected.  Is there a reason that the Integrate Variable filter
 can’t do this (default off)?  My user just dumped the raw data as a .csv
 file and read it into excel, which worked.  It would be nicer if ParaView
 did this internally.

 Also, having just poked through the documentation for this filter, from
 that I could find, it does not explicitly state that the variables are
 being corrected for volume, area or length.  Documentation should be
 adjusted to state this.  I finally had to create a hacky test, along with
 reading the code, to find what this filter does.

 Alan



 ___
 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

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview


___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Integrate variable filter

2014-05-19 Thread Andy Bauer
Hi Alan,

My question is how should the forces be added up? I'm inferring that you
mean that the point/cell data array should just be added up. It seems odd
to do it like this since small cells don't get weighted proportionally to
big cells. If you wanted to do it like this though it seems like numpy in
the python programmable filter would work fairly well for this (assuming
this isn't in parallel AND with point data).

I thought that maybe for point data you could use the Glyph filter with 2d
box glyphs with a unit size and then use the integrate attributes filter. I
didn't check if this gave the correct answer or not but theoretically it
should work.

Regards,
Andy


On Mon, May 19, 2014 at 9:43 PM, Scott, W Alan wasc...@sandia.gov wrote:

  Utkarsh/Berk/All,
 I have a user that wants to add up all of the forces in a dataset, not
 volume corrected.  Is there a reason that the Integrate Variable filter
 can’t do this (default off)?  My user just dumped the raw data as a .csv
 file and read it into excel, which worked.  It would be nicer if ParaView
 did this internally.

 Also, having just poked through the documentation for this filter, from
 that I could find, it does not explicitly state that the variables are
 being corrected for volume, area or length.  Documentation should be
 adjusted to state this.  I finally had to create a hacky test, along with
 reading the code, to find what this filter does.

 Alan



 ___
 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

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview


___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview