My simulation software has a functioning VTK XML-formatted, "ascii" output routine. To facilitate datum set transfers, I want to add arbitrary, m-vertex polyhedral finite elements to the simulation software's existing Writer (VTK_POLYHEDRON = 42).

Originally, I used the VTK File Formats Version 4.2 to construct the program's Writer. It is not clear to me what the XML structures should contain with respect to the polyhedral finite elements.

Three files are attached: (1) *.inp is an input snippet for a polyhedral finite element used by the simulation software, (2) *.png is a ParaView screenshot display for this polyhedron read in from an EnSight-formatted file, and (3) *.vtu is a ParaView 'Save Data' output file for this polyhedral finite element.

Referring to the *.vtu file, I am having difficulty relating the simulation software's and EnSight's corresponding input description to the ParaView output description, particularly, "connectivity" and "faces."

Do you have any advice on how I should proceed?

Note: The simulation software does not require the polygon faces to be planar, nor the polyhedron volume to be convex. The simulation software computes proper mean quadrature gradient/divergence operators for non-planar facets and a restricted form of polyhedral star-convexity.

Thanks in advance for the indicating how I should continue,

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


  PHEL   1,99, 1, 1 =  1  2  3  4  5  6 $ PHEL's  POLYG n-tuple
  POLYG  1  1  1  1,4,20,3,2,17         $ POLYG's POINT m-tuple
  POLYG  2  1  2  2,3,7,6
  POLYG  3  1  3  5,18,6,7,19,8
  POLYG  4  1  4  1,5,8,4
  POLYG  5  1  5  1,17,2,6,18,5
  POLYG  6  1  6  3,20,4,8,19,7
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" 
header_type="UInt64">
  <UnstructuredGrid>
    <Piece NumberOfPoints="12" NumberOfCells="1">
      <PointData>
      </PointData>
      <CellData>
      </CellData>
      <Points>
        <DataArray type="Float32" Name="Points" NumberOfComponents="3" 
format="ascii" RangeMin="0.46457400363" RangeMax="1.2312306844">
          0.24899999797 0.34200000763 0.19200000167 0.8259999752 0.2879999876 
0.2879999876
          0.85000002384 0.64899998903 0.26300001144 0.27300000191 0.75 
0.23000000417
          0.31999999285 0.18600000441 0.64300000668 0.67699998617 0.30500000715 
0.68300002813
          0.7879999876 0.6930000186 0.6439999938 0.16500000656 0.74500000477 
0.70200002193
          0.54750001431 0.21500000358 0.25 0.48849999905 0.45600000024 
0.65299999714
          0.47650000453 0.71899998188 0.67299997807 0.56150001287 0.69999998808 
0.24699999392
        </DataArray>
      </Points>
      <Cells>
        <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="0" 
RangeMax="11">
          0 3 11 2 1 8
          6 5 4 9 10 7
        </DataArray>
        <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="12" 
RangeMax="12">
          12
        </DataArray>
        <DataArray type="UInt8" Name="types" format="ascii" RangeMin="42" 
RangeMax="42">
          42
        </DataArray>
        <DataArray type="Int64" Name="faces" format="ascii" RangeMin="0" 
RangeMax="11">
          6 6 0 3 11 2
          1 8 4 1 2 6
          5 6 4 9 5 6
          10 7 4 0 4 7
          3 6 0 8 1 5
          9 4 6 2 11 3
          7 10 6
        </DataArray>
        <DataArray type="Int64" Name="faceoffsets" format="ascii" RangeMin="39" 
RangeMax="39">
          39
        </DataArray>
      </Cells>
    </Piece>
  </UnstructuredGrid>
</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