[Paraview] Sparse Cell Data in a 3DCoRectMesh
Rovinelli, Andrea
arovinel at purdue.edu
Wed Nov 5 12:42:12 EST 2014
Hello,
I have a set of sparse cell data that i want to visualize as cells.
the idea is :
1 create a 3d corectangular grid
2 create a subset grid
3 assign attributes to the new subset
I want to select the cells that contain data utilizing a subset of grid. Utilizing the xdmf website wrote this peace of code
<?xml version="1.0"?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd"[]>
<Xdmf>
<Domain>
<Grid Name="hole domain" GridType="Uniform">
<Topology TopologyType="3DCoRectMesh" Dimensions="2 2 3"></Topology>
<Geometry Type="Origin_DxDyDz">
<!-- Origin -->
<DataItem Dimensions="3" NumberType="Float" Format="XML">0 0 0</DataItem>
<!-- DxDyDz (Spacing/Resolution)-->
<DataItem Dimensions="3" NumberType="Float" Format="XML">1 1 1</DataItem>
</Geometry>
</Grid>
<Grid Name="Portion" GridType="Subset" Section="DataItem">
<!-- Select 2 cells from another grid. Which 2 are defined by the DataItem -->
<DataItem
DataType="Int"
Dimensions="2"
Format="XML">
0 2
</DataItem>
<Grid Name="Target" Reference="XML">
/Xdmf/Domain/Grid/Grid[@Name="hole domain"]
</Grid>
<Attribute Name="New Values" Center="Cell">
<DataItem Format="XML" Dimensions="2">
100 150
</DataItem>
</Attribute>
</Grid>
</Domain>
</Xdmf>
Unfortunately wasn’t able to make it work
Any Idea and/or help would be appreciated
Thanks
Andrea Rovinelli
More information about the ParaView
mailing list