lcomb#
- Lines.lcomb(nl1='', nl2='', keep='', **kwargs)#
Combines adjacent lines into one line.
Mechanical APDL Command: LCOMB
- Parameters:
- nl1
str Number of the first line to be combined. If
NL1= ALL,NL2is ignored and all selected lines ( lsel ) are combined. IfNL1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI). A component name may also be substituted forNL1(NL2is ignored).- nl2
str Number of the second line to be combined.
- keep
intorstr Specifies whether to keep the input entities:
0- Delete linesNL1andNL2and their common keypoint. Keypoints will not be deleted if they are meshed or if they are attached to other lines. Lines will not be deleted if they are attached to different areas.1- KeepNL1,NL2, and their common keypoint. (The common keypoint will not be attached to the output line.)
- nl1
- Returns:
intLine number of the combined line.
Notes
Combines adjacent lines into one line (the output line). This operation will effectively “undo” the ldiv operation. Line divisions are set to zero (use lesize, etc. to modify). Lines attached to the same area(s) can also be combined. See also the lccat command for line concatenation capability.
Examples
Create two lines and combine them.
>>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 0, 0) >>> k2 = mapdl.k("", 2, 0, 0) >>> l0 = mapdl.l(k0, k1) >>> l1 = mapdl.l(k0, k2) >>> lout = mapdl.lcomb(l0, l1) >>> lout 1