ltan#

Mapdl.ltan(nl1='', p3='', xv3='', yv3='', zv3='', **kwargs)#

Generate a line at the end of, and tangent to, an existing line.

APDL Command: LTAN

Generates a line (P2-P3) tangent at end point (P2) of line NL1 (P1-P2).

Parameters:
nl1

Number of the line the generated line is tangent to. If negative, assume P1 (see below), instead of P2, is the second keypoint of line NL1.

p3

Keypoint at which generated line must end.

Returns:
int

Line number of the line generated.

Return type:

int

Examples

Create a circular arc and generate a tangent spline at the end of it directed to a new keypoint.

>>> k0 = mapdl.k("", 0, 0, 0)
>>> k1 = mapdl.k("", 0, 0, 1)
>>> k2 = mapdl.k("", -1, 1.5, 0)
>>> carc = mapdl.circle(k0, 1, k1, arc=90)
>>> lnum = mapdl.ltan(carc[0], k2)
>>> lnum
2