[GiDlist] is possible to get the every side of ele

Moderator: GiD Team

Post Reply
Niu Zhiwei

[GiDlist] is possible to get the every side of ele

Post by Niu Zhiwei »

hi,GID group,
when i use GID, i want to get the information about the side of each elements. By the command GlobalNodes, after I applied some condition to some element, I only can get the out-side face of element. are there any way to get the every side of each element? include the side of internal element. for example, I want to get the all out-side face of one layer element. how can i do?

regards



===================================================================
Enrique Escolano

[GiDlist] is possible to get the every side of ele

Post by Enrique Escolano »

This face elements are implicitly defined by the element connectivities, not exists explicit inside GiD

The implicit GiD local numeration of the element faces are:




Triangle: 12 23 31
Quadrilateral: 12 23 34 41
Tetrahedra: 123 243 341 421
Hexahedra: 1234 1562 2673 3784 1485 5876
Your code must enumerate this faces, for example, if your code names A,B,C, the three faces of a triangle, then can use some as:TRIANGLE FACES:
Face A: *ElemsConec(1,int) *ElemsConec(2,int)
Face B: *ElemsConec(2,int) *ElemsConec(3,int)
Face C: *ElemsConec(3,int) *ElemsConec(1,int)

Also, if you have a condition over a face of a triangle (a edge), you can identify the implicit face A B or C with globalnodes

*Set elems(triangle)
*Set Cond Line_Face_Load *elems
*loop elems *OnlyInCond
*if(GlobalNodes(1,int)==ElemsConec(1,int))
FACE A
*elseif(GlobalNodes(1,int)==ElemsConec(2,int))
FACE B
*else
FACE C
*endif
*end elems

Or more simple, using the localnodes command

*Set elems(triangle)
*Set Cond Line_Face_Load *elems
*loop elems *OnlyInCond
*if(LocalNodes(1,int)==1)
FACE A
*elseif(LocalNodes(1,int)==2)
FACE B
*else
FACE C
*endif
*end elems

Enrique Escolano

----- Original Message -----
From: "Niu Zhiwei" nzwyc at sina.com
To: gidlist at gatxan.cimne.upc.es
Sent: Saturday, November 08, 2003 10:39 AM
Subject: [GiDlist] is possible to get the every side of ele


hi,GID group,
when i use GID, i want to get the information about the side of each elements. By the command GlobalNodes, after I applied some condition to some element, I only can get the out-side face of element. are there any way to get the every side of each element? include the side of internal element. for example, I want to get the all out-side face of one layer element. how can i do?

regards



===================================================================
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031110/f396f5bb/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 6647 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031110/f396f5bb/attachment.gif
Post Reply