<div dir="ltr"><div dir="ltr">VTK doesn't have solid built in support for this.</div><div dir="ltr"><br></div><div dir="ltr">The prevailing strategy for data that is not strictly aligned on points or cells is to make a field data array and then add to the cells/points an index array that points into the field array. The indexing can make use of standard face and edge ordering for cases where a single cell requires multiple values. Gauss Points (<a href="https://www.vtk.org/Wiki/images/7/78/VTK-Quadrature-Point-Design-Doc.pdf">https://www.vtk.org/Wiki/images/7/78/VTK-Quadrature-Point-Design-Doc.pdf</a>) and XDMF's FiniteElementFunctions are examples.</div><div dir="ltr"><br></div><div dir="ltr">Note that the approach tends to lead to custom filters that know how to work with these "non-standard" data arrays.<br><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer</div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 7, 2019 at 1:22 PM Bosshard Christoph HSLU T&A <<a href="mailto:christoph.bosshard@hslu.ch">christoph.bosshard@hslu.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi<br>
<br>
To analyze a flow, I need to read in a surfaceScalarField from OpenFOAM. An<br>
example is OpenFOAM/tutorials/incompressible/icoFoam/cavity/cavity/0.1$/phi.<br>
This is a field that is defined on the faces (opposed to point values and cell<br>
values). vtkOpenFOAMReader does not read in this field, so I have to write new<br>
code for this purpose. My question is: Is there any possibility to store this<br>
field in vtk? I cannot use the point or cell values.  For this example, the<br>
velocity U (cell) contains 400 values, the coordinates (point) 882 values, but<br>
the phi field (face) 760 values. Any help would be much appreciated.<br>
Christoph<br>
</p>
</div>

_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>