kcenter#

Mapdl.kcenter(type_='', val1='', val2='', val3='', val4='', kpnew='', **kwargs)#

Creates a keypoint at the center of a circular arc defined by three locations.

APDL Command: KCENTER

KCENTER should be used in the Cartesian coordinate system (CSYS,0) only.

Parameters:
type_

Type of entity used to define the circular arc. The meaning of VAL1 through VAL4 will vary depending on Type.

KP - Arc is defined by keypoints.

LINE - Arc is defined by locations on a line.

val1, val2, val3, val4

Values used to specify three locations on the arc (see table below).

kpnew

Number assigned to new keypoint. Defaults to the lowest available keypoint number.

Returns:
int

Keypoint number of the generated keypoint.

Examples

Create a keypoint at the center of a circle centered at (0, 0, 0)

>>> k0 = mapdl.k("", 0, 1, 0)
>>> k1 = mapdl.k("", 1, 0, 0)
>>> k2 = mapdl.k("", 0, -1, 0)
>>> k3 = mapdl.kcenter('KP', k0, k1, k2)
>>> k3
4
Return type:

int