Fwd: Re: [GiDlist] is possible to get the every side of ele
Posted: Tue Nov 11, 2003 11:14 am
Hi Enrique,
In this mail you give some information about the side of elements. I am
interested in choosing side of element. I tried to figure out how I can do
that but I always encounter a problem choosing the side on the mesh figure.
Actually I want to get an output which contains side and its element. I could
do the sets form nodes and elements using condition tool. But i could not get
the side set from there.
Can I choose the element sides on the mesh figure in the GID interface to
define sets or any other conditions on it.
----- Forwarded message from Enrique Escolano escolano at cimne.upc.es -----
Date: Mon, 10 Nov 2003 11:57:34 +0100
From: Enrique Escolano escolano at cimne.upc.es
Reply-To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] is possible to get the every side of ele
To: gidlist at gatxan.cimne.upc.es
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
----- End forwarded message -----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
Url: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/0a00e101/attachment.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/0a00e101/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sense_elements.gif
Type: image/gif
Size: 6647 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/0a00e101/attachment.gif
In this mail you give some information about the side of elements. I am
interested in choosing side of element. I tried to figure out how I can do
that but I always encounter a problem choosing the side on the mesh figure.
Actually I want to get an output which contains side and its element. I could
do the sets form nodes and elements using condition tool. But i could not get
the side set from there.
Can I choose the element sides on the mesh figure in the GID interface to
define sets or any other conditions on it.
----- Forwarded message from Enrique Escolano escolano at cimne.upc.es -----
Date: Mon, 10 Nov 2003 11:57:34 +0100
From: Enrique Escolano escolano at cimne.upc.es
Reply-To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] is possible to get the every side of ele
To: gidlist at gatxan.cimne.upc.es
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
----- End forwarded message -----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
Url: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/0a00e101/attachment.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/0a00e101/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sense_elements.gif
Type: image/gif
Size: 6647 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/0a00e101/attachment.gif