[GiDlist] Free format bulk data

Moderator: GiD Team

Post Reply
My VDI Freemail

[GiDlist] Free format bulk data

Post by My VDI Freemail »

Hello to the GiD community,
I would be happy to get some idea, how to manage exporting a free format bulk data from GiD.
In the *.bas file I can define the individual format by using the C-type of command for real as well as integer values. But how can I get an unformatted list, which is separated by comma only?
As an example: [node1,node2,node3,node4] - how do I have to format the output in the *.bas file to get a list of nodes for a quadrilateral element, which are separated without blanks?
Looking forward getting some feedback.
Thanks and regards,
Ruediger

Ruediger Heim
Germany
e.mail: heim.ruediger at vdi.de
Enrique Escolano

[GiDlist] Free format bulk data

Post by Enrique Escolano »

You can use *elemsconec with a integer parameter for the local node number to obtain.

For example, to list the quadrilateral elements use:

*set elems(quadrilateral)
*loop elems
Elem number:*elemsnum Nodes: *elemsconec(1),*elemsconec(2),*elemsconec(3),*elemsconec(4)
*end elems

or for a generic element, use a for loop

*loop elems
Elem number:*elemsnum Nodes:
*for(i=1;ielemsnnode;i=i+1)
*elemsconec(*i),*\
*endfor
*elemsconec(*elemsnnode)
*end elems

Notes:
*elemsnnode returns the number of nodes of the current element
(not use *nnode, it returns the maximum *elemsnnode of all elements)

*\ avoid the carriage return

Regards
Enrique Escolano

----- Original Message -----
From: "My VDI Freemail" heim.ruediger at vdi.de
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, November 19, 2002 9:14 AM
Subject: [GiDlist] Free format bulk data


Hello to the GiD community,
I would be happy to get some idea, how to manage exporting a free format bulk data from GiD.
In the *.bas file I can define the individual format by using the C-type of command for real as well as integer values. But how can I get an unformatted list, which is separated by comma only?
As an example: [node1,node2,node3,node4] - how do I have to format the output in the *.bas file to get a list of nodes for a quadrilateral element, which are separated without blanks?
Looking forward getting some feedback.
Thanks and regards,
Ruediger

Ruediger Heim
Germany
e.mail: heim.ruediger at vdi.de
_______________________________________________
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/20021119/7bcd2bc2/attachment.htm
Post Reply