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:
- nl1
str Number of the line the generated line is tangent to. If negative, assume
P1(see below), instead ofP2, is the second keypoint of lineNL1. IfNL1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).- p3
str Keypoint at which generated line must end.
- xv3
str Location (in the active coordinate system) of the head of the “slope vector” corresponding to the slope at the
P3end of the line. The tail of the vector is at the coordinate system origin.- yv3
str Location (in the active coordinate system) of the head of the “slope vector” corresponding to the slope at the
P3end of the line. The tail of the vector is at the coordinate system origin.- zv3
str Location (in the active coordinate system) of the head of the “slope vector” corresponding to the slope at the
P3end of the line. The tail of the vector is at the coordinate system origin.
- nl1
- Returns:
intLine 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 lineNL1(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