larc#

Mapdl.larc(p1='', p2='', pc='', rad='', **kwargs)[source]#

Define a circular arc.

APDL Command: LARC

Defines a circular arc line from P1 to P2. The line shape is generated as circular, regardless of the active coordinate system. The line shape is invariant with coordinate system after it is generated.

When dealing with a large radius arc (1e3), or if the location of the arc you create is far away from the origin of your coordinate system, anomalies may occur. You can prevent this by creating the arc at a smaller scale, and then scaling the model back to full size (LSSCALE).

Parameters:
p1

Keypoint at one end of circular arc line.

p2

Keypoint at other end of circular arc line.

pc

Keypoint defining plane of arc and center of curvature side (with positive radius). Must not lie along the straight line from P1 to P2. PC need not be at the center of curvature.

rad

Radius of curvature of the arc. If negative, assume center of curvature side is opposite to that defined by PC. If RAD is blank, RAD will be calculated from a curve fit through P1, PC, and P2.

Returns:
int

Line number of the arc.

Return type:

int

Examples

Create a circular arc that travels between (0, 0, 0) and (1, 1, 0) with a radius of curvature of 2.

>>> k0 = mapdl.k("", 0, 0, 0)
>>> k1 = mapdl.k("", 1, 1, 0)
>>> k2 = mapdl.k("", 0, 1, 0)
>>> lnum = mapdl.larc(k0, k1, k2, 2)
1