3.1. Routines for Selecting and Retrieving Nodes and Elements
3.1.1. Function ndnext (Getting the Next Node Number)
*deck,ndnext
function ndnext (next)
c *** primary function: get the number of the next selected node
c *** Notice - This file contains ANSYS Confidential information ***
c input arguments:
c next (int,sc,in) - the last node number used
c = 0 - use for initial value
c output arguments:
c ndnext (int,func,out) - the next selected node number
c = 0 - no more nodes
3.1.2. Function ndprev (Getting the Number of the Previous Selected Node)
*deck,ndprev
function ndprev (next)
c *** primary function: get the number of the previous selected node
c
c *** Notice - This file contains ANSYS Confidential information ***
c
c typ=int,dp,log,chr,dcp siz=sc,ar(n),func intent=in,out,inout
c
c input arguments:
c variable (typ,siz,intent) description
c next (int,sc,in) - the next node number used
c = 0 - use for initial value
c
c output arguments:
c ndprev (int,func,out) - the previous selected node number
c = 0 - no more nodes (or error)
c
3.1.3. Function ndnxdf (Getting the Number of the Next Defined Node)
*deck,ndnxdf
function ndnxdf (next)
c *** primary function: get the number of the next defined node
c
c *** Notice - This file contains ANSYS Confidential information ***
c
c input arguments:
c next (int,sc,in) - the last node number used
c = 0 - use for initial value
c
c output arguments:
c ndnxdf (int,func,out) - the next defined node number
c = 0 - no more nodes
3.1.4. Function ndsel (Selecting, Unselecting, Deleting, or Inverting a Node)
*deck,ndsel
subroutine ndsel (ndmi,ksel)
c *** primary function: to select, unselect, delete, or invert a node.
c *** secondary functions: none.
c *** Notice - This file contains ANSYS Confidential information ***
c typ=int,dp,log,chr,dcp siz=sc,ar(n),func intent=in,out,inout
c input arguments:
c variable (typ,siz,intent) description
c ndmi (int,sc,in) - node number
c = 0 - all nodes
c < 0 - do not delete CPs and CEQNs
c (merge/offset/compress)
c ksel (int,sc,in) - type of operation to be performed.
c ksel = 0 - delete node.
c = 1 - select node.
c =-1 - unselect node.
c = 2 - invert select status of node.
c output arguments:
c none.
3.1.5. Function elnext (Getting the Number of the Next Element)
*deck,elnext
function elnext (next)
c *** primary function: get the number of the next selected element
c *** Notice - This file contains ANSYS Confidential information ***
c input arguments:
c next (int,sc,in) - the last element number used
c = 0 - use for initial value
c output arguments:
c elnext (int,func,out) - the next selected element
c = 0 - no more elements
3.1.6. Function elprev (Getting the Number of the Previous Selected Element)
*deck,elprev
function elprev (prev)
c *** primary function: get the number of the previous selected element
c
c *** Notice - This file contains ANSYS Confidential information ***
c
c typ=int,dp,log,chr,dcp siz=sc,ar(n),func intent=in,out,inout
c
c input arguments:
c variable (typ,siz,intent) description
c prev (int,sc,in) - the last element used
c = 0 - use for initial value
c
c output arguments:
c elprev (int,func,out) - the previous selected element
c = 0 - no more elements (or error)
c
3.1.7. Function elnxdf (Getting the Number of the Next Defined Element)
*deck,elnxdf
function elnxdf (next)
c *** primary function: get the number of the next defined element
c
c *** Notice - This file contains ANSYS Confidential information ***
c
c input arguments:
c next (int,sc,in) - the last element number used
c = 0 - use for initial value
c
c output arguments:
c elnxdf (int,func,out) - the next defined element
c = 0 - no more elements
3.1.8. Subroutine elsel (Selecting, Unselecting, Deleting, or Inverting an
Element)
*deck,elsel
subroutine elsel (ielei,ksel)
c *** primary function: to select, unselect, delete, or invert an element.
c *** Notice - This file contains ANSYS Confidential information ***
c input arguments:
c ielei (int,sc,in) - element number
c = 0 - all elements
c ksel (int,sc,in) - type of operation to be performed.
c = 0 - delete element.
c = 1 - select element.
c =-1 - unselect element.
c = 2 - invert select status for element
c output arguments: none