- Mapdl.lcomb(nl1='', nl2='', keep='', **kwargs)¶
Combines adjacent lines into one line.
APDL Command: LCOMB
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.
Number of the first line to be combined. If NL1 = ALL, NL2 is ignored and all selected lines [LSEL] are combined. A component name may also be substituted for NL1 (NL2 is ignored).
Number of the second line to be combined.
Specifies whether to keep the input entities:
- 0 - Delete lines NL1 and NL2 and 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 - Keep NL1, NL2, and their common keypoint. (The common
keypoint will not be attached to the output line.)
Line number of the combined line.
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
- Return type