blc5

Mapdl.blc5(xcenter='', ycenter='', width='', height='', depth='', **kwargs)

Create a rectangular area or block volume by center and corner points.

APDL Command: BLC5

Defines a rectangular area anywhere on the working plane or a hexahedral volume with one face anywhere on the working plane by specifying the center and corner points. A rectangle will be defined with four keypoints and four lines. A volume will be defined with eight keypoints, twelve lines, and six areas, with the top and bottom faces parallel to the working plane. See the BLC4, RECTNG, and BLOCK commands for alternate ways to create rectangles and blocks.

Parameters
xcenter, ycenter

Working plane X and Y coordinates of the center of the rectangle or block face.

width

The total distance on or parallel to the working plane X-axis defining the width of the rectangle or block face.

height

The total distance on or parallel to the working plane Y-axis defining the height of the rectangle or block 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 block. If depth=0 (default), a rectangular area is created on the working plane.

Returns
int

Volume or area number of the block or rectangle.

Examples

Create a square centered at (0, 0) with a width of 0.5 and a height of 0.5

>>> anum = mapdl.blc5(width=0.5, height=0.5)
>>> anum
1
>>> vnum = mapdl.blc5(width=1, height=4, depth=9)
>>> vnum
1
Return type

int