# About high order non-traditional Lagrange Finite Element

**URL:** https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577
**Category:** ParaView Support
**Created:** [April 1, 2019, 11:58am UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577 "2019-04-01T11:58:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![cfdbooks](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/3bc359/32.png) [@cfdbooks](https://discourse.paraview.org/u/cfdbooks)
#### Post date: [April 1, 2019, 11:58am UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577/1 "2019-04-01T11:58:36Z")

</div>

Does paraview support high order non-traditional Lagrange Finite Element? For example, no solution are saved on vertices, or edge points, or face points, solutions are saved on volume Lagrange points only(All control points are in the volume). Thanks in advance.

---

<div class="post-metadata">

### Author: ![vrkssai](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vrkssai](https://discourse.paraview.org/u/vrkssai)
#### Post date: [April 2, 2019, 3:03am UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577/2 "2019-04-02T03:03:59Z")

</div>

@cfdbooks Welcome to the community. It supports lagrange type of dataset at lobatto points.

> For example, no solution are saved on vertices, or edge points, or face points, solutions are saved on volume Lagrange points only(All control points are in the volume)

You would have to interpolate your data to these points and then plot in Lagrange Hexahedron cell type. I’m assuming you have some data at like Legendre points, make it Lobatto by interpolating from those Legendre points and then write your data.

---

<div class="post-metadata">

### Author: ![cfdbooks](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/3bc359/32.png) [@cfdbooks](https://discourse.paraview.org/u/cfdbooks)
#### Post date: [April 2, 2019, 5:12am UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577/3 "2019-04-02T05:12:20Z")

</div>

Thanks. Is there any reference on high order Lagrange Hexahedron cell, especially the points order?

---

<div class="post-metadata">

### Author: ![vrkssai](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vrkssai](https://discourse.paraview.org/u/vrkssai)
#### Post date: [April 2, 2019, 12:24pm UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577/4 "2019-04-02T12:24:18Z")

</div>

It was actually really difficult to get the point order, but you could check out this post below in the comment section.

> [@Arbitary Order Lagrange Hexahedron Element Connectivity](https://discourse.paraview.org/t/arbitary-order-lagrange-hexahedron-element-connectivity/1153):
>
> The new versions of ParaView(5.5 and above) supports arbitary order lagrange hexahedron elements. The ordering of the points (lagrange points facepoints+interior+corners)associated with the elements hasn’t been provided either in the ParaView reference guide or in VTK file format specification in VTK guide. (For simple hex the ordering of nodes is clockwise from inside the cell for one face and similar for the nodes in the opp face ). How do we figure such ordering or pattern for the Arbitary Or…

Basically from the comments there is a link to blog post, in the blog post’s comments section you get an idea where the ordering, you’ll have to go through the C++ code for that at this link:  
[https://gitlab.kitware.com/nick.laurenson/vtk/blob/d8aa5b89c622cf04b3322112fda420afc9d2a16d/Common/DataModel/vtkLagrangeHexahedron.cxx](https://gitlab.kitware.com/nick.laurenson/vtk/blob/d8aa5b89c622cf04b3322112fda420afc9d2a16d/Common/DataModel/vtkLagrangeHexahedron.cxx)

search for `int vtkLagrangeHexahedron::PointIndexFromIJK(int i, int j, int k, const int* order)`

Giving you a headsup, there are a few bugs in the viewer like below:

# [Segmentation fault while Visualizing/Creating contours,slices.](https://discourse.paraview.org/t/segmentation-fault-while-visualizing-creating-contours-slices/1258)

[ParaView Support](https://discourse.paraview.org/c/paraview-support)

> [@Segmentation fault while Visualizing/Creating contours,slices.](https://discourse.paraview.org/t/segmentation-fault-while-visualizing-creating-contours-slices/1258):
>
> Loading a 2x2x2 dimensions lagrange hexahedron element type of order 1 and trying to visualize the slices, clipping or contour leads to segmentation fault. I suspected corrupted vtk file so I created a sample element from , sources\>alphabetical\>unstructured grid types; Properties: dimensions- 2x2x2, lagrange hexahedron,cell order-1. I chose the default location of clipping or slicing and the Paraview closes with segmentation fault. Anyone able to reproduce this and check? This seems to be a ma…

> [@Vorticity and Gradient python calculator calculation(gives wrong result-Lagrange hexahedron)](https://discourse.paraview.org/t/vorticity-and-gradient-calculation-numerics-gives-wrong-result/1514):
>
> Vorticity calculated for a smooth vortex function using python calculator as curl(Velocity) gives wrong result using the Legrange Hexahedron element. I tried to plot the same in tecplot using a point data and traingulation, the result looks fas it should on tecplot. I used the same number of levels,range,etc. As you can see from the figure for paraview plot the vorticity doesn’t vary in the cell for the paraview plot as it should(since its lagrange hexahedron), …

Just out of curiosity may I know what you are working with or on?

---

<div class="post-metadata">

### Author: ![cfdbooks](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/3bc359/32.png) [@cfdbooks](https://discourse.paraview.org/u/cfdbooks)
#### Post date: [April 2, 2019, 10:17pm UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577/5 "2019-04-02T22:17:27Z")

</div>

Thanks. I am working on Flux Reconstruction method of CFD.

---

<div class="post-metadata">

### Author: ![R-e-M](https://discourse.paraview.org/user_avatar/discourse.paraview.org/r-e-m/32/1673_2.png) [@R-e-M](https://discourse.paraview.org/u/R-e-M)
#### Post date: [July 2, 2019, 2:00pm UTC](https://discourse.paraview.org/t/about-high-order-non-traditional-lagrange-finite-element/1577/6 "2019-07-02T14:00:34Z")

</div>

Hello !  
I’m also working on high order element, only testing with quad for the moment.  
When I try to create Lagrange Quadrilaterals from the GUI with the “Unstructured Cell Types” tool in the v5.6, I only get high order cells with uniform point spacing.  
@vrkssai : You talk about Lobatto points, is there something I missed in order to get this spacing ?  
Thank you !
