Hi there
Could somebody help me out in something, I am trying to count the number of
restrains in nodes and write the results down in my *.bas files, for a nonlinear
finite element program. This is the first time I use GiD and have no success so
far in doing this.
the *.bas commands of GiD count the number of nodes with a certain condition
BUT not the number of restraints, that is, if a node XX has three degrees of
freedom restrained (say a fixed support) , the *set cond estatement will count
ONE node BUT not THREE restraints. How can I count the restraints?
I am attaching a piece of the *.bas for your reference:
No. of restraints : *\
*set var restraints=0
*Set Cond Support-Constraints *nodes
*if(CondNumEntities(int)0)
*loop nodes *OnlyInCond
*format {"%4i"}
*restraints=*Operation(cond(1,int)+cond(2,int)+cond(3,int))
*end nodes
*endif
[GiDlist] Counting boundary conditions
Moderator: GiD Team
[GiDlist] Counting boundary conditions
I don,'t understand exactly what's the desired value, and your definition
of the Support-Constraints condition, but your code can similar to this:
*set var restraints=0
*Set Cond Support-Constraints *nodes
*loop nodes *OnlyInCond
set var restraints=Operation(restraints+cond(1,int)+cond(2,int)+cond(3,int))
*end nodes
No. of restraints: *restraints
It's assumed that the fields 1,2 and 3 of Support-Constraints can be set only to 0 or 1, and 1=degree constraint.
Enrique Escolano
----- Original Message -----
From: esneyder.montoya at utoronto.ca
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, June 25, 2003 1:30 AM
Subject: [GiDlist] Counting boundary conditions
Hi there
Could somebody help me out in something, I am trying to count the number of
restrains in nodes and write the results down in my *.bas files, for a nonlinear
finite element program. This is the first time I use GiD and have no success so
far in doing this.
the *.bas commands of GiD count the number of nodes with a certain condition
BUT not the number of restraints, that is, if a node XX has three degrees of
freedom restrained (say a fixed support) , the *set cond estatement will count
ONE node BUT not THREE restraints. How can I count the restraints?
I am attaching a piece of the *.bas for your reference:
No. of restraints : *\
*set var restraints=0
*Set Cond Support-Constraints *nodes
*if(CondNumEntities(int)0)
*loop nodes *OnlyInCond
*format {"%4i"}
*restraints=*Operation(cond(1,int)+cond(2,int)+cond(3,int))
*end nodes
*endif
_______________________________________________
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/20030625/a751af81/attachment.htm
of the Support-Constraints condition, but your code can similar to this:
*set var restraints=0
*Set Cond Support-Constraints *nodes
*loop nodes *OnlyInCond
set var restraints=Operation(restraints+cond(1,int)+cond(2,int)+cond(3,int))
*end nodes
No. of restraints: *restraints
It's assumed that the fields 1,2 and 3 of Support-Constraints can be set only to 0 or 1, and 1=degree constraint.
Enrique Escolano
----- Original Message -----
From: esneyder.montoya at utoronto.ca
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, June 25, 2003 1:30 AM
Subject: [GiDlist] Counting boundary conditions
Hi there
Could somebody help me out in something, I am trying to count the number of
restrains in nodes and write the results down in my *.bas files, for a nonlinear
finite element program. This is the first time I use GiD and have no success so
far in doing this.
the *.bas commands of GiD count the number of nodes with a certain condition
BUT not the number of restraints, that is, if a node XX has three degrees of
freedom restrained (say a fixed support) , the *set cond estatement will count
ONE node BUT not THREE restraints. How can I count the restraints?
I am attaching a piece of the *.bas for your reference:
No. of restraints : *\
*set var restraints=0
*Set Cond Support-Constraints *nodes
*if(CondNumEntities(int)0)
*loop nodes *OnlyInCond
*format {"%4i"}
*restraints=*Operation(cond(1,int)+cond(2,int)+cond(3,int))
*end nodes
*endif
_______________________________________________
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/20030625/a751af81/attachment.htm