[GiDlist] loop over nodes in an element

Hallo all,

in my .bas file I need to execute a loop over the nodes of an element inside
an elem loop, i.e.


*set cond … *nodes
*loop elems
*loop nodes in each element
*if(condition over these nodes)
*write something
*end nodes in each element
*end elems

How I can obtain this with GiD 6.3.0b for Windows?

Thanks in advance and regards

Alessandra Turconi
Department of Structural Engineering
Politecnico di Milano, Italy
e-mail: turconi at stru.polimi.it
Tel. + 39.02.2399.4220
Fax. + 39.02.2399.4240

Search if the element nodes are inside the collection of nodes with the current condition
Try this bas file as sample (i’ also attach the files)
*Set Cond Point_CndNode *nodes
*loop elems
Elem number: *ElemsNum
Nodes: *
*for(i=1;i=ElemsNNode;i=i+1)
*set var inode=ElemsConec(*i,int)
*loop nodes *OnlyInCond
*if(NodesNum==inode)
*NodesNum val=Cond(text)
*endif
*end nodes
*end for

*end elems

And this .cnd
NUMBER: 1 CONDITION: Point_CndNode
CONDTYPE: over Points
CONDMESHTYPE: over nodes
CANREPEAT: No
QUESTION: text
VALUE: 0
END CONDITION

Regards

Enrique Escolano

----- Original Message -----
From: “Turconi Alessandra” turconi at stru.polimi.it
To: “GID LIST” gidlist at gatxan.cimne.upc.es
Sent: Monday, July 15, 2002 3:05 PM
Subject: [GiDlist] loop over nodes in an element


Hallo all,
in my .bas file I need to execute a loop over the nodes of an element inside
an elem loop, i.e.

*set cond … *nodes
*loop elems
*loop nodes in each element
*if(condition over these nodes)
*write something
*end nodes in each element
*end elems
How I can obtain this with GiD 6.3.0b for Windows?
Thanks in advance and regards
Alessandra Turconi
Department of Structural Engineering
Politecnico di Milano, Italy
e-mail: turconi at stru.polimi.it
Tel. + 39.02.2399.4220
Fax. + 39.02.2399.4240


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/20020715/11398239/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Alessandra.gid.zip
Type: application/x-zip-compressed
Size: 573 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020715/11398239/attachment.bin

Hi,

I downloaded Gid7 for Sun(Solaris) and followed the instructions in readme.txt
to install it. I think I installed it successfully. However, when I ran gid.exe
an error message was given saying “permission denied”. I tried changing the file
mode. But it still did not work.

Regards,
Shuo Ma

This is a follow-up on my previous e-mail. I tried changing the file mode and
this time I was able to execute the program (I don’t know why). But when I was
trying to generate a 3d mesh the program was automatically shut down and an
error message was given saying “segmenation fault”. I tried meshing for the same
geometry using different element numbers and I got the same error message. But
when I meshed 2d problems there were no problem.

So I reinstalled the program. This time I got the message “permission denied”
when I ran the program. I was wondering if someone can help me out.

Regards,
Shuo Ma

The ‘permision denied’ problem with the sun distribution is that
the ‘gid.exe’ program does not have the execution permision.
You can easely change it with:

chmod +x gid.exe

Now it is changed in the distribution too.

About the meshing problem, we need a little bit more information.
Can you send us the output of
‘uname -a’
( should tell the SunOS distribution version, . . .)
?

Which are your meshing preferences ( meshing pane in the ‘preferences’ window)?

regards

miguel

Shuo Ma wrote:

This is a follow-up on my previous e-mail. I tried changing the file mode and
this time I was able to execute the program (I don’t know why). But when I was
trying to generate a 3d mesh the program was automatically shut down and an
error message was given saying “segmenation fault”. I tried meshing for the same
geometry using different element numbers and I got the same error message. But
when I meshed 2d problems there were no problem.
So I reinstalled the program. This time I got the message “permission denied”
when I ran the program. I was wondering if someone can help me out.
Regards,
Shuo Ma


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_


Miguel A. de Riera Pasenau miguel at cimne.upc.es http://gid.cimne.upc.es