a#
- Areas.a(p1='', p2='', p3='', p4='', p5='', p6='', p7='', p8='', p9='', p10='', p11='', p12='', p13='', p14='', p15='', p16='', p17='', p18='', **kwargs)#
Defines an area by connecting keypoints.
Mechanical APDL Command: A
- Parameters:
- p1
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p2
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p3
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p4
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p5
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p6
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p7
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p8
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p9
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p10
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p11
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p12
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p13
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p14
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p15
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p16
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p17
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).- p18
str List of keypoints defining the area (18 maximum if using keyboard entry). At least 3 keypoints must be entered. If
P1= P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI).
- p1
- Returns:
intThe area number of the generated area.
Notes
Keypoints (
P1throughP18) must be input in a clockwise or counterclockwise order around the area. This order also determines the positive normal direction of the area according to the right-hand rule. Existing lines between adjacent keypoints will be used; missing lines are generated “straight” in the active coordinate system and assigned the lowest available numbers ( numstr ). If more than one line exists between two keypoints, the shorter one will be chosen. If the area is to be defined with more than four keypoints, the required keypoints and lines must lie on a constant coordinate value in the active coordinate system (such as a plane or a cylinder). Areas may be redefined only if not yet attached to a volume. Solid modeling in a toroidal coordinate system is not recommended.Examples
Create a simple triangle in the XY plane using three keypoints.
>>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 0, 0) >>> k2 = mapdl.k("", 0, 1, 0) >>> a0 = mapdl.a(k0, k1, k2) >>> a0 1