XANSYS Message: 46744 [Go back to message list]
[bookmark on del.icio.us]
No rating yet
Rate item:

Subject: Re: [apdl]How to VGET node numbers to an array
Author: Dehnel, Mike (Contr) MDehnel@
Date: 2003-02-13 16:27:00

Thanks for the feedback Bob! I have a question about your code.

Wouldn't NodeNr(n) = NDNEXT(NodeNr(n-1)) give to an error the first time
called? Since NodeNr(n-1) is NodeNr(0) and in Fortran arrays 0 is
undefined?

Thanks again

-----Original Message-----
Sent: Thursday, February 13, 2003 2:47 PM
To: xansys@yahoogroups.com

Try something like this ...

LSEL, S, LINE, , YourLineNr, , , 1
*GET, nNODES, NODE, , COUN
*DEL, NodeNr
*DIM, NodeNr, ARRA, nNODES
NodeNr(1) = NDNEXT(0)
*DO, n, 2, nNODES!{
NodeNr(n) = NDNEXT(NodeNr(n-1))
*ENDDO!}

Bob Weathers
trane
(608)787-2729
bweathers@t...

--- In xansys@yahoogroups.com, "dehnemi "
wrote:
> Does someone have an example of storing node numbers attached to a
> line in an array?

> *DIM,myNodes,ARRAY,100
> *GET,numNodes,LINE,lineNum,ATTR,NNOD

> loop? {
> *VGET,myNodes, ...
> }

> I don't see a VGET (item) that will help

> What I trying to do is distribute some point mass parametrically.
> Any help or a point to the right section of the help file would be
> appreciated.

> Windows 2000
> ANSYS ver 6.1

> Engineer
> Northrop Grumman

Posts possibly associated with message #46744AuthorDateScore
46741[apdl]How to VGET node numbers to an arraydehnemi MDehnel@2003/02/13 
46742Re: [apdl]How to VGET node numbers to an arrayBob Weathers2003/02/13 
46744Re: [apdl]How to VGET node numbers to an arrayDehnel, Mike (Contr) MDehnel@2003/02/13 
46747Re: [apdl]How to VGET node numbers to an arrayBob Weathers2003/02/13 
46749Re: [apdl]How to VGET node numbers to an arrayRoberto Porto2003/02/13