[GiDlist] Counting boundary conditions
Posted: Wed Jun 25, 2003 12:32 am
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
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