Very simple key command, which is annoyingly hard for me
Very simple key command, which is annoyingly hard for me
(OP)
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
*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





RE: Very simple key command, which is annoyingly hard for me
*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
RE: Very simple key command, which is annoyingly hard for me
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 --
RE: Very simple key command, which is annoyingly hard for me
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 "Using *GET command" from "APDL Programmer's Guide" (in fact you could start from there).
Best regards,
Juzz
----------------------------
Justin Onisoru
Researcher
Romanian Academy,
Institute of Solid Mechanics
----------------------------
RE: Very simple key command, which is annoyingly hard for me
Regards
Will