>From my understanding of your method, you want to use the progression of 
>"time" to iterate across attribute displays?

You don't need GridType="Subset" for that (and I don't think Xdmf3 uses that 
designation anyway). Just use XPointers to point the grids to the topology and 
geometry of the first one.

Andrew Burns
Software Engineer | SAIC
Phone: 410-306-0409
ARL DSRC
[email protected]

-----Original Message-----
From: ParaView [mailto:[email protected]] On Behalf Of Daniel Frisch
Sent: Wednesday, January 25, 2017 1:14 PM
To: [email protected]
Subject: Re: [Paraview] [Non-DoD Source] XDMF crash

All active links contained in this email were disabled. Please verify the 
identity of the sender, and confirm the authenticity of all links contained 
within the message prior to copying and pasting the address to a Web browser. 


________________________________



Hello Mr. Burns, thank you very much for your helpful answer. I changed the 
XDMF file. But now I have another question. 

Now I have problems with GridType="SubSet". ParaView doesn't view the second 
and third timestep. Their grids are referenced as SubSet from the first grid. 

This is the reason why I am doing all this: I want ParaView change the color on 
a static, fixed, large geometry as quickly as if I switched the surface 
coloring variable in the Active Variables Controls dropdown, but using the time 
playback features. It is very inconvenient to change the "timestep" by 
selecting an other variable in a Color Map drop-down menu with thousands of 
entries. Is this even possible in ParaView?




This is my XDMF content:


<?xml version="1.0" ?>

<Xdmf>

<Domain>

<Grid CollectionType="Temporal" GridType="Collection" Name="TimeSeriesGrid">

<Grid GridType="Uniform" Name="MainGrid">

<Time Value="0"/>

<Topology NumberOfElements="8" TopologyType="Triangle">

<DataItem DataType="Int" Dimensions="8 3" Format="XML">2 5 1    2 6 5    2 7 6  
  2 3 7    8 7 3    4 8 3    1 5 4    8 4 5</DataItem>

</Topology>

<Geometry GeometryType="XYZ">

<DataItem Dimensions="9 3" Format="XML">-1 1 2    0 0 0    1 0 0    1 1 0    0 
1 0    0 0 1    1 0 1    1 1 .2    0 1 .2</DataItem>

</Geometry>

<Attribute Center="Node" Name="Values">

<DataItem Dimensions="9" Format="XML">0 0 0 0 0 1 1 1 1</DataItem>

</Attribute>

</Grid>

<Grid GridType="Subset" Name="T1" Section="All">

<Grid Name="Target" 
Reference="XML">/Xdmf/Domain/Grid/Grid[@Name=&quot;MainGrid&quot;]</Grid>

<Time Value="0.5"/>

<Attribute Center="Node" Name="Values">

<DataItem Dimensions="9" Format="XML">0 1 2 3 4 5 6 7 8</DataItem>

</Attribute>

</Grid>

<Grid GridType="Subset" Name="T2" Section="All">

<Grid Name="Target" 
Reference="XML">/Xdmf/Domain/Grid/Grid[@Name=&quot;MainGrid&quot;]</Grid>

<Time Value="1"/>

<Attribute Center="Node" Name="Values">

<DataItem Dimensions="9" Format="XML">8 7 6 5 4 3 2 1 0</DataItem>

</Attribute>

</Grid>

</Grid>

</Domain>

</Xdmf>


2017-01-25 16:58 GMT+01:00 Burns, Andrew J CTR USARMY RDECOM ARL (US) 
<[email protected] < Caution-mailto:[email protected] > 
>:


        This is because the Xdmf3 reader does not support the Hyperslab 
Timetype. One Time item per grid is the preferred method.
        
        Andrew Burns
        Software Engineer | SAIC
        Phone: 410-306-0409 < tel:410-306-0409 > 
        ARL DSRC
        [email protected] < 
Caution-mailto:[email protected] > 
        
        -----Original Message-----
        From: ParaView [Caution-mailto:[email protected] < 
Caution-mailto:[email protected] > ] On Behalf Of Daniel Frisch
        Sent: Wednesday, January 25, 2017 8:25 AM
        To: [email protected] < Caution-mailto:[email protected] > 
        Subject: [Non-DoD Source] [Paraview] XDMF crash
        
        All active links contained in this email were disabled. Please verify 
the identity of the sender, and confirm the authenticity of all links contained 
within the message prior to copying and pasting the address to a Web browser.
        
        
        ________________________________
        
        
        
        I generated the following XDMF file and tried to open it in ParaView. 
When I open it, I get a dialog with three readers to choose:
        - XDMF reader
        - XDMF3 reader
        - XDMF3 reader (Top Level Partition)
        
        I can open the file with "XDMF reader", but when I open it with the 
other two readers, ParaView (5.1.0 64-bit Mac) crashes.
        
        Application Specific Information:
        terminating with uncaught exception of type XdmfError: 'Value' not in 
itemProperties in XdmfTime::populateItem
        abort() called
        
        But I generated the file according to this recommendation < 
Caution-Caution-http://www.paraview.org/Wiki/ParaView/Data_formats#Reading_a_time_varying_Raw_file_into_Paraview
 < 
Caution-http://www.paraview.org/Wiki/ParaView/Data_formats#Reading_a_time_varying_Raw_file_into_Paraview
 >  >  and according to the XDMF3 < 
Caution-Caution-http://www.xdmf.org/index.php/XDMF_Model_and_Format < 
Caution-http://www.xdmf.org/index.php/XDMF_Model_and_Format >  >  standard. 
When I try to open this public example < 
Caution-Caution-http://www.paraview.org/Wiki/ParaView/Data_formats#Reading_a_time_varying_Raw_file_into_Paraview
 < 
Caution-http://www.paraview.org/Wiki/ParaView/Data_formats#Reading_a_time_varying_Raw_file_into_Paraview
 >  >  with XDMF3 in ParaView, it crashes, too.
        


        Now this is the content of my XDMF file:
        
        
        <?xml version="1.0" ?>
        
        <Xdmf>
        
            <Domain>
        
                <Topology NumberOfElements="8" TopologyType="Triangle">
        
                    <DataItem DataType="Int" Dimensions="8 3" Format="XML">2 5 
1    2 6 5    2 7 6    2 3 7    8 7 3    4 8 3    1 5 4    8 4 5</DataItem>
        
                </Topology>
        
                <Geometry GeometryType="XYZ">
        
                    <DataItem Dimensions="9 3" Format="XML">-1 1 2    0 0 0    
1 0 0    1 1 0    0 1 0    0 0 1    1 0 1    1 1 .2    0 1 .2</DataItem>
        
                </Geometry>
        
                <Grid CollectionType="Temporal" GridType="Collection" 
Name="TimeSeriesGrid">
        
                    <Time TimeType="HyperSlab">
        
                        <DataItem Dimensions="3" Format="XML" 
NumberType="Float">0.0 1.0 2</DataItem>
        
                    </Time>
        
                    <Grid GridType="Uniform" Name="T1">
        
                        <Topology Reference="/Xdmf/Domain/Topology[1]"/>
        
                        <Geometry Reference="/Xdmf/Domain/Geometry[1]"/>
        
                        <Attribute Center="Node" Name="Values">
        
                            <DataItem Dimensions="9" Format="XML">0 1 2 3 4 5 6 
7 8</DataItem>
        
                        </Attribute>
        
                    </Grid>
        
                    <Grid GridType="Uniform" Name="T2">
        
                        <Topology Reference="/Xdmf/Domain/Topology[1]"/>
        
                        <Geometry Reference="/Xdmf/Domain/Geometry[1]"/>
        
                        <Attribute Center="Node" Name="Values">
        
                            <DataItem Dimensions="9" Format="XML">8 7 6 5 4 3 2 
1 0</DataItem>
        
                        </Attribute>
        
                    </Grid>
        
                </Grid>
        
            </Domain>
        
        </Xdmf>
        
        
        


_______________________________________________
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