# Status of Higher Order element support in Paraview/VTK

**URL:** https://discourse.paraview.org/t/status-of-higher-order-element-support-in-paraview-vtk/5587
**Category:** ParaView Support
**Created:** [October 16, 2020, 5:48pm UTC](https://discourse.paraview.org/t/status-of-higher-order-element-support-in-paraview-vtk/5587 "2020-10-16T17:48:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rweed17](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@rweed17](https://discourse.paraview.org/u/rweed17)
#### Post date: [October 16, 2020, 5:48pm UTC](https://discourse.paraview.org/t/status-of-higher-order-element-support-in-paraview-vtk/5587/1 "2020-10-16T17:48:44Z")

</div>

Hi.

Can someone please give me the status of support for the VTK\_HIGHER\_ORDER\_TETRAHEDRON and VTK\_HIGHER\_ORDER\_WEDGE cell types in Paraview.  
I have an application that uses a mix of VTK\_TRI\_QUADRATIC\_HEXAHEDRON (27 node hex)  
and the 15 node tet and 21 node wedge that map to VTK\_HIGHER\_ORDER\_TETRAHEDRON and  
VTK\_HIGHER\_ORDER\_WEDGE. I’ve verified by looking at vtkHigherOrderTetra.cxx and vtkHigherOrderWedgd.cxx that these elements are the same (in terms of node ordering and interpolants) as what I’m using. They only previous Support posts I can find that touched on  
these elements was from 2012 and mentioned something about only being supported as vtkGenericDataSet meshes. I tried setting the appropriate cell types (29, 64, and 65) in a VTK legacy unstructured grid file but got errors about 3D cells not defined or something like that).

So questions.

1. are the HIGHER\_ORDER\_TETRA and HIGHER\_ORDER\_WEDGE cells supported by default in  
the most recent Paraview
2. are these only supported by the XML file format
3. are they supported in unstructured grid files (ie. .vtu etc) or is this still something that must  
be done with vtkGenericDataSet. If so, can someone give me a small XML example of  
what the file should look like

Thanks  
RW

---

<div class="post-metadata">

### Author: ![ssss](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ssss/32/2358_2.png) [@ssss](https://discourse.paraview.org/u/ssss)
#### Post date: [October 18, 2020, 12:28pm UTC](https://discourse.paraview.org/t/status-of-higher-order-element-support-in-paraview-vtk/5587/2 "2020-10-18T12:28:27Z")

</div>

1. Yes they are supported
2. I think so. I really think that one should avoid the legacy VTK format and uniquely rely on generating XML files
3. They are supported in `vtkUnstructuredGrid`. You can use ParaView’s source `UnstructuredCellTypes` to generate a mesh using the high order elements of your interest. You can then export this file in ascii vtu XML formart using Save Data.

You can also search in the VTK code base for your high-order cells types to understand how to deal with those elements (the initialization of these elements is a bit tricky…).

You can also take a look at other codes such as `FireDrake` to better understand the treatment of high-order cells. For example:

> **[firedrake.paraview\_reordering — Firedrake 0.13.0+3880.g599658ae documentation](https://www.firedrakeproject.org/_modules/firedrake/paraview_reordering.html)**
