cyl4#
- Primitives.cyl4(xcenter='', ycenter='', rad1='', theta1='', rad2='', theta2='', depth='', **kwargs)#
Creates a circular area or cylindrical volume anywhere on the working plane.
Mechanical APDL Command: CYL4
- Parameters:
- xcenter
str Working plane X and Y coordinates of the center of the circle or cylinder.
- ycenter
str Working plane X and Y coordinates of the center of the circle or cylinder.
- rad1
str Inner and outer radii (either order) of the circle or cylinder. A value of zero or blank for either
RAD1orRAD2, or the same value for bothRAD1andRAD2, defines a solid circle or cylinder.- theta1
str Starting and ending angles (either order) of the circle or faces of the cylinder. Used for creating a partial annulus or partial cylinder. 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° and the ending angle defaults to 360°. See the Modeling and Meshing Guide for an illustration.
- rad2
str Inner and outer radii (either order) of the circle or cylinder. A value of zero or blank for either
RAD1orRAD2, or the same value for bothRAD1andRAD2, defines a solid circle or cylinder.- theta2
str Starting and ending angles (either order) of the circle or faces of the cylinder. Used for creating a partial annulus or partial cylinder. 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° and the ending angle defaults to 360°. See the Modeling and Meshing Guide for an illustration.
- 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 cylinder. If
DEPTH= 0 (default), a circular area is created on the working plane.
- xcenter
- Returns:
intVolume or area number of the block or rectangle.
Notes
Defines a circular area anywhere on the working plane or a cylindrical volume with one face anywhere on the working plane. 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 cyl5, pcirc, and cylind commands for alternate ways to create circles and cylinders.
When working with a model imported from an IGES file (DEFAULT import option), you must provide a value for
DEPTHor the command will be ignored.Examples
Create a half arc centered at the origin with an outer radius of 2 and an inner radius of 1
>>> anum = mapdl.cyl4(xcenter=0, ycenter=0, rad1=1, theta1=0, rad2=2, theta2=180) >>> anum
Create a solid cylinder with a depth of 10 at the center of the working plane.
>>> vnum = mapdl.cyl4(0, 0, 1, depth=10) >>> vnum 1
Create a cylinder with an inner radius of 1.9 and an outer of 2.0 with a height of 5 centered at the working plane.
>>> vnum = mapdl.cyl4(0, 0, rad1=1.9, rad2=2.0, depth=10) 2