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

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 – Values used to specify three locations on the arc (see table below).

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

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

  • 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.

Return type

int

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

Notes

KCENTER should be used in the Cartesian coordinate system (CSYS,0) only. This command provides three methods to define a keypoint at the center of three locations.

Three keypoints:

, - ~ ~ ~ - ,

,(x)(VAL2) ‘ , <— imaginary circluar arc

, ,

, ,

, ,

(x)(VAL1) (x)(KPNEW) (x)(VAL3)