XANSYS Message: 46749 [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: Roberto Porto
Date: 2003-02-13 16:45:00

Select the line
Select the nodes on the line > nsll,s,1

*del,source,,nopr
*del,mask,,nopr
*del,targ,,nopr

ndm_=ndinqr(0,14)
nds_=ndinqr(0,13)

*dim,source,,ndm_,1
*dim,mask,,ndm_
*vget,mask(1),node,,nsel
*dim,targ,,nds_,

*vfill,source(1,1),ramp,1,1
*vmask,mask(1)
*vfun,targ(1,1),comp,source(1,1)

Regards,
Roberto Porto
----- Original Message -----
To: xansys@yahoogroups.com
Sent: Thursday, February 13, 2003 5:46 PM

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 #46749AuthorDateScore
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