block#
- Mapdl.block(x1='', x2='', y1='', y2='', z1='', z2='', **kwargs)#
Create a block volume based on working plane coordinates.
APDL Command: BLOCK
Defines a hexahedral volume based on the working plane. The block must have a spatial volume greater than zero (i.e., this volume primitive command cannot be used to create a degenerate volume as a means of creating an area.) The 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
andBLC5
commands for alternate ways to create blocks.- Parameters:
- x1, x2
Working plane X coordinates of the block.
- y1, y2
Working plane Y coordinates of the block.
- z1, z2
Working plane Z coordinates of the block.
- Returns:
int
Volume number of the block.
Examples
Create a block volume based on working plane coordinates with the size
(1 x 2 x 3)
.>>> vnum = mapdl.block(0, 1, 0, 2, 1, 4) >>> vnum 1