asel

Mapdl.asel(type_='', item='', comp='', vmin='', vmax='', vinc='', kswp='', **kwargs)

Selects a subset of areas.

APDL Command: ASEL

Parameters
type_

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.

Notes

Selects a subset of areas. For example, to select those areas with area numbers 1 through 7, use

>>> mapdl.asel('S','AREA', '', 1, 7)

The selected subset is then used when the ALL label is entered (or implied) on other commands, such as

>>> mapdl.alist('ALL')

Only data identified by area number are selected. Data are flagged as selected and unselected; no data are actually deleted from the database.

In a cyclic symmetry analysis, area hot spots can be modified. Consequently, the result of an area selection may be different before and after the CYCLIC command.

If Item = ACCA, the command selects only those areas that were created by concatenation. The KSWP field is processed, but the Comp, VMIN, VMAX, and VINC fields are ignored.

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: 127:: : ASEL - Valid Item and Component Labels

Examples

Select area(s) at location x == 0. Note that value of seltol is used since vmin == vmax.

>>> mapdl.asel('S', 'LOC', 'X', 0)

Select areas between y == 2 and y == 4

>>> mapdl.asel('S', 'LOC', 'Y', 2, 4)