ansys.mapdl.core.Mapdl.larc#
- Mapdl.larc(p1='', p2='', pc='', rad='', **kwargs)#
Defines a circular arc.
Mechanical APDL Command: LARC
- Parameters:
- p1
str Keypoint at one end of circular arc line. If
P1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).- p2
str Keypoint at other end of circular arc line.
- pc
str Keypoint defining plane of arc and center of curvature side (with positive radius). Must not lie along the straight line from
P1toP2.PCneed not be at the center of curvature.- rad
str Radius of curvature of the arc. If negative, assume center of curvature side is opposite to that defined by
PC. IfRADis blank,RADwill be calculated from a curve fit throughP1,PC, andP2.
- p1
- Returns:
intLine number of the arc.
Notes
Defines a circular arc line from
P1toP2. The line shape is generated as circular, regardless of the active coordinate system. The line shape is invariant with coordinate system after it is generated.When dealing with a large radius arc (1e3), or if the location of the arc you create is far away from the origin of your coordinate system, anomalies may occur. You can prevent this by creating the arc at a smaller scale, and then scaling the model back to full size ( lsscale ).
Examples
Create a circular arc that travels between (0, 0, 0) and (1, 1, 0) with a radius of curvature of 2.
>>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 1, 0) >>> k2 = mapdl.k("", 0, 1, 0) >>> lnum = mapdl.larc(k0, k1, k2, 2) 1