ltan#

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

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

Mechanical APDL Command: LTAN

Parameters:
nl1str

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. If NL1 = P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).

p3str

Keypoint at which generated line must end.

xv3str

Location (in the active coordinate system) of the head of the “slope vector” corresponding to the slope at the P3 end of the line. The tail of the vector is at the coordinate system origin.

yv3str

Location (in the active coordinate system) of the head of the “slope vector” corresponding to the slope at the P3 end of the line. The tail of the vector is at the coordinate system origin.

zv3str

Location (in the active coordinate system) of the head of the “slope vector” corresponding to the slope at the P3 end of the line. The tail of the vector is at the coordinate system origin.

Returns:
int

Line number of the line generated.

Notes

Warning

This function contains specificities regarding the argument definitions. Please refer to the command documentation for further explanations.

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

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