[GiDlist] Is it possible to select elements or nodes by comm

Moderator: GiD Team

Post Reply
heping

[GiDlist] Is it possible to select elements or nodes by comm

Post by heping »

Hi, all



I have three questions about GID. Please help me.



1. How to select elements or nodes by command?

2. How to select elements attach to a surface?

3. How to divide elements or nodes into groups, then we can query
their properties by group name?



Thanks



Best wishes,

Heping



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20101221/b1939891/attachment.htm
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] Is it possible to select elements or nodes by comm

Post by escolano »

A) You can select entities writting its id numbers, as a list separated by spaces, e.g
24 47 65
- is it possible to specify a range from a to b with the syntax a:b (without spaces in the middle)
to select all can set
1:
or
1:end
- can also apply selection filters, e.g. to select only elements of type triangle
filter:ElementType=Triangle
1:end

It is possible to say 'the entities of some layer', with the syntax
layer:layername

could select points or nodes close to a plane defined by its equation ax+by+cz+dr
with the syntax
plane:a,b,c,d,r
e.g, to select points close to the plane z=3 with a tolerance=1e-5 (0x+0y+1z-31e-5)
plane:0,0,1,-3,1e-5

Read GiD Help - User basics - Entity selection

B) After generate the mesh, the elements doesn't have any link with its source geometric entity.
A trick to preserve this kind of link is to apply a condition to the surface, with an special field #FUNC#(NumEntity), this kind of field is automatically filled when meshing to the id number of the source geometric entity

Read Help on GiD Customization - Configuration files - Conditions file (.cnd): Self Calculated #FUNC# fields:

C) The group concept doesn't exist in current GiDs, you can use layers to separate elements, but there is a limitation: an entity can only belong to a layer
and can use the related syntax layer:layername to select them

Can also apply different materials, with the same limitation: an entity can only have a material

If do you need 'overlapped groups' (en entity that belong to more than one group), you can apply some condition, e.g. using different 'group names' as a field value
and you can use filters to select the entities with some condition and with some value of a field
filter:Condition="Condition_name Field_name Field_value"

Note: by default GiD doesn't have any condition or material defined, is necessary to load a 'problemtype' that define them to be used. Read Help on GiD Customization

Regards

Enrique Escolano
----- Original Message -----
From: heping
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, December 21, 2010 4:45 AM
Subject: [GiDlist] Is it possible to select elements or nodes by command


Hi, all



I have three questions about GID. Please help me.



1. How to select elements or nodes by command?

2. How to select elements attach to a surface?

3. How to divide elements or nodes into groups, then we can query their properties by group name?



Thanks



Best wishes,

Heping





------------------------------------------------------------------------------


_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20101221/7be193b1/attachment.htm
Post Reply