[GiDlist] element numbering

Moderator: GiD Team

aliok at boun.edu.tr

[GiDlist] element numbering

Post by aliok at boun.edu.tr »

Hi,
While labeling the element, can I select the element which will be element
number 1?
Thanks
Ali OK
Enrique Escolano

[GiDlist] element numbering

Post by Enrique Escolano »

It's not possible to manually set a element label.

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, October 23, 2003 11:04 AM
Subject: [GiDlist] element numbering



Hi,
While labeling the element, can I select the element which will be
element
number 1?
Thanks
Ali OK
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

aliok at boun.edu.tr

[GiDlist] element numbering

Post by aliok at boun.edu.tr »

Hi Enrique,

I want to seperate the elements type by type while creating a dat file. I
write a bas file which is base on nnode. It works for Quad elements but i have
a problem with Triangle elements. It does not consider the triangle elements
command. Is there a problem about the triangle nnode command
I attached the bas file.

Thanks A Lot

Ali OK

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: code3.bas
Url: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031024/c6cb2e39/attachment.txt
Enrique Escolano

[GiDlist] element numbering

Post by Enrique Escolano »

A comment: the word after *end is currently ignored by GiD, else your code has bugs, you aparently try to close the if before
close the loop

*if(nnode==3)
T3,
*loop elems
*format "%5i,%10i,%10i,%10i"
*ElemsNum *ElemsConec
*end if
*end elems

You must write:

*if(nnode==3)
T3,
*loop elems
*format "%5i,%10i,%10i,%10i"
*ElemsNum *ElemsConec
*end elems
*end if

Another bug: nnode is the maximum number of nodes by element. If you have linear triangles and quadrilaterals, then nnode=4
And at the begin *set elems(all) is not necessary, by default the loop elems crosses all the element types.

I atach a new code3.bas compressed file, it's untested an can contain some small bug.

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, October 24, 2003 12:01 PM
Subject: Re: [GiDlist] element numbering



Hi Enrique,

I want to seperate the elements type by type while creating a dat file. I
write a bas file which is base on nnode. It works for Quad elements but i have
a problem with Triangle elements. It does not consider the triangle elements
command. Is there a problem about the triangle nnode command
I attached the bas file.

Thanks A Lot

Ali OK


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031024/d8714a67/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code3.zip
Type: application/x-zip-compressed
Size: 524 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031024/d8714a67/attachment.bin
aliok at boun.edu.tr

[GiDlist] element and node sets

Post by aliok at boun.edu.tr »

Hi Enrique,

I want to group elements and nodes in my model(create a element and nodal
sets). Is there anyway to group the elements and nodes under different sets. I
think that I can do it with layer utility but I have a problem about overlap
of elements and also nodes.
Thanks a lot
Ali Ok
Enrique Escolano

[GiDlist] element and node sets

Post by Enrique Escolano »

It's possible to separate the elemens in postprocess sets in two forms: by
layers or by assigned material
The default mode is by layers, but it's possible to set the variable
PropertyToPost to "Layer" or to "Material"
(escape escape escape Utilities variables PropertyToPost Layer)

What's the problem about "ovelap of elements"?

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, October 27, 2003 12:22 PM
Subject: [GiDlist] element and node sets


Hi Enrique,

I want to group elements and nodes in my model(create a element and
nodal
sets). Is there anyway to group the elements and nodes under different
sets. I
think that I can do it with layer utility but I have a problem about
overlap
of elements and also nodes.
Thanks a lot
Ali Ok


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

aliok at boun.edu.tr

[GiDlist] element and node sets

Post by aliok at boun.edu.tr »

Hi Enrique,

For example if I set one element in a layer at the same time I can not set
this element in other layers. I want to make a layer which contains all
elements in the model and other sets that contains the some part of this
model. I think this should not be done with layer option.

If you remember you sent me an bas file about setting the elements type by
type. After fixing the file I run this bas file but same problem occurs with
my file. I could not get the triangular elements. I did not understand why do
I get the wrong output format. Because in contrast the triangular elements, my
bas file works for quadrilateral elements.


Thanks a lot
Ali Ok


It's possible to separate the elemens in postprocess sets in two forms: by
layers or by assigned material
The default mode is by layers, but it's possible to set the variable
PropertyToPost to "Layer" or to "Material"
(escape escape escape Utilities variables PropertyToPost Layer)

What's the problem about "ovelap of elements"?

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, October 27, 2003 12:22 PM
Subject: [GiDlist] element and node sets


Hi Enrique,

I want to group elements and nodes in my model(create a element and
nodal
sets). Is there anyway to group the elements and nodes under different
sets. I
think that I can do it with layer utility but I have a problem about
overlap
of elements and also nodes.
Thanks a lot
Ali Ok


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


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

Enrique Escolano

[GiDlist] element and node sets

Post by Enrique Escolano »

1) If a element is in a set or layer, then cannot be in another set/layer.
It's not possible your desired separation by sets.
In preprocess, it's possible to assign some condition to identify
'groups' of entities. A entity must have only a layer, but
can have serveral times a condition (defined as canrepeat=yes) over them.

2) About the previous and untested bas, it has two bugs:
- several lines with "ser var" instead "set var"
- several *if(node== , instead *if(elemsnode==
As i remmark in my previous mail, nnode returns the maximum number of
nodes by element of all elements, must
be used elemsnnode inside a loop over elements to ask the number of
nodes of a element.
This is the cause to obtain only written the quadrilaterals, but not the
triangles, nnode=4 allways in this case.
I' attach a new corrected code3.bas file.

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, October 27, 2003 4:19 PM
Subject: Re: [GiDlist] element and node sets



Hi Enrique,

For example if I set one element in a layer at the same time I can not
set
this element in other layers. I want to make a layer which contains all
elements in the model and other sets that contains the some part of this
model. I think this should not be done with layer option.

If you remember you sent me an bas file about setting the elements type
by
type. After fixing the file I run this bas file but same problem occurs
with
my file. I could not get the triangular elements. I did not understand why
do
I get the wrong output format. Because in contrast the triangular
elements, my
bas file works for quadrilateral elements.


Thanks a lot
Ali Ok


It's possible to separate the elemens in postprocess sets in two forms:
by
layers or by assigned material
The default mode is by layers, but it's possible to set the variable
PropertyToPost to "Layer" or to "Material"
(escape escape escape Utilities variables PropertyToPost Layer)

What's the problem about "ovelap of elements"?

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, October 27, 2003 12:22 PM
Subject: [GiDlist] element and node sets


Hi Enrique,

I want to group elements and nodes in my model(create a element and
nodal
sets). Is there anyway to group the elements and nodes under different
sets. I
think that I can do it with layer utility but I have a problem about
overlap
of elements and also nodes.
Thanks a lot
Ali Ok


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


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



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: code3.zip
Type: application/x-zip-compressed
Size: 522 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031029/3512bd6c/attachment.bin
aliok at boun.edu.tr

[GiDlist] element set and node set

Post by aliok at boun.edu.tr »

Hi Enrique,

I tried to create element and node set by using layer utility.
I wrote follwing bas file to get sets.


ELEMENT SETS
*loop layers
*set Layer *LayerName *elems
*set var N=0
*loop elems *OnlyInLayer
*if(ElemsLayerNum0)
*set var N=operation(N+1)
*end if
*end elems
*if(N0)
*format "%11i"
*LayerName
*loop elems *OnlyInLayer
*ElemsNum
*end if
*end elems
*end layers
NODE SETS
*loop layers
*set Layer *LayerName *nodes
*format "%10i"
*LayerName
*loop nodes *OnlyInLayer
*NodesNum
*end nodes
*end layers

I encountered two problems. First one is that I could not get the triangle
element in the element sets. Secondly, although I set different nodes in
different subsets, it gives all nodes in the mesh generation for each layer.

Thanks a lot.
Ali OK
Enrique Escolano

[GiDlist] element set and node set

Post by Enrique Escolano »

First, It's a illegal syntax to cross two loops or if - endif blocks
And you use some as:
*if(N0)
*format "%11i"
*LayerName
*loop elems *OnlyInLayer
*ElemsNum
*end if
*end elems

It's not valid to close the endif before to close the end elems

A valid sytax is:

*if(N0)
*format "%11i"
*LayerName
*loop elems *OnlyInLayer
*ElemsNum
*end elems
*end if

Other bug, you use *format "%11i" before to print *Layername, this format is not valid for a string, you probably try
to print *ElemsNum with this integer format, must use this format order just before *ElemenNum

Other efficiency detail: If you do not require to count the number or elements of a layer,
and only need to know if has elements, instead
*set var N=0
*loop elems *OnlyInLayer
*if(ElemsLayerNum0)
*set var N=operation(N+1)
*end if
*end elems

Why check if ElemsLayerNum is 0 ?, and also, it,s much more efficient exit the loop with break,
for example:

*set var N=0
*loop elems *OnlyInLayer
*set var N=1
*break
*end elems

About the last problem: are written all nodes for each layer, it's a GiD bug. It not works correctly the modifier *onlyinlayer
for a loop nodes.
This bug is corrected for the next 7.4.5b beta version, but until this version is available, can avoid this bug chequing
with a *if the node layer

*loop layers
*set Layer *LayerName *nodes
*LayerName
*loop nodes
*if(LayerNum==NodesLayerNum)
*format "%10i"
*NodesNum
*endif
*end nodes
*end layers

Note than instead *loop nodes *OnlyInLayer only is used *loop nodes , and is added the *if(LayerNum==NodesLayerNum)

I attach the corrected *.bas compressed

Enrique Escolano

----- Original Message -----
From: aliok at boun.edu.tr
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, November 04, 2003 3:17 PM
Subject: [GiDlist] element set and node set




Hi Enrique,

I tried to create element and node set by using layer utility.
I wrote follwing bas file to get sets.


ELEMENT SETS
*loop layers
*set Layer *LayerName *elems
*set var N=0
*loop elems *OnlyInLayer
*if(ElemsLayerNum0)
*set var N=operation(N+1)
*end if
*end elems
*if(N0)
*format "%11i"
*LayerName
*loop elems *OnlyInLayer
*ElemsNum
*end if
*end elems
*end layers
NODE SETS
*loop layers
*set Layer *LayerName *nodes
*format "%10i"
*LayerName
*loop nodes *OnlyInLayer
*NodesNum
*end nodes
*end layers

I encountered two problems. First one is that I could not get the triangle
element in the element sets. Secondly, although I set different nodes in
different subsets, it gives all nodes in the mesh generation for each layer.

Thanks a lot.
Ali OK
_______________________________________________
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/20031105/ec070284/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Aliok.zip
Type: application/x-zip-compressed
Size: 297 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031105/ec070284/attachment.bin
Post Reply