Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-23 Thread Andy Bauer
It sounds like it. I believe that the user would have to use the extract
surface filter first though.

On Tue, Jan 23, 2018 at 2:00 PM, Scott, W Alan  wrote:

> Andy,
> Wouldn't the upcoming volume filter calculate the volume of fragments
> coming from the Connectivity filter?
>
> Alan
>
> > -Original Message-
> > From: Cory Quammen [mailto:cory.quam...@kitware.com]
> > Sent: Monday, January 22, 2018 9:29 PM
> > To: Scott, W Alan 
> > Cc: Bauer, Andy (External Contacts) ;
> > paraview@paraview.org
> > Subject: Re: [EXTERNAL] Re: [Paraview] Material Interface Filter
> >
> > On Wed, Jan 17, 2018 at 9:42 PM, Scott, W Alan 
> > wrote:
> > > Thanks Andy!  Although I will take a round about method, I would love
> > > a real solution.
> > >
> > >
> > >
> > > Cory?  Thoughts?
> > >
> > >
> > >
> > > Alan
> > >
> > >
> > >
> > > From: Andy Bauer [mailto:andy.ba...@kitware.com]
> > > Sent: Wednesday, January 17, 2018 9:24 AM
> > > To: Scott, W Alan ; Quammen, Cory (External
> > > Contacts) 
> > > Cc: paraview@paraview.org
> > > Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter
> > >
> > >
> > >
> > > The best way I can think of is to then use the threshold filter to
> > > isolate each of the pieces and then use the cell size filter on each
> > > piece. This would be fairly easy to automate in a Python script to
> > > just print out the values.
> > >
> > > Alternatively, I don't see a reason why the Connectivity filter
> > > couldn't have an option added to output a field data array with the
> > > summed sizes of each piece. Since Cory just made the connectivity
> > > filter work correctly in parallel it would surprise me that he may be
> > > familiar enough with the code to do the change in a couple of hours.
> >
> > I'm hesitant to add an option in the Connectivity filter to do this.
> > Instead, I can imagine uses for a volume computation for surfaces/volumes
> > labeled by a RegionId that isn't necessarily assigned as a function of
> > connectivity. Instead, I would prefer to create a separate filter that
> computes
> > volumes for each RegionId in the input dataset. You would feed the output
> > of the Connectivity filter to this new filter and get the
> volume-per-region
> > information you want.
> >
> > Cory
> >
> > >
> > >
> > > On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan 
> > wrote:
> > >
> > > I have a user that wants to use the equivalent of the Material
> > > Interface Filter on VTK files.  Is there a way to do this?  I did find
> > > the Connectivity filter, that gets me half way.  I then want to find
> > > the mass of these individual fragments.
> > >
> > >
> > >
> > > To test, I used Wavelet, the Clip by Sphere, then made the Radius 15,
> > > then ran the connectivity filter.
> > >
> > >
> > >
> > > Thanks,
> > >
> > >
> > >
> > > 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
> > >
> > > Search the list archives at: http://markmail.org/search/?q=ParaView
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > https://paraview.org/mailman/listinfo/paraview
> > >
> > >
> >
> >
> >
> > --
> > Cory Quammen
> > Staff R Engineer
> > Kitware, Inc.
>
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-23 Thread Scott, W Alan
Andy,
Wouldn't the upcoming volume filter calculate the volume of fragments coming 
from the Connectivity filter?

Alan

> -Original Message-
> From: Cory Quammen [mailto:cory.quam...@kitware.com]
> Sent: Monday, January 22, 2018 9:29 PM
> To: Scott, W Alan 
> Cc: Bauer, Andy (External Contacts) ;
> paraview@paraview.org
> Subject: Re: [EXTERNAL] Re: [Paraview] Material Interface Filter
> 
> On Wed, Jan 17, 2018 at 9:42 PM, Scott, W Alan 
> wrote:
> > Thanks Andy!  Although I will take a round about method, I would love
> > a real solution.
> >
> >
> >
> > Cory?  Thoughts?
> >
> >
> >
> > Alan
> >
> >
> >
> > From: Andy Bauer [mailto:andy.ba...@kitware.com]
> > Sent: Wednesday, January 17, 2018 9:24 AM
> > To: Scott, W Alan ; Quammen, Cory (External
> > Contacts) 
> > Cc: paraview@paraview.org
> > Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter
> >
> >
> >
> > The best way I can think of is to then use the threshold filter to
> > isolate each of the pieces and then use the cell size filter on each
> > piece. This would be fairly easy to automate in a Python script to
> > just print out the values.
> >
> > Alternatively, I don't see a reason why the Connectivity filter
> > couldn't have an option added to output a field data array with the
> > summed sizes of each piece. Since Cory just made the connectivity
> > filter work correctly in parallel it would surprise me that he may be
> > familiar enough with the code to do the change in a couple of hours.
> 
> I'm hesitant to add an option in the Connectivity filter to do this.
> Instead, I can imagine uses for a volume computation for surfaces/volumes
> labeled by a RegionId that isn't necessarily assigned as a function of
> connectivity. Instead, I would prefer to create a separate filter that 
> computes
> volumes for each RegionId in the input dataset. You would feed the output
> of the Connectivity filter to this new filter and get the volume-per-region
> information you want.
> 
> Cory
> 
> >
> >
> > On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan 
> wrote:
> >
> > I have a user that wants to use the equivalent of the Material
> > Interface Filter on VTK files.  Is there a way to do this?  I did find
> > the Connectivity filter, that gets me half way.  I then want to find
> > the mass of these individual fragments.
> >
> >
> >
> > To test, I used Wavelet, the Clip by Sphere, then made the Radius 15,
> > then ran the connectivity filter.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > 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
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > https://paraview.org/mailman/listinfo/paraview
> >
> >
> 
> 
> 
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-23 Thread Cory Quammen
As a happy coincidence, Will Schroeder just posted a merge request for
a VTK filter that computes the volumes of connected regions in a poly
data and stores the volumes in field data:
https://gitlab.kitware.com/vtk/vtk/merge_requests/3825. We could
expose this in ParaView once it lands in VTK.

Cory

On Mon, Jan 22, 2018 at 11:28 PM, Cory Quammen  wrote:
> On Wed, Jan 17, 2018 at 9:42 PM, Scott, W Alan  wrote:
>> Thanks Andy!  Although I will take a round about method, I would love a real
>> solution.
>>
>>
>>
>> Cory?  Thoughts?
>>
>>
>>
>> Alan
>>
>>
>>
>> From: Andy Bauer [mailto:andy.ba...@kitware.com]
>> Sent: Wednesday, January 17, 2018 9:24 AM
>> To: Scott, W Alan ; Quammen, Cory (External Contacts)
>> 
>> Cc: paraview@paraview.org
>> Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter
>>
>>
>>
>> The best way I can think of is to then use the threshold filter to isolate
>> each of the pieces and then use the cell size filter on each piece. This
>> would be fairly easy to automate in a Python script to just print out the
>> values.
>>
>> Alternatively, I don't see a reason why the Connectivity filter couldn't
>> have an option added to output a field data array with the summed sizes of
>> each piece. Since Cory just made the connectivity filter work correctly in
>> parallel it would surprise me that he may be familiar enough with the code
>> to do the change in a couple of hours.
>
> I'm hesitant to add an option in the Connectivity filter to do this.
> Instead, I can imagine uses for a volume computation for
> surfaces/volumes labeled by a RegionId that isn't necessarily assigned
> as a function of connectivity. Instead, I would prefer to create a
> separate filter that computes volumes for each RegionId in the input
> dataset. You would feed the output of the Connectivity filter to this
> new filter and get the volume-per-region information you want.
>
> Cory
>
>>
>>
>> On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan  wrote:
>>
>> I have a user that wants to use the equivalent of the Material Interface
>> Filter on VTK files.  Is there a way to do this?  I did find the
>> Connectivity filter, that gets me half way.  I then want to find the mass of
>> these individual fragments.
>>
>>
>>
>> To test, I used Wavelet, the Clip by Sphere, then made the Radius 15, then
>> ran the connectivity filter.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> https://paraview.org/mailman/listinfo/paraview
>>
>>
>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-22 Thread Cory Quammen
On Wed, Jan 17, 2018 at 9:42 PM, Scott, W Alan  wrote:
> Thanks Andy!  Although I will take a round about method, I would love a real
> solution.
>
>
>
> Cory?  Thoughts?
>
>
>
> Alan
>
>
>
> From: Andy Bauer [mailto:andy.ba...@kitware.com]
> Sent: Wednesday, January 17, 2018 9:24 AM
> To: Scott, W Alan ; Quammen, Cory (External Contacts)
> 
> Cc: paraview@paraview.org
> Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter
>
>
>
> The best way I can think of is to then use the threshold filter to isolate
> each of the pieces and then use the cell size filter on each piece. This
> would be fairly easy to automate in a Python script to just print out the
> values.
>
> Alternatively, I don't see a reason why the Connectivity filter couldn't
> have an option added to output a field data array with the summed sizes of
> each piece. Since Cory just made the connectivity filter work correctly in
> parallel it would surprise me that he may be familiar enough with the code
> to do the change in a couple of hours.

I'm hesitant to add an option in the Connectivity filter to do this.
Instead, I can imagine uses for a volume computation for
surfaces/volumes labeled by a RegionId that isn't necessarily assigned
as a function of connectivity. Instead, I would prefer to create a
separate filter that computes volumes for each RegionId in the input
dataset. You would feed the output of the Connectivity filter to this
new filter and get the volume-per-region information you want.

Cory

>
>
> On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan  wrote:
>
> I have a user that wants to use the equivalent of the Material Interface
> Filter on VTK files.  Is there a way to do this?  I did find the
> Connectivity filter, that gets me half way.  I then want to find the mass of
> these individual fragments.
>
>
>
> To test, I used Wavelet, the Clip by Sphere, then made the Radius 15, then
> ran the connectivity filter.
>
>
>
> Thanks,
>
>
>
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://paraview.org/mailman/listinfo/paraview
>
>



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2018-01-17 Thread Scott, W Alan
Thanks Andy!  Although I will take a round about method, I would love a real 
solution.

Cory?  Thoughts?

Alan

From: Andy Bauer [mailto:andy.ba...@kitware.com]
Sent: Wednesday, January 17, 2018 9:24 AM
To: Scott, W Alan ; Quammen, Cory (External Contacts) 

Cc: paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter

The best way I can think of is to then use the threshold filter to isolate each 
of the pieces and then use the cell size filter on each piece. This would be 
fairly easy to automate in a Python script to just print out the values.
Alternatively, I don't see a reason why the Connectivity filter couldn't have 
an option added to output a field data array with the summed sizes of each 
piece. Since Cory just made the connectivity filter work correctly in parallel 
it would surprise me that he may be familiar enough with the code to do the 
change in a couple of hours.

On Tue, Jan 16, 2018 at 1:32 PM, Scott, W Alan 
> wrote:
I have a user that wants to use the equivalent of the Material Interface Filter 
on VTK files.  Is there a way to do this?  I did find the Connectivity filter, 
that gets me half way.  I then want to find the mass of these individual 
fragments.

To test, I used Wavelet, the Clip by Sphere, then made the Radius 15, then ran 
the connectivity filter.

Thanks,

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://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

Search the list archives at: http://markmail.org/search/?q=ParaView

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


Re: [Paraview] [EXTERNAL] Re: Material Interface Filter

2013-04-09 Thread Scott, W Alan
Bucky,
I believe that the problem is that - as you suggest below - the material 
interface filter only accepts down converted unsigned chars.  In my mind, this 
is a bug/feature hole.  Either, 1) the Material Interface Filter should accept 
down converted unsigned chars or default variables, 2) a filter should be 
created to convert to unsigned chars (with appropriate scaling), or 3) any 
appropriate reader should allow down convert .  Further, the Material Interface 
Filter has been hard coded to look for certain variable names (that it knows 
are down converted).  These are named Material volume fraction - # where #  
is 1, 2, 3, 4, etc or Volume Fraction - # where # is 1, 2, 3, 4, etc.


Berk - does this sound right to you?  I can think of one simple, short term 
option - I wonder if it is possible to write some simple python that would do 
the magic in a programmable filter?  Also, if you like, I can write up a 
bug/feature request.

Alan




From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Berk Geveci
Sent: Tuesday, April 09, 2013 1:35 PM
To: Kashiwa, Bryan A. (LANL)
Cc: ParaView@paraview.org
Subject: [EXTERNAL] Re: [Paraview] Material Interface Filter

Hi Bucky,

I have been meaning to investigate this but I have been sick. I will have an 
answer for you in a day or two.

-berk


On Tue, Apr 9, 2013 at 11:44 AM, Kashiwa, Bucky 
b...@lanl.govmailto:b...@lanl.gov wrote:
So I'm trying to use the Material Interface Filter:

http://www.paraview.org/Wiki/ParaView/Users_Guide/List_of_filters#Material_Interface_Filter

and have carefully created XML datafiles using vtkNonOverlappingAMR (*.vth) 
format.  Unfortunately the v3.98.1 gui does not furnish the Properties option 
'Down Convert Volume Fractions' when reading in the datafiles in *.vth format.  
 (In fact the Properties menu has only the 'Default Number of Levels' slider, 
and no cell data selector, and no 'Down Convert..' selector.)  Consequently the 
Material Interface Filter has an empty choice for 'Select Material Fraction 
Arrays', and so the filter does not know what to do.  Alas, the only format 
that seems to generate the 'Down Convert..' option is *.spct, which, of course, 
we do not have in this case.

Is there another filter that I need to run prior to doing 'Material Interface 
Filter', or am I just plain out of luck here?

Thanks for your very capable help.
===73
Bucky Kashiwa PhD, PE   Post: MS B216, Los Alamos, NM  87545   
  Ofc: TA3-SM123-RM276 Email: b...@lanl.govmailto:b...@lanl.gov, 
kash...@qwest.netmailto:kash...@qwest.net  
Voice: 505-667-8812tel:505-667-8812  Fax: 
505-665-5926tel:505-665-5926  
  Home: 505-988-7332tel:505-988-7332   Cell: 
505-795-5581tel:505-795-5581  
===73


___
Powered by www.kitware.comhttp://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