<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>I figured using a PVD file does the job, for example</div>
<div><br>
</div>
<div>
<div><VTKFile type="Collection" version="1.0" byte_order="LittleEndian" header_type="UInt64"></div>
<div> <Collection></div>
<div> <DataSet part="0" file="sphere_0.vtu"/></div>
<div> <DataSet part="1" file="sphere_1.vtu"/></div>
<div> <DataSet part="2" file="sphere_2.vtu"/></div>
<div> <DataSet part="3" file="sphere_3.vtu"/></div>
<div> <DataSet part="4" file="sphere_4.vtu"/></div>
<div> <DataSet part="5" file="sphere_5.vtu"/></div>
<div> <DataSet part="6" file="sphere_6.vtu"/></div>
<div> <DataSet part="7" file="sphere_7.vtu"/></div>
<div> </Collection></div>
<div></VTKFile></div>
</div>
<div><br>
</div>
<div>I’m still interested in getting .pvtu files to work though, if anyone has an idea of how to get it to work with polyhedral cells…</div>
<div><br>
</div>
<div>Best,</div>
<div>Vincent</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"<Le Chenadec>", Vincent Le Chenadec <<a href="mailto:vlc@illinois.edu">vlc@illinois.edu</a>><br>
<span style="font-weight:bold">Date: </span>Monday, January 5, 2015 at 2:40 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Parallel XML VTK with arbitrary polyhedra<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi there,</div>
<div><br>
</div>
<div>I’m attempting to write a parallel XML file to source unstructured data to read in Paraview (written from an in-house fortran CFD code). Everything works out of the box when I use zoo elements (hexahedra, tetrahedra, …), not so when using arbitrary polyhedra.</div>
<div><br>
</div>
<div>I’m attaching a sample test (a sphere discretized on a 16x16x16 lattice, see sphere1.png). The .vtu files I dump seem to be valid, for the external boundaries are displayed accurately when visualizing them separately (see attached sphere2.png to see the
partitioning).</div>
<div><br>
</div>
<div>When loading the .pvtu file, however, the external boundary considers only the zoo elements (hex only, in this case), not the polyhedral cells. Paraview also crashes whenever I apply a filter, which suggests I’m doing something wrong.</div>
<div><br>
</div>
<div>I’m most likely missing something in the .pvtu file? I tried a few things, e.g. adding a <PCells/> element where with <PDataArray/>’s referencing the faces and faceoffsets arrays specific to polyhedral cells, but no success so far… Any input is much welcome
at this point!</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Vincent</div>
<div><br>
</div>
<div>PS: I’m using the 4.2.0 built of Paraview. The ASCII .vtu and .pvtu files I use are attached in a tarball.</div>
</div>
</div>
</span>
</body>
</html>