ansys.mapdl.core.Mapdl.l2tan#
- Mapdl.l2tan(nl1='', nl2='', **kwargs)#
Generates a line tangent to two lines.
Mechanical APDL Command: L2TAN
- Parameters:
- nl1
str 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. IfNL1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).- nl2
str Number of the second line generated line is tangent to. If negative, assume
P3is the second keypoint of the line instead of the first.
- nl1
- Returns:
intLine number of the generated line.
Notes
Generates a line (
P2-P3) tangent at pointP2to lineNL1(P1-P2) and tangent at pointP3to lineNL2(P3-P4).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')