con4#

Primitives.con4(xcenter='', ycenter='', rad1='', rad2='', depth='', **kwargs)#

Creates a conical volume anywhere on the working plane.

Mechanical APDL Command: CON4

Parameters:
xcenterstr

Working plane X and Y coordinates of the center axis of the cone.

ycenterstr

Working plane X and Y coordinates of the center axis of the cone.

rad1str

Radii of the faces of the cone. RAD1 defines the bottom face and will be located on the working plane. RAD2 defines the top face and is parallel to the working plane. A value of zero or blank for either RAD1 or RAD2 defines a degenerate face at the center axis (that is, the vertex of the cone). The same value for both RAD1 and RAD2 defines a cylinder instead of a cone.

rad2str

Radii of the faces of the cone. RAD1 defines the bottom face and will be located on the working plane. RAD2 defines the top face and is parallel to the working plane. A value of zero or blank for either RAD1 or RAD2 defines a degenerate face at the center axis (that is, the vertex of the cone). The same value for both RAD1 and RAD2 defines a cylinder instead of a cone.

depthstr

The perpendicular distance (either positive or negative based on the working plane Z direction) from the working plane representing the depth of the cone. DEPTH cannot be zero (see CON4_notes below).

Returns:
int

Volume number of the cone.

Notes

Defines a solid conical volume with either the vertex or a face anywhere on the working plane. The cone must have a spatial volume greater than zero. (that is, this volume primitive command cannot be used to create a degenerate volume as a means of creating an area.) The face or faces will be circular (each area defined with four lines), and they will be connected with two areas (each spanning 180°). See the cone command for an alternate way to create cones.

Examples

Create a cone with a bottom radius of 3 and a height of 10.

>>> vnum = mapdl.con4(rad1=3, rad2=0, depth=10)
>>> vnum
1