[Paraview] Vorticity computation from separated velocity array

2012-10-24 Thread 中田拓馬
Dear all,

I am trying to compute vorticity from separated velocity vectors, but
pre-installed filter of paraview seems to require 3-components vector as an
input. Then, I have tried to use the "Python Calculator" filter to
construct it.  I put "hstack([VelocityX, VelocityY, VelocityZ])" into the
"Expression" field following the wiki.  However, it created just a copy of
VelocityX instead of 3-components vector.  How can I construct 3-components
array form separated velocity vectors?

I have also tried to use the "Programmable Filter".  But, it has been
really difficult for me and I could not just extract the vector from the
input.  The vectors live in vtkUnstructuredGrid in a vtkMultiBlockDataSet
and there are no function to extract Point Data form it.

Regards,

Makoto
___
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] Vorticity computation from separated velocity array

2012-10-24 Thread Andy Bauer
What version of ParaView are you using?  I was able to use
"hstack([VelocityX, VelocityY, VelocityZ])" with the Python Calculator
filter in v3.14.1. Alternatively you could try the Calculator filter with
"iHat*VelocityX+jHat*VelocityY+kHat*VelocityZ".

Andy

On Wed, Oct 24, 2012 at 12:17 PM, 中田拓馬  wrote:

> Dear all,
>
> I am trying to compute vorticity from separated velocity vectors, but
> pre-installed filter of paraview seems to require 3-components vector as an
> input. Then, I have tried to use the "Python Calculator" filter to
> construct it.  I put "hstack([VelocityX, VelocityY, VelocityZ])" into the
> "Expression" field following the wiki.  However, it created just a copy of
> VelocityX instead of 3-components vector.  How can I construct 3-components
> array form separated velocity vectors?
>
> I have also tried to use the "Programmable Filter".  But, it has been
> really difficult for me and I could not just extract the vector from the
> input.  The vectors live in vtkUnstructuredGrid in a vtkMultiBlockDataSet
> and there are no function to extract Point Data form it.
>
> Regards,
>
> Makoto
>
>
> ___
> 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] Vorticity computation from separated velocity array

2012-10-24 Thread Karl König
Makoto,

Please see
http://www.paraview.org/Wiki/Beginning_Filters#Calculator_filter and
http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Creating_vectors_from_2_or_3_scalars
on how to combine velocity vector components into a 3-components vector.

Karl


中田拓馬 wrote, On 24.10.2012 18:17:
> Dear all, 
> 
> I am trying to compute vorticity from separated velocity vectors, but
> pre-installed filter of paraview seems to require 3-components vector as
> an input. Then, I have tried to use the "Python Calculator" filter to
> construct it.  I put "hstack([VelocityX, VelocityY, VelocityZ])" into
> the "Expression" field following the wiki.  However, it created just a
> copy of VelocityX instead of 3-components vector.  How can I construct
> 3-components array form separated velocity vectors?  
> 
> I have also tried to use the "Programmable Filter".  But, it has been
> really difficult for me and I could not just extract the vector from the
> input.  The vectors live in vtkUnstructuredGrid in a
> vtkMultiBlockDataSet and there are no function to extract Point Data
> form it.  
> 
> Regards, 
> 
> Makoto

___
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] Vorticity computation from separated velocity array

2012-10-25 Thread 中田拓馬
Karl,

Thank you very much.  The links really help me.

Makoto


2012/10/25 Karl König 

> Makoto,
>
> Please see
> http://www.paraview.org/Wiki/Beginning_Filters#Calculator_filter and
>
> http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Creating_vectors_from_2_or_3_scalars
> on how to combine velocity vector components into a 3-components vector.
>
> Karl
>
>
> 中田拓馬 wrote, On 24.10.2012 18:17:
> > Dear all,
> >
> > I am trying to compute vorticity from separated velocity vectors, but
> > pre-installed filter of paraview seems to require 3-components vector as
> > an input. Then, I have tried to use the "Python Calculator" filter to
> > construct it.  I put "hstack([VelocityX, VelocityY, VelocityZ])" into
> > the "Expression" field following the wiki.  However, it created just a
> > copy of VelocityX instead of 3-components vector.  How can I construct
> > 3-components array form separated velocity vectors?
> >
> > I have also tried to use the "Programmable Filter".  But, it has been
> > really difficult for me and I could not just extract the vector from the
> > input.  The vectors live in vtkUnstructuredGrid in a
> > vtkMultiBlockDataSet and there are no function to extract Point Data
> > form it.
> >
> > Regards,
> >
> > Makoto
>
>
___
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] Vorticity computation from separated velocity array

2012-10-25 Thread 中田拓馬
Andy,

Today, I have tried again on 3.12.0.  I don't know why but today both of
the methods you mentioned work.

Thank you.

Makoto


2012/10/25 Andy Bauer 

> What version of ParaView are you using?  I was able to use
> "hstack([VelocityX, VelocityY, VelocityZ])" with the Python Calculator
> filter in v3.14.1. Alternatively you could try the Calculator filter with
> "iHat*VelocityX+jHat*VelocityY+kHat*VelocityZ".
>
> Andy
>
> On Wed, Oct 24, 2012 at 12:17 PM, 中田拓馬  wrote:
>
>> Dear all,
>>
>> I am trying to compute vorticity from separated velocity vectors, but
>> pre-installed filter of paraview seems to require 3-components vector as an
>> input. Then, I have tried to use the "Python Calculator" filter to
>> construct it.  I put "hstack([VelocityX, VelocityY, VelocityZ])" into the
>> "Expression" field following the wiki.  However, it created just a copy of
>> VelocityX instead of 3-components vector.  How can I construct 3-components
>> array form separated velocity vectors?
>>
>> I have also tried to use the "Programmable Filter".  But, it has been
>> really difficult for me and I could not just extract the vector from the
>> input.  The vectors live in vtkUnstructuredGrid in a vtkMultiBlockDataSet
>> and there are no function to extract Point Data form it.
>>
>> Regards,
>>
>> Makoto
>>
>>
>> ___
>> 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