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

Moderator: GiD Team

Post Reply
aliok at boun.edu.tr

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

Post by aliok at boun.edu.tr »

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
Enrique Escolano

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

Post by Enrique Escolano »

I don't understand your question.

You can define in your problemtype a condition over face elements, named for example "Line_Face_Load"
(read GiD help about the conditions file), for example

NUMBER: 1 CONDITION: Line_Face_Load
CONDTYPE: over lines
CONDMESHTYPE: over body elements
QUESTION:Pressure
VALUE: 0.0
...
END CONDITION

And then use *globalnodes to list the ordered nodes of this face:
*Set Cond Line_Face_Load *elems
*loop elems *OnlyInCond
FACE: *GlobalNodes PRESSURE: *Cond(Pressure,real)
*end elems

Enrique
----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, November 11, 2003 2:22 PM
Subject: Fwd: Re: [GiDlist] is possible to get the every side of ele


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 HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031111/6cc46dd7/attachment.htm
aliok at boun.edu.tr

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

Post by aliok at boun.edu.tr »

Hi Enrique,

For an element with two free edges (sides) I am not able to select the
side I want. There seems to be an arbitrary or default procedure according
to which GID assignes conditions over sides.
See the attached mesh: element 7 has free edges with nodes 1,3,5 and 1,2,4.
Can I select these edges independently? If yes how?
Thanks




I don't understand your question.

You can define in your problemtype a condition over face elements, named for
example "Line_Face_Load"
(read GiD help about the conditions file), for example

NUMBER: 1 CONDITION: Line_Face_Load
CONDTYPE: over lines
CONDMESHTYPE: over body elements
QUESTION:Pressure
VALUE: 0.0
...
END CONDITION

And then use *globalnodes to list the ordered nodes of this face:
*Set Cond Line_Face_Load *elems
*loop elems *OnlyInCond
FACE: *GlobalNodes PRESSURE: *Cond(Pressure,real)
*end elems

Enrique
----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, November 11, 2003 2:22 PM
Subject: Fwd: Re: [GiDlist] is possible to get the every side of ele


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 --------------
A non-text attachment was scrubbed...
Name: mesh.JPG
Type: image/pjpeg
Size: 31352 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031112/9cdf7179/attachment.bin
Enrique Escolano

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

Post by Enrique Escolano »

Do you apply the condition directly over the mesh?
In this case, it's not possible now to assign the condition to a edge only,
automatically select all boundary edges.

In general, it's unrecommended to directly assign conditions over the mesh,
it's best to assign it over the geometric entities, and
then generate the mesh (the conditions are atomatically transferred to the
mesh)
You must define a condition : over lines, over face elements, and apply it
to the desired lines.

Enrique
----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, November 12, 2003 5:56 PM
Subject: Re: Re: [GiDlist] is possible to get the every side of ele


Hi Enrique,

For an element with two free edges (sides) I am not able to select the
side I want. There seems to be an arbitrary or default procedure according
to which GID assignes conditions over sides.
See the attached mesh: element 7 has free edges with nodes 1,3,5 and
1,2,4.
Can I select these edges independently? If yes how?
Thanks




I don't understand your question.

You can define in your problemtype a condition over face elements, named
for
example "Line_Face_Load"
(read GiD help about the conditions file), for example

NUMBER: 1 CONDITION: Line_Face_Load
CONDTYPE: over lines
CONDMESHTYPE: over body elements
QUESTION:Pressure
VALUE: 0.0
...
END CONDITION

And then use *globalnodes to list the ordered nodes of this face:
*Set Cond Line_Face_Load *elems
*loop elems *OnlyInCond
FACE: *GlobalNodes PRESSURE: *Cond(Pressure,real)
*end elems

Enrique
----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, November 11, 2003 2:22 PM
Subject: Fwd: Re: [GiDlist] is possible to get the every side of ele


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 -----






Post Reply