[Paraview] XDMF Set
David E DeMarle
dave.demarle at kitware.com
Wed May 13 20:28:58 EDT 2015
I believe in this case the intent was to get the edge'th edge out of the
face'th face out of the cell'th cell.
So in your example we get four edges out.
cell 0's 0'th face's 0'th edge,
cell 0's 1'st face's 1'st edge,
cell 1's 2'nd face's 0'th edge,
and
cell 1's 3'rd face's 2'nd edge.
The ordering in each case is defined by VTK.
However, in the code (specifically vtkXdmfHeavyData.cxx:1507) it looks like
it does exactly as you say.
This appears to be a bug.
In the Xdmf3 version we do it properly (see vtkXdmf3DataSet.cxx:2205).
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Fri, Apr 17, 2015 at 5:39 AM, Chris Richardson <chris at bpi.cam.ac.uk>
wrote:
>
> I would like to be able to specify data, or subsets of data in the XDMF
> format with Edge or Facet sets.
>
> According to the header file of XdmfSet.h:
>
> XdmfSet is a Class that handles sets of nodes,cells,faces, and edges
> on an XdmfGrid. They may be centered on the Node, Edge,
> Face, Cell. An XdmfSet can have from 1 to 3 DataItems. The last
> DataItem
> is always the "Ids" or the indexes into Nodes, Cells, etc. If
> SetType is
> "Face" or "Edge", the First DataItem defines the CellIds. If
> SetType is
> "Edge" second DataItem defines FaceIds
>
> I have two questions:
>
> 1) What is the purpose of the FaceIds for a set of Edges?
>
> From what I can tell, using ParaView, the three dataitems provide:
> global CellIDs, unused FaceIDs, cell-local EdgeIds
>
> e.g. in this case, the first DataItem "0 0 1 1" lists the cells,
> the second DataItem "0 1 2 3" is ignored, and the third DataItem "0 1
> 0 2"
> lists the cell-local Edges which have data attached?
>
> <Set SetType="Edge" Name="edgeSet">
> <DataItem NumberType="Int" Dimensions="4" Format="XML">
> 0 0 1 1
> </DataItem>
> <DataItem NumberType="Int" Dimensions="4" Format="XML">
> 0 1 2 3
> </DataItem>
> <DataItem NumberType="Int" Dimensions="4" Format="XML">
> 0 1 0 2
> </DataItem>
> <Attribute Name="Set Values" Center="Edge">
> <DataItem Format="XML" Dimensions="4">
> 100 200 400 600
> </DataItem>
> </Attribute>
> </Set>
>
> Is that correct?
>
> 2) How can I specify an Edge set in 2D? Nothing seems to work in this case,
> as ParaView complains that the cells have invalid Faces.
>
>
> --
> Chris Richardson
> BP Institute
> Madingley Road
> Cambridge CB3 0EZ
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150513/b8d82a1e/attachment.html>
More information about the ParaView
mailing list