ansys.mapdl.core.Mapdl.con4#
- Mapdl.con4(xcenter='', ycenter='', rad1='', rad2='', depth='', **kwargs)#
Creates a conical volume anywhere on the working plane.
Mechanical APDL Command: CON4
- Parameters:
- xcenter
str Working plane X and Y coordinates of the center axis of the cone.
- ycenter
str Working plane X and Y coordinates of the center axis of the cone.
- rad1
str Radii of the faces of the cone.
RAD1defines the bottom face and will be located on the working plane.RAD2defines the top face and is parallel to the working plane. A value of zero or blank for eitherRAD1orRAD2defines a degenerate face at the center axis (that is, the vertex of the cone). The same value for bothRAD1andRAD2defines a cylinder instead of a cone.- rad2
str Radii of the faces of the cone.
RAD1defines the bottom face and will be located on the working plane.RAD2defines the top face and is parallel to the working plane. A value of zero or blank for eitherRAD1orRAD2defines a degenerate face at the center axis (that is, the vertex of the cone). The same value for bothRAD1andRAD2defines a cylinder instead of a cone.- depth
str The perpendicular distance (either positive or negative based on the working plane Z direction) from the working plane representing the depth of the cone.
DEPTHcannot be zero (see CON4_notes below).
- xcenter
- Returns:
intVolume 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