[Paraview] Parallel Python Programmable Filter Requesting Additional Ghost Data

George Zagaris george.zagaris at kitware.com
Tue Jul 17 13:24:24 EDT 2012


Since you have structured grids, one other possibility is using:
vtkPUniformGridGhostDataGenerator
(http://www.vtk.org/doc/nightly/html/classvtkPUniformGridGhostDataGenerator.html)

Each process constructs a vtkMultiBlockDataSet instance consisting of
the grids/blocks owned by the process with NULL entries for all remote
blocks.
The resulting output of the filter is a vtkMultiBlockDataSet
consisting of the ghosted grid/block instances. Make sure that you
specify the whole-extent for the entire dataset and that for each
block you attach PIECE_EXTENT() in the corresponding vtkInformation.

Let me know if you need more help on this.

Best,
George


On Tue, Jul 17, 2012 at 12:22 PM, Jesus Pulido <jpulido at ucdavis.edu> wrote
> Thank you Berk.
>
> I was under the impression that this command would trigger the reader to
> automatically load in the additional # of requested ghost levels. I tested
> the command and each data piece still has the same extents as before.
>
> Is there any additional way to load in ghost level that's parallel friendly?
> I am aware of the D3 filter but, from the memory usage, it seems that it
> will load in the entire dataset into each processor and this is not feasible
> for large datasets.
>
> I am using binary, "raw" vti piece files each with their own extent of the
> data and a header pvti file.
> The data has no encoded ghost layers between pieces so I was hoping to have
> paraview do that for me.
>
> Jesus
>
>
> On Tue, Jul 17, 2012 at 7:29 AM, Berk Geveci <berk.geveci at kitware.com>
> wrote:
>>
>>
>> self.GetExecutive().GetOutputInformation(0).Set(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_NUMBER_OF_GHOST_LEVELS(),
>> 1)
>>
>>
>> in RequestUpdateExtent script. Of course, this requires that the reader or
>> a filter before the programmable filter is able to provide ghost levels.
>>
>>
>> -berk
>>
>>
>> On Wed, Jul 11, 2012 at 3:04 PM, Jesus Pulido <jpulido at ucdavis.edu> wrote:
>>>
>>> Hello,
>>>
>>> I am trying to request ghost data in my python programmable filter but I
>>> am not sure how to go about and do so. I am assuming the call would go into
>>> the RequestUpdateExtent Script.
>>>
>>> In the C++ equivalent filters that do request ghost data, the call to is
>>> something along the lines of
>>> vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS() , and
>>> there are examples of that in the Paraview source but the way the objects
>>> are defined and called does not translate into Paraview VTK Python. What
>>> would be the appropriate call?
>>>
>>> Thank you,
>>> Jesus
>>>
>>>
>>> _______________________________________________
>>> 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
>


More information about the ParaView mailing list