[Paraview] Parallel writer in pvpython/pvbatch

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Aug 9 12:03:33 EDT 2013


You could also use the CreateWriter(...) API to create the appropriate
writer: http://paraview.org/Wiki/ParaView/Python_Scripting#Writing_Data_Files_.28ParaView_3.9_or_later.29

As Burlen suggested, you can look at simple.py or refer to the
autogenerated Python documentation :
http://www.paraview.org/paraview/help/api-documentation.html

Utkarsh

On Fri, Aug 9, 2013 at 12:05 PM, Burlen Loring <bloring at lbl.gov> wrote:
> On 08/09/2013 02:33 AM, Paul Melis wrote:
>>
>> Hi folks,
>>
>> Is it possible to write data to a parallel XML format (say, pvti) from
>> pvbatch or pvpython? I can't seem to find the relevant classes vtkXMLP...
>> under the paraview module. I found some older references to a module named
>> paraview.vtk.io containing those classes, but that seems to be missing, at
>> least in 3.98.1 and 4.0.1
>>
>> Thanks,
>> Paul
>>
> Yup, that's doable, the following example works for me. if you haven't done
> so yet you might want to browse through the "simple.py" script. There are
> numerous helper functions defined and it also gives some idea about python
> capabilities and the underlying infrastructure.
>
> from paraview.simple import *
> ws=Wavelet()
> Show(ws)
> Render()
> w=XMLPImageDataWriter()
> w.FileName = 'test.pvti'
> w.UpdatePipeline()
>
> _______________________________________________
> 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