cyl5#

Mapdl.cyl5(xedge1='', yedge1='', xedge2='', yedge2='', depth='', **kwargs)#

Create a circular area or cylindrical volume by end points.

APDL Command: CYL5

Defines a circular area anywhere on the working plane or a cylindrical volume with one face anywhere on the working plane by specifying diameter end points. For a solid cylinder of 360°, the top and bottom faces will be circular (each area defined with four lines) and they will be connected with two surface areas (each spanning 180°). See the CYL4, PCIRC, and CYLIND commands for alternate ways to create circles and cylinders.

Parameters:
xedge1, yedge1

Working plane X and Y coordinates of one end of the circle or cylinder face.

xedge2, yedge2

Working plane X and Y coordinates of the other end of the circle or cylinder face.

depth

The perpendicular distance (either positive or negative based on the working plane Z direction) from the working plane representing the depth of the cylinder. If DEPTH = 0 (default), a circular area is created on the working plane.

Returns:
int

Volume or area number of the circular area of cylindrical volume.

Return type:

int

Examples

Create a circular with one point of the circle at (1, 1) and the other point at (2, 2)

>>> anum = mapdl.cyl5(xedge1=1, yedge1=1, xedge2=2, yedge2=2)
>>> anum
1

Create a cylinder with one point of the circle at (X, Y) == (1, 1) and the other point at (X, Y) == (2, 2) with a height of 3.

>>> vnum = mapdl.cyl5(xedge1=1, yedge1=1, xedge2=2, yedge2=2, depth=5)
>>> vnum
1