# Local coordinate system display

**URL:** https://discourse.paraview.org/t/local-coordinate-system-display/9867
**Category:** ParaView Support
**Created:** [June 21, 2022, 2:13pm UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867 "2022-06-21T14:13:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Andrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@Andrei](https://discourse.paraview.org/u/Andrei)
#### Post date: [June 21, 2022, 2:13pm UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/1 "2022-06-21T14:13:22Z")

</div>

Is it possible in ParaView to display the orientation axes of shell elements (i.e. the local coordinate system of cells) to get a view similar to the picture?

 ![1](https://discourse.paraview.org/uploads/default/original/2X/7/7b8d5ae40a352cd5f5281d773d5afa64fa73911c.png)

---

<div class="post-metadata">

### Author: ![jfausty](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jfausty/32/9405_2.png) [@jfausty](https://discourse.paraview.org/u/jfausty)
#### Post date: [June 21, 2022, 4:58pm UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/2 "2022-06-21T16:58:15Z")

</div>

Hi @Andrei,

You could try the “Normal Glyphs” filter to get the outward pointing normals to the surface.

As for the the other two directions, there seems to be some arbitrariness since any two orthogonal unitary vectors would do on the surface, are you looking for them to be oriented in the principal directions of the cells themselves? Do you have some local or global coordinate mappings you are using to define these directions? To make my question more precise, how are the other two directions defined in your data?

---

<div class="post-metadata">

### Author: ![Andrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@Andrei](https://discourse.paraview.org/u/Andrei)
#### Post date: [June 22, 2022, 7:12am UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/3 "2022-06-22T07:12:20Z")

</div>

Dear @jfausty , thank you very much!  
Your advice to use a “Normal Glyphs” filter solved the the core of a problem.  
As for other directions, the figure shows SHELL-type finite elements, exported from the finite element analysis (FEA) program. I originally thought that information about how each shell’s local coordinate system is directed is also exported in ParaView. Maybe it is not. To restore local coordinate systems there can be two approaches:

1. The X/Y axes are aligned with the axes of the global coordinate system (that is exactly what it is in this case).
2. The X-axis is directed from the first node of the finite element to the second.  
Obviously, in both cases, the X/Y axes are orthogonal to the Z axis and lie in the SHELL plane.

---

<div class="post-metadata">

### Author: ![jfausty](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jfausty/32/9405_2.png) [@jfausty](https://discourse.paraview.org/u/jfausty)
#### Post date: [June 22, 2022, 7:37am UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/4 "2022-06-22T07:37:49Z")

</div>

Hi @Andrei,

Glad to hear that the “Normal Glyphs” filter helped.

For the X/Y axes, do you have a data set that you can share? In order to give you the best answer I would like to try a couple things out myself.

---

<div class="post-metadata">

### Author: ![Andrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@Andrei](https://discourse.paraview.org/u/Andrei)
#### Post date: [June 22, 2022, 8:22am UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/5 "2022-06-22T08:22:25Z")

</div>

Dear @jfausty , many thanks for the help!  
The model is posted on a file-sharing server at [Oil\_tank.zip - Google Drive](https://drive.google.com/file/d/1A_ZE332wCPtsbvONo5B7xdH0Zdj_EOdl) . This is a testing finite element model of an oil tank for calculating its settlement (a geotechnical problem). The model was exported from the finite element program ZSoil ([https://www.zsoil.com/](https://www.zsoil.com/)). The model consists of finite elements such as SOLID, SHELL, BEAM. As an example, in the screenshot using Find Data → Extract, the elements of each type is highlighted. The SHELL elements in the question are material number 3.

 ![screen](https://discourse.paraview.org/uploads/default/original/2X/8/8e2ca013f2e1c7765864473494dcee347efe52fd.png)

---

<div class="post-metadata">

### Author: ![jfausty](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jfausty/32/9405_2.png) [@jfausty](https://discourse.paraview.org/u/jfausty)
#### Post date: [June 22, 2022, 9:49am UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/6 "2022-06-22T09:49:23Z")

</div>

Hi @Andrei,

Thanks for sharing the data. I have managed to download, open and work with it in ParaView.

Here is a state file [oil\_tank\_local\_coords.pvsm](https://discourse.paraview.org/uploads/short-url/k1x8GdGdBLcBJgEd5zvrkq82dlU.pvsm) (897.5 KB) where I propose the following for the X/Y glyphs:

1. Use a “Cell Centers” filter on your extraction
2. Use a “Glyph” filter on the output of the cell centers (by default it should make arrows pointing in the X direction)
3. Use another “Glyph” filter on the output of the cell centers and use the “Glyph Transform” property in the properties panel to rotate the glyph by 90 degrees along the Y direction

This should give you approximately what you are looking for.

 ![local_coords](https://discourse.paraview.org/uploads/default/original/2X/3/3391459aa5ca42f1324f910f8498119240cc06e5.jpeg)

---

<div class="post-metadata">

### Author: ![Andrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@Andrei](https://discourse.paraview.org/u/Andrei)
#### Post date: [June 23, 2022, 1:41pm UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/7 "2022-06-23T13:41:00Z")

</div>

Dear @jfausty! Thank you very much for your help! Your solution works great!

---

<div class="post-metadata">

### Author: ![jfausty](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jfausty/32/9405_2.png) [@jfausty](https://discourse.paraview.org/u/jfausty)
#### Post date: [June 24, 2022, 7:22am UTC](https://discourse.paraview.org/t/local-coordinate-system-display/9867/8 "2022-06-24T07:22:38Z")

</div>

Great! I’m glad it was helpful.
