Simultaneous element centered vector plot if different element types exist.

Moderator: GiD Team

Post Reply
Hemmi
Posts: 32
Joined: Fri Nov 20, 2015 6:05 am
Location: Chiba prefecture, Japan

Simultaneous element centered vector plot if different element types exist.

Post by Hemmi »

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.
Attachments
TPH.post.zip
(948 Bytes) Downloaded 231 times
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

Re: Simultaneous element centered vector plot if different element types exist.

Post by escolano »

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/wik ... uss+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
(916 Bytes) Downloaded 233 times
and a picture with the vectors on all elements simultaneously, because is a single result name
vector_result_on_hexas_prisms_and_tetras.png
vector_result_on_hexas_prisms_and_tetras.png (102.61 KiB) Viewed 8843 times
Hemmi
Posts: 32
Joined: Fri Nov 20, 2015 6:05 am
Location: Chiba prefecture, Japan

Re: Simultaneous element centered vector plot if different element types exist.

Post by Hemmi »

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
TPH_problem.png (246.75 KiB) Viewed 8761 times
are not visible, as shown in the figure.
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

Re: Simultaneous element centered vector plot if different element types exist.

Post by escolano »

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.
Post Reply