v#
- Volumes.v(p1='', p2='', p3='', p4='', p5='', p6='', p7='', p8='', **kwargs)#
Defines a volume through keypoints.
Mechanical APDL Command: V
- Parameters:
- p1
str Keypoint defining starting corner of volume. If
P1= P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).- p2
str Keypoint defining second corner of volume.
- p3
str Keypoint defining third corner of volume.
- p4
str Keypoint defining fourth corner of volume.
- p5
str Keypoint defining fifth corner of volume.
- p6
str Keypoint defining sixth corner of volume.
- p7
str Keypoint defining seventh corner of volume.
- p8
str Keypoint defining eighth corner of volume.
- p1
- Returns:
intVolume number of the generated volume.
Notes
Notes
Defines a volume (and its corresponding lines and areas) through eight (or fewer) existing keypoints. Keypoints must be input in a continuous order. The order of the keypoints should be around the bottom and then the top. Missing lines are generated “straight” in the active coordinate system and assigned the lowest available numbers ( numstr ). Missing areas are generated and assigned the lowest available numbers.
Solid modeling in a toroidal coordinate system is not recommended.
Certain faces may be condensed to a line or point by repeating keypoints. For example, use v,
P1,P2,P3,P3,P5,P6,P7,P7for a triangular prism or v,P1,P2,P3,P3,P5,P5,P5,P5for a tetrahedron.Using keypoints to produce partial sections in csys = 2 can generate anomalies; check the resulting volumes carefully.
Examples
Create a simple cube volume.
>>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 0, 0) >>> k2 = mapdl.k("", 1, 1, 0) >>> k3 = mapdl.k("", 0, 1, 0) >>> k4 = mapdl.k("", 0, 0, 1) >>> k5 = mapdl.k("", 1, 0, 1) >>> k6 = mapdl.k("", 1, 1, 1) >>> k7 = mapdl.k("", 0, 1, 1) >>> v0 = mapdl.v(k0, k1, k2, k3, k4, k5, k6, k7) >>> v0 1
Create a triangular prism
>>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 0, 0) >>> k2 = mapdl.k("", 1, 1, 0) >>> k3 = mapdl.k("", 0, 1, 0) >>> k4 = mapdl.k("", 0, 0, 1) >>> k5 = mapdl.k("", 1, 0, 1) >>> k6 = mapdl.k("", 1, 1, 1) >>> k7 = mapdl.k("", 0, 1, 1) >>> v1 = mapdl.v(k0, k1, k2, k2, k4, k5, k6, k6) >>> v1 2
Create a tetrahedron
>>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 0, 0) >>> k2 = mapdl.k("", 1, 1, 0) >>> k3 = mapdl.k("", 0, 0, 1) >>> v2 = mapdl.v(k0, k1, k2, k2, k3, k3, k3, k3) >>> v2 3