Hermano,

Here is an example *pvd file.

Samuel Key
FMA Development
1005 39th Ave NE
Great Falls, Montana,  USA

On 9/28/2017 1:21 PM, Andy Bauer wrote:
Hi,

The XML readers and writers don't properly support time so currently the best way would be to create a pvd file which would contain the time and time step information. I don't know of anything in VTK or ParaView that writes out pvd files (I only see a vtkPVDReader in ParaView) but the format is meant to be simple. I would suggest doing it directly in the Catalyst Python script through some Python library as the best workaround for now.



On Thu, Sep 28, 2017 at 3:08 PM, Hermano Lustosa <hllust...@gmail.com <mailto:hllust...@gmail.com>> wrote:

    Ohh I see...

    Just another quick question. Currently, I am creating a series of
    VTU and VTI files whose names follow the pattern mysimulation-t%d.
    With %d being replaced by an integer index identifying the time
    step. I am about to code a simple PVD writer to consolidate the
    output and also to assign the real time step value in seconds
    instead of maintaining this integer index.

    It doesn't seem to be very hard to create this PVD file by hand,
    but I was just wondering if there is something in the VTK library
    that could automatically create these files for me. I still could
    not understand how I can assign the real time step in seconds to a
    file, don't know if its even possible with VT? files. If this is
    possible, some directions that could help me implement that would
    be very nice!

    Thanks once again!





    On Thu, Sep 28, 2017 at 3:50 PM, Andy Bauer
    <andy.ba...@kitware.com <mailto:andy.ba...@kitware.com>> wrote:

        Hi,

        The TemporalStatistics filter (or any other filter that
        iterates through time steps) doesn't currently work with
        Catalyst. We hope to change this in the future but because of
        the way that the ParaView pipeline works it makes it a
        non-trivial change.

        Andy

        On Thu, Sep 28, 2017 at 2:40 PM, Hermano Lustosa
        <hllust...@gmail.com <mailto:hllust...@gmail.com>> wrote:

            I have doubt about using paraview catalyst from my
            simulation code. Suppose I created a simple Paraview
            pipeline containing the TemporalStatistics filter only.

            Initially, it is not clear for which "dummy" source is
            adequate for the script. I used a simple programmable
            source or even a unstructured cell types source to create
            the python script. Then, I call the script from catalyst
            in my code like this:

            for each time step
                update grid;
                create data description;
                call coprocessing method;

            The problem is that I expect the TemporalStatistics filter
            to create a single file containing the statistics for all
            the time steps. However, this approach creates a file for
            every time step. What I should do in the catalyst (or
            during the script creation) to have a single output for
            this filter.

            Thanks in advance.





            _______________________________________________
            Powered by www.kitware.com <http://www.kitware.com>

            Visit other Kitware open-source projects at
            http://www.kitware.com/opensource/opensource.html
            <http://www.kitware.com/opensource/opensource.html>

            Please keep messages on-topic and check the ParaView Wiki
            at: http://paraview.org/Wiki/ParaView
            <http://paraview.org/Wiki/ParaView>

            Search the list archives at:
            http://markmail.org/search/?q=ParaView
            <http://markmail.org/search/?q=ParaView>

            Follow this link to subscribe/unsubscribe:
            http://public.kitware.com/mailman/listinfo/paraview
            <http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

<?xml version="1.0"?>

<!--
   Title: FRAME SECTION (w/ SUBCYCLING)
 Program:  FMA-3D 
 Version:  V31.19 
    Date: 27-MAY-2017 
    Time: 20:32:48
 -->

<!--
 Last Problem Time:   2.0002428E-02
 Last Cycle Number:     3551
 -->

<VTKFile type="Collection" version="0.1" byte_order="LittleEndian">
  <Collection>
    <DataSet timestep=" 5.62629E-06" part="001" file="fmavto.m001.t001.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 5.62629E-06" part="002" file="fmavto.m002.t001.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 5.62629E-06" part="003" file="fmavto.m003.t001.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 5.62629E-06" part="004" file="fmavto.m004.t001.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00328E-03" part="001" file="fmavto.m001.t002.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00328E-03" part="002" file="fmavto.m002.t002.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00328E-03" part="003" file="fmavto.m003.t002.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00328E-03" part="004" file="fmavto.m004.t002.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 4.00320E-03" part="001" file="fmavto.m001.t003.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 4.00320E-03" part="002" file="fmavto.m002.t003.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 4.00320E-03" part="003" file="fmavto.m003.t003.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 4.00320E-03" part="004" file="fmavto.m004.t003.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 6.00375E-03" part="001" file="fmavto.m001.t004.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 6.00375E-03" part="002" file="fmavto.m002.t004.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 6.00375E-03" part="003" file="fmavto.m003.t004.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 6.00375E-03" part="004" file="fmavto.m004.t004.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 8.00380E-03" part="001" file="fmavto.m001.t005.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 8.00380E-03" part="002" file="fmavto.m002.t005.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 8.00380E-03" part="003" file="fmavto.m003.t005.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 8.00380E-03" part="004" file="fmavto.m004.t005.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 1.00035E-02" part="001" file="fmavto.m001.t006.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 1.00035E-02" part="002" file="fmavto.m002.t006.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 1.00035E-02" part="003" file="fmavto.m003.t006.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 1.00035E-02" part="004" file="fmavto.m004.t006.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 1.20032E-02" part="001" file="fmavto.m001.t007.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 1.20032E-02" part="002" file="fmavto.m002.t007.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 1.20032E-02" part="003" file="fmavto.m003.t007.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 1.20032E-02" part="004" file="fmavto.m004.t007.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 1.40030E-02" part="001" file="fmavto.m001.t008.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 1.40030E-02" part="002" file="fmavto.m002.t008.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 1.40030E-02" part="003" file="fmavto.m003.t008.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 1.40030E-02" part="004" file="fmavto.m004.t008.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 1.60029E-02" part="001" file="fmavto.m001.t009.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 1.60029E-02" part="002" file="fmavto.m002.t009.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 1.60029E-02" part="003" file="fmavto.m003.t009.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 1.60029E-02" part="004" file="fmavto.m004.t009.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 1.80029E-02" part="001" file="fmavto.m001.t010.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 1.80029E-02" part="002" file="fmavto.m002.t010.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 1.80029E-02" part="003" file="fmavto.m003.t010.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 1.80029E-02" part="004" file="fmavto.m004.t010.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00024E-02" part="001" file="fmavto.m001.t011.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00024E-02" part="002" file="fmavto.m002.t011.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00024E-02" part="003" file="fmavto.m003.t011.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep=" 2.00024E-02" part="004" file="fmavto.m004.t011.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
  </Collection>
</VTKFile>
_______________________________________________
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

Reply via email to