l2tan#

Mapdl.l2tan(nl1='', nl2='', **kwargs)#

Generates a line tangent to two lines.

APDL Command: L2TAN

Generates a line (P2-P3) tangent at point P2 to line NL1 (P1-P2) and tangent at point P3 to line NL2 (P3-P4).

Parameters:
nl1

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

nl2

Number of the second line generated line is tangent to. If negative, assume P3 is the second keypoint of the line instead of the first.

Returns:
int

Line number of the generated line.

Return type:

int

Examples

Create two circular arcs and connect them with a spline.

>>> k0 = mapdl.k("", 0, 0, 0)
>>> k1 = mapdl.k("", 0, 0, 1)
>>> k2 = mapdl.k("", -1.5, 1.5, 0)
>>> k3 = mapdl.k("", -1.5, 1.5, 1)
>>> carc0 = mapdl.circle(k0, 1, k1, arc=90)
>>> carc1 = mapdl.circle(k2, 1, k3, arc=90)
>>> lnum = mapdl.l2tan(1, 2)
3

Plot these lines

>>> mapdl.lplot(cpos='xy')