[Paraview] Accessing field and wind blade data (together) in python filter

Sohail Shafii sohailshafii at yahoo.com
Thu Jul 28 12:49:29 EDT 2011


Thank you for the suggestions.  Since the data sets were on separate ports, here's what I did: I did a re-sample with data set to map the input (field) to the source (blade).  But the blade cell data items were missing in the result, so I then did a Group data set with the result of the mapping and the blade.  This means that I do not have to make any changes in the vtkWindBladeReader code.

Sohail


________________________________
From: David E DeMarle <dave.demarle at kitware.com>
To: Sohail Shafii <sohailshafii at yahoo.com>
Cc: "paraview at paraview.org" <paraview at paraview.org>
Sent: Thursday, July 28, 2011 9:25 AM
Subject: Re: [Paraview] Accessing field and wind blade data (together) in python filter

One thought that comes to mind is the Resample with DataSet filter,
which is a filter which has the effect of merging pipeline branches
together.

Set the Input to be the field and the Source to be the blade and the
result will be a copy of the blade with the data values of the field
sampled onto the points of the blade.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, Jul 26, 2011 at 6:29 PM, Sohail Shafii <sohailshafii at yahoo.com> wrote:
> Hi,
> Right now the field and blade data are separate for the wind blade reader
> (as expected).  I was wondering if, after creating a python filter below the
> blade object in the pipeline, I could somehow access the field data?  I'm
> guessing not based on some experimenting.
> I need to do this because I have to correlate points on the blade to the
> same areas in the field to calculate certain quantities (which requires
> interpolated field values).  If the python route is not possible then I can
> just make changes in vtkWindBladeReader instead.
> Sohail
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110728/d39a01f2/attachment.htm>


More information about the ParaView mailing list