[GiDlist] GID development question

Moderator: GiD Team

Post Reply
Michal Petas

[GiDlist] GID development question

Post by Michal Petas »

Hi,



I have smome questions about GID customization. I try to create my own
problem type for GID and I want to implement some tcl code for template file
*.bas to generate *.dat file. I have read GID customization manual v11 and I
haven't found solution for my task. My problem is that:



-I generate mesh on objects like line, surface or volume. I want to get
information about elements (I need elements numbers in list, for example (1
2 3 4) ) associated with this objects.

I know, that I can get information for all elements lying on layer, but I
haven't seen functions which can return information about elements belonging
to this geometrical objects (lines, surfaces, volumes).

Is it possible ?



For example GiD has tcl function:



GiD_Geometry list element layer:$layerName - this returns elements numbers
for layer

GiD_Geometry list surface layer:$layerName - this returns surfaces numbers
for layer



I need function that returns elements numbers for surface (like above for
layer). For example:



GiD_Geometry list element surface:$surfaceName.



Is there any way to get this information ?



Michał Petaś

programmer,

IPPT PAN Poland

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

[GiDlist] GID development question

Post by escolano »

The elements doesn't store any information about its geometric source entities, if any, but there is a trick to do what you want,
you can define a condition with a special self-calculated #FUNC#(NumEntity) field
e.g.
...
QUESTION: Surface_number#FUNC#(NumEntity)
VALUE: 0
....

When meshing, the condition value will be automatically filled with the number of the geometric source entity,
and you can ask this information with .bas or Tcl commands and reorder this information as you need.

Enrique
----- Original Message -----
From: Michal Petas
To: gidlist at listas.cimne.upc.edu
Sent: Wednesday, September 12, 2012 12:22 PM
Subject: [GiDlist] GID development question


Hi,



I have smome questions about GID customization. I try to create my own problem type for GID and I want to implement some tcl code for template file *.bas to generate *.dat file. I have read GID customization manual v11 and I haven't found solution for my task. My problem is that:



-I generate mesh on objects like line, surface or volume. I want to get information about elements (I need elements numbers in list, for example (1 2 3 4) ) associated with this objects.

I know, that I can get information for all elements lying on layer, but I haven't seen functions which can return information about elements belonging to this geometrical objects (lines, surfaces, volumes).

Is it possible ?



For example GiD has tcl function:



GiD_Geometry list element layer:$layerName - this returns elements numbers for layer

GiD_Geometry list surface layer:$layerName - this returns surfaces numbers for layer



I need function that returns elements numbers for surface (like above for layer). For example:



GiD_Geometry list element surface:$surfaceName.



Is there any way to get this information ?



Michał Petaś

programmer,

IPPT PAN Poland



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


_______________________________________________
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/20120912/3782ab61/attachment.htm
Post Reply