Re: [Paraview] PV 3.10.1 computing vorticity from vector field

2011-09-03 Thread Andy Bauer
What variables are shown under the information tab of the object inspector
when the gradient of unstructured grids filter is selected?  If nothing is
listed there, what about the filter before that and what field are you using
in the gradient filter?

Andy



On Sat, Sep 3, 2011 at 7:10 AM, Stephen Wornom wrote:

> Andy Bauer wrote:
>
>> For computing vorticity, depending on the grid type you can also use the
>> Gradient of Unstructured Datasets filter.  There is an option to compute
>> vorticity for 3 component arrays (i.e. velocity).It works on both point
>> data and cell data and the output will be the same type of field data.  I'm
>> about to change this filter so that it will work with all types of VTK
>> grids.
>>
>> Andy
>>
>> On Thu, Jun 2, 2011 at 12:29 PM, Tim Gallagher 
>> > tim.gallagher@gatech.**edu >> wrote:
>>
>>The output from the ComputeDerivatives is Cell Data. To do those
>>things, you want to make it Point Data with another
>>CellDataToPointData filter.
>>
>>The calculator would see it if you changed it from point data to
>>cell data. But since you want to do other stuff with it, add the
>>interpolation filter again and then it will appear with the rest
>>of your point data.
>>
>>  The display has the vorticity now. I would like to do magnitituse
> vorticity contours but the contour menu does not show the vorticity. Show I
> used the calculator to create a scalar vortmag.The contour menu does not
> show the vortmag. What must I do to visualise vortmag?
> Thanks for your help,
> Stephen
>
>>
>>
>>Tim
>>
>>- Original Message -
>>From: "Stephen Wornom" >>
>>To: gtg0...@mail.gatech.edu 
>> > >
>>Cc: "ParaView list" >**>
>>Sent: Thursday, June 2, 2011 12:26:04 PM
>>Subject: Re: [Paraview] PV 3.10.1 computing vorticity from vector
>>field
>>
>>Tim Gallagher wrote:
>>> 1. If it's cell centered data, apply the CellDataToPointData
>>filter. If it's point data, skip this step
>>> 2. Apply the ComputeDerivatives filter. Choose your velocity
>>vector as the Vectors argument, set the Output Vector Type to
>>Vorticity. I usually also set Output Tensor Type to nothing unless
>>you need it.
>>> 3. Hit apply.
>>>
>>Works correctly but what must I do to:
>>1 make a vector or contour plot
>>2 tracer plot or vorticity lines (like streamlines) plot?
>>The choice for these is only the velocity field that I read.
>>Calculator does not see the vorticity vector that was created.
>>Thanks for you help,
>>Stephen
>>> Tim
>>>
>>> - Original Message -
>>> From: "Stephen Wornom" >>
>>> To: paraview@paraview.org 
>>> Sent: Wednesday, June 1, 2011 10:55:12 AM
>>> Subject: [Paraview] PV 3.10.1 computing vorticity from vector field
>>>
>>> What are the steps to compute the vorticity vector from the
>>velocity vector?
>>> Stephen
>>>
>>>
>>
>>
>>--
>>stephen.wor...@inria.fr 
>> > >
>>2004 route des lucioles - BP93
>>Sophia Antipolis
>>06902 CEDEX
>>
>>Tel: 04 92 38 50 54
>>Fax: 04 97 15 53 51
>>
>>
>>__**_
>>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
>>
>>
>> --**--**
>> 
>>
>> __**_
>> 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 

[Paraview] Fail to get the input of a mapper

2011-09-03 Thread 沈恩亚
Dear all,

I am trying to get the input of a mapper briefly as follows:

*vtkMapper* mapper = actor->GetMapper();
vtkDataSet* input = mapper->GetInput();
int numPoints = input->GetNumberOfPoints();*

but faild.

I found that the numPoints is A (such as 400) when the representation of a
data is *Outline*, and B (such as 5500) when the representation of the same
data is *Surface*.

It seems that I only got part(s) of the whole data. What is wrong and how to
get the whole data?

Any advice would be appreciated!

Thanks!
___
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