Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very simple key command, which is annoyingly hard for me

Status
Not open for further replies.

men0wjv

Mechanical
Apr 12, 2003
11
Hello all,

*GET,NCEN,NODE,,NUM,MIN
ok so this selects the lowest node number ie node number 1, then it calls it NCEN so I can use it in future commands, right? So my question is how can I get NCEN to be a range of nodes, say node numbers 7, 8, 11, 14 and 33?

Regards

Will

PS: sorry it's such a lame question, but I just can't do it; poor key command skills
 
Replies continue below

Recommended for you

Hai,

*get returns single number. Range of nodes with *get is doubtful.

If you want to select the nodes by specific way, Go to->utility menu->select->nodes->num pick->min,max,inc or list of items. Later if you want to group use component command.

Logesh.E
 
Hola!

As Logesh points out, a *Get command will return a single node. To get a range a nodes use a combination of:

nsel,S,node,<list of nodes>
nsel,A,node,<nutha list of nodes>
...

and then group into a component with

cm, <component name>, node

hope this helps - good luck!
-- drej --

 
Hello, men0wjv!

I would like to start with the previous answers from elogesh and drej.
You could not retain a range of node numbers in a scalar parameter (so, elogesh is right). It is a good way to retain all nodes you want in a component (so, drej advice is helpful for you).
If you want to use all nodes as an entity and perform common actions on these nodes do what drej say. If you have individual actions to perform on a range of nodes you must do what drej said for start and after that you do:

cmsel,s,<component name>
*get,nnod,node,0,count ! nnod=number of nodes in
! component
*get,ncen,node,0,num,min
*do,i,1,nnod-1,1
............. ! Perform individual action
ncen=ndnext(ncen) ! Select next node in the set
*enddo

Please take a deep look to the *get command and to the chapter 3.3.3.1 &quot;Using *GET command&quot; from &quot;APDL Programmer's Guide&quot; (in fact you could start from there).

Best regards,
Juzz

----------------------------
Justin Onisoru
Researcher
Romanian Academy,
Institute of Solid Mechanics
----------------------------
 
ok cheers everybody, i'll have a crack at it next time I can. The only other thing is, what about if instead of making ncen the min node number I made it node number 7, how would I do that???

Regards

Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor