[Paraview] How to read the file info in *pvd file

Cory Quammen cory.quammen at kitware.com
Wed Nov 15 13:05:18 EST 2017


The file names are embedded in the same XML element as the time step:

<DataSet timestep="+1.98800000e+03"  part="001" file="Sout_1012.pvtu"/>

But I'll be that's not how you want to access them.

Next question: From where do you want to access the file names? A Python
script? In the UI?

On Wed, Nov 15, 2017 at 12:35 PM, Ke Gao <ke.gao.ut at gmail.com> wrote:

> Hi,
>
> I mean how to get the file name info such as "Sout_1012.pvtu",
> "Sout_1013.pvtu". Currently I can only read the timestep info such as
> "+1.98800000e+03".
>
> Many thanks.
>
>
> <?xml version="1.0"?>
>   <VTKFile type="Collection" version="0.1" byte_order="LittleEndian">
>   <Collection>
>     <DataSet timestep="+1.98800000e+03"  part="001" file="Sout_1012.pvtu"/>
>     <DataSet timestep="+1.99000000e+03"  part="001" file="Sout_1013.pvtu"/>
>     <DataSet timestep="+1.99200000e+03"  part="001" file="Sout_1014.pvtu"/>
>
> On Wed, Nov 15, 2017 at 10:33 AM, Cory Quammen <cory.quammen at kitware.com>
> wrote:
>
>> What do you mean by "file info"? File name? Size of the file? Data arrays
>> in the file?
>>
>> - Cory
>>
>> On Tue, Nov 14, 2017 at 4:45 PM, Ke Gao <ke.gao.ut at gmail.com> wrote:
>>
>>> Does anyone know how to read the file info from *pvd file? I know how to
>>> get the time step values, just using the keyword of “TimestepValues”,
>>> however, I tried different ways, still haven’t figured out how to read the
>>> file info.
>>>
>>> Thanks
>>>
>>> <?xml version="1.0"?>
>>>   <VTKFile type="Collection" version="0.1" byte_order="LittleEndian">
>>>   <Collection>
>>>     <DataSet timestep="+1.98800000e+03"  part="001"
>>> file="Sout_1012.pvtu"/>
>>>     <DataSet timestep="+1.99000000e+03"  part="001"
>>> file="Sout_1013.pvtu"/>
>>>     <DataSet timestep="+1.99200000e+03"  part="001"
>>> file="Sout_1014.pvtu"/>
>>> --
>>> ............................................................
>>> ............................................................
>>> ......................
>>> Ke Gao
>>>
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>>
>> --
>> Cory Quammen
>> Staff R&D Engineer
>> Kitware, Inc.
>>
>
>
>
> --
> ............................................................
> ............................................................
> ......................
> Ke Gao
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171115/860f7479/attachment.html>


More information about the ParaView mailing list