k#

Mapdl.k(npt='', x='', y='', z='', **kwargs)#

Define a keypoint.

APDL Command: K

Defines a keypoint in the active coordinate system [CSYS] for line, area, and volume descriptions. A previously defined keypoint of the same number will be redefined. Keypoints may be redefined only if it is not yet attached to a line or is not yet meshed. Solid modeling in a toroidal system is not recommended.

Parameters:
npt

Reference number for keypoint. If zero, the lowest available number is assigned [NUMSTR].

x, y, z

Keypoint location in the active coordinate system (may be R, θ, Z or R, θ, Φ).

Returns:
int

The keypoint number of the generated keypoint.

Return type:

int

Examples

Create keypoint at (0, 1, 2)

>>> knum = mapdl.k('', 0, 1, 2)
>>> knum
1

Create keypoint at (10, 11, 12) while specifying the keypoint number.

>>> knum = mapdl.k(5, 10, 11, 12)
>>> knum
5