cone#

Mapdl.cone(rbot='', rtop='', z1='', z2='', theta1='', theta2='', **kwargs)[source]#

Create a conical volume centered about the working plane origin.

APDL Command: CONE

Defines a solid conical volume centered about the working plane origin. The non-degenerate face (top or bottom) is parallel to the working plane but not necessarily coplanar with (i.e., “on”) the working plane. The cone must have a spatial volume greater than zero. (i.e., this volume primitive command cannot be used to create a degenerate volume as a means of creating an area.)

For a cone of 360, top and bottom faces will be circular (each area defined with four lines), and they will be connected with two areas (each spanning 180 degrees). See the CON4 command for an alternate way to create cones.

Parameters:
rbot, rtop

Radii of the bottom and top faces of the cone. A value of zero or blank for either RBOT or RTOP defines a degenerate face at the center axis (i.e., the vertex of the cone). The same value for both RBOT and RTOP defines a cylinder instead of a cone.

z1, z2

Working plane Z coordinates of the cone. The smaller value is always associated with the bottom face.

theta1, theta2

Starting and ending angles (either order) of the cone. Used for creating a conical sector. The sector begins at the algebraically smaller angle, extends in a positive angular direction, and ends at the larger angle. The starting angle defaults to 0 degrees and the ending angle defaults to 360 degrees. See the Modeling and Meshing Guide for an illustration.

Returns:
int

Volume number of the cone.

Return type:

int

Examples

Create a quarter cone with a bottom radius of 3, top radius of 1 and a height of 10 centered at (0, 0).

>>> vnum = mapdl.cone(rbot=5, rtop=1, z1=0, z2=10, theta1=180, theta2=90)
>>> vnum
1