- Mapdl.nsel(type_='', item='', comp='', vmin='', vmax='', vinc='', kabs='', **kwargs)¶
Selects a subset of nodes.
APDL Command: NSEL
Label identifying the type of select:
S - Select a new set (default).
R - Reselect a set from the current set.
A - Additionally select a set and extend the current set.
U - Unselect a set from the current set.
ALL - Restore the full set.
NONE - Unselect the full set.
INVE - Invert the current set (selected becomes unselected and vice versa).
STAT - Display the current select status.
Selects a subset of nodes. For example, to select a new set of nodes based on node numbers 1 through 7, do
The subset is used when the ‘ALL’ label is entered (or implied) on other commands, such as
Only data identified by node number are selected. Data are flagged as selected and unselected; no data are actually deleted from the database.
When selecting nodes by results, the full graphics value is used, regardless of whether PowerGraphics is on.
Solution result data consists of two types, 1) nodal degree of freedom –results initially calculated at the nodes (such as displacement, temperature, pressure, etc.), and 2) element–results initially calculated elsewhere (such as at an element integration point or thickness location) and then recalculated at the nodes (such as stresses, strains, etc.). Various element results also depend upon the recalculation method and the selected results location [AVPRIN, RSYS, FORCE, LAYER and SHELL].
You must have all the nodes (corner and midside nodes) on the external face of the element selected to use Item = EXT.
This command is valid in any processor.
For Selects based on non-integer numbers (coordinates, results, etc.), items that are within the range VMIN-Toler and VMAX+Toler are selected. The default tolerance Toler is based on the relative values of VMIN and VMAX as follows:
If VMIN = VMAX, Toler = 0.005 x VMIN.
If VMIN = VMAX = 0.0, Toler = 1.0E-6.
If VMAX ≠ VMIN, Toler = 1.0E-8 x (VMAX-VMIN).
Use the SELTOL command to override this default and specify Toler explicitly.
Table: 208:: : NSEL - Valid Item and Component Labels
Table: 209:: : NSEL - Valid Item and Component Labels for Nodal DOF Result Values
Select nodes at x == 0, Of these, reselect nodes between
1 < Y < 10, then finally unselect nodes between
5 < Y < 6.
>>> mapdl.nsel('S', 'LOC', 'X', 0) >>> mapdl.nsel('R', 'LOC', 'Y', 1, 10) >>> mapdl.nsel('U', 'LOC', 'Y', 5, 6)
For other coordinate systems activate the coord system first. First, change to cylindrical coordinate system, select nodes at
radius == 5. Reselect nodes from 0 to 90 degrees.
>>> mapdl.csys(1) >>> mapdl.nsel('S', 'LOC', 'X', 5) >>> mapdl.nsel('R', 'LOC', 'Y', 0, 90)
Note that the labels X, Y, and Z are always used, regardless of which coordinate system is activated. They take on different meanings in different systems Additionally, angles are always in degrees and NOT radians.
Select elements assigned to material property 2
>>> mapdl.esel('S', 'MAT', '', 2)
Select the nodes these elements use
Reselect nodes on the element external surfaces
>>> mapdl.nsel('R', 'EXT')
Change to cylindrical coordinates
Reselect nodes with radius=5
>>> mapdl.nsel('R', 'LOC', 'X', 5)