# Simultaneous element centered vector plot if different element types exist.

**URL:** <https://forum.gidsimulation.com/t/simultaneous-element-centered-vector-plot-if-different-element-types-exist/2734>\
**Category:** Postprocess\
**Created:** [October 10, 2023, 6:39am UTC](https://forum.gidsimulation.com/t/simultaneous-element-centered-vector-plot-if-different-element-types-exist/2734 "2023-10-10T06:39:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HemmiShigeru](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/hemmishigeru/32/1344_2.png) [@HemmiShigeru](https://forum.gidsimulation.com/u/HemmiShigeru)\
**Post date:** [October 10, 2023, 6:39am UTC](https://forum.gidsimulation.com/t/simultaneous-element-centered-vector-plot-if-different-element-types-exist/2734/1 "2023-10-10T06:39:44Z")

</div>

First of all, thank you very much for the reply entitled “how to post plot the attachment model” that I posted recently.

Here is another problem or feature request.  
The attachment model (TPH.post.msh and TPH.post.res) contains 3 types of element type at the same time, i.e. tetrahedron, prism and hexahedron. I want to create element centered vector plots at the same time. How do I do this?

If this feature is not currently available, please add it.  
[TPH.post.zip](https://forum.gidsimulation.com/uploads/short-url/emPpWQlvUmJF1uwe8u1NGBJEEzP.zip) (948 Bytes)

---

<div class="post-metadata">

**Author:** ![escolano](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/escolano/32/6_2.png) [@escolano](https://forum.gidsimulation.com/u/escolano)\
**Post date:** [November 2, 2023, 7:17pm UTC](https://forum.gidsimulation.com/t/simultaneous-element-centered-vector-plot-if-different-element-types-exist/2734/2 "2023-11-02T19:17:07Z")

</div>

The problem is that you are defining different result names for each element type, and different 1-gauss points name definitions.  
Result “someVectors at Hexahedra Center” “root” 0 Vector OnGaussPoints “Hexahedra”  
Result “someVectors at Tetrahedra Center” “root” 0 Vector OnGaussPoints “Tetrahedra”  
Result “someVectors at Prism Center” “root” 0 Vector OnGaussPoints “Prism”

Then if you draw a result name, the other result name is not drawn.  
with different results, the only option to be drawn together is to use  
Window-\>Several results…  
one over another  
and select draw vectors of a result, then other, then other.  
and to finish set again ‘one by one’ as usual

But the good solution is to simply write in the .post.res a result with a single name like "“someVectors at Center” for tetras, hexas, prisms with the gauss-points default definition using our keyname “GP\_ELEMENT\_1”, valid for all kind of elements (see [https://gidsimulation.atlassian.net/wiki/spaces/GCM/pages/2385543547/Gauss+Points](https://gidsimulation.atlassian.net/wiki/spaces/GCM/pages/2385543547/Gauss+Points))

then your .post.res is more simple, removing the unused blocks GaussPoints/End GaussPoints of definition of gauss points

Result “someVectors at Center” “root” 0 Vector OnGaussPoints “GP\_ELEMENT\_1”  
ComponentNames “X-component” “Y-Component” “Z-component”  
Values  
11 3.571428571e+01 0.000000000e+00 -1.421085472e-14  
12 3.571428571e+01 7.105427358e-15 0.000000000e+00  
13 3.571428571e+01 2.131628207e-14 1.421085472e-14  
14 3.571428571e+01 0.000000000e+00 0.000000000e+00  
15 3.571428571e+01 -1.065814104e-14 2.131628207e-14  
16 3.571428571e+01 1.065814104e-14 7.105427358e-15  
17 3.571428571e+01 0.000000000e+00 -7.105427358e-15  
18 3.571428571e+01 -2.131628207e-14 -7.105427358e-15  
End Values

I attach the file modified:  
[TPH.zip](https://forum.gidsimulation.com/uploads/short-url/ltoL3LHqHMn3ex32f6w7KLdVe9i.zip) (916 Bytes)  
and a picture with the vectors on all elements simultaneously, because is a single result name

 ![vector_result_on_hexas_prisms_and_tetras.png](https://forum.gidsimulation.com/uploads/default/original/1X/0f8b37314e2a99e53e8d7cdd301d82ca6a46462f.png)

---

<div class="post-metadata">

**Author:** ![HemmiShigeru](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/hemmishigeru/32/1344_2.png) [@HemmiShigeru](https://forum.gidsimulation.com/u/HemmiShigeru)\
**Post date:** [November 6, 2023, 5:05am UTC](https://forum.gidsimulation.com/t/simultaneous-element-centered-vector-plot-if-different-element-types-exist/2734/3 "2023-11-06T05:05:30Z")

</div>

Thanks for the nice reply. But I encountered another problem.  
When drawn using GiD16.1.6d, some of the line segments showing

 ![TPH_problem.png](https://forum.gidsimulation.com/uploads/default/original/1X/b0d3c74eb0cfc86cd1033d84e42ad3c0b5205fb1.png)  
are not visible, as shown in the figure.

---

<div class="post-metadata">

**Author:** ![escolano](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/escolano/32/6_2.png) [@escolano](https://forum.gidsimulation.com/u/escolano)\
**Post date:** [November 6, 2023, 7:31pm UTC](https://forum.gidsimulation.com/t/simultaneous-element-centered-vector-plot-if-different-element-types-exist/2734/4 "2023-11-06T19:31:43Z")

</div>

Thanks for the bug report.  
This is a known bug of this version 16.1.6d calculating boundary meshes mixing some element types.  
It is only a visualization issue.  
We have been solved some time ago, but the version 16.1.7d is already not published.
