XANSYS Message: 42297 [Go back to message list]
No rating yet
Rate item:

Subject: Re: APDL - selecting nodes
Author: Rene Fiege
Date: 2002-09-30 09:29:00

Glailson

you can use vector/matrix commands.
1) create a matrix with the node numbers and the coordinates
matrix(NodeNumber,x,y,z) -> including all coordinates you have to filter
2) sort matrix using the direction you are interested in (*moper)
3) compress to the nodes of interest
4) use the *do loop on the vector, which is faster than the selection

I suppose you select the nodes by a location in a specific coordinate
system, which is faster, because you do not need a *do loop at all. You can
directly create a masking vector for the matrix comparing the coordinate
data to a specific location information using *voper (in fact in this case
the matrix could be a vector holding the coordinates only).

Hope this helps,

Ren‚ Fiege
Meyer Werft
Germany

-----Original Message-----
Sent: Monday, September 30, 2002 2:27 PM
To: xansys@yahoogroups.com

Hi, XANSYSers!

My model has a sinuous line build by the BSPLIN command. Attached to
that line there are a lot of nodes from the mesh operation.
I need separate those nodes in two groups from each ten consecutive
nodes on the line (the nodes' numbering is randomic and there isn't
any geometric rule). I mean create two components like the following
scheme

111111111100000000001111111111000000000011111111110000000000 .......

I am able to count the select nodes and separate the nodes's number
in two arrays using a *DO loop and after that issue a NSEL,s,.... and
NSEL,a,... for each array index, but this solution is slow and not
very smart.

Does anyone know a smart and fast method to get it?
Any help is welcome.

Glailson Mattos
Metallurgist Engineer
USIMINAS - BRAZIL

Posts possibly associated with message #42297AuthorDateScore
42292APDL - selecting nodesGlailson Mattos2002/09/30 
42297Re: APDL - selecting nodesRene Fiege2002/09/30 
42304Re: APDL - selecting nodesGlailson Mattos2002/09/30 
42308Re: APDL - selecting nodesDon Shaffer2002/09/30 
42310Re: APDL - selecting nodesGlailson Mattos2002/09/30 
42311Re: APDL - selecting nodesOtto, Mike J MikeJOtto@2002/09/30 
65891[APDL] selecting nodesBarry O'Donnell2004/01/22 
65892Re: [APDL] selecting nodesRick Fischer2004/01/22 
65893Re: [APDL] selecting nodesGordon May2004/01/22 
65905Re: [APDL] selecting nodesBarry O'Donnell2004/01/22 
66014Re: [APDL] selecting nodesBarry O'Donnell2004/01/27 
66020Re: [APDL] selecting nodesAdam Shinbrot2004/01/27