FEATool Multiphysics
v1.17.1
Finite Element Analysis Toolbox
|
BLOCKGRID Generate 3D regular tensor product hexahedral grid.
[ GRID ] = BLOCKGRID( N_CX, N_CY, N_CZ, XP ) Generates a tensor product block grid with N_CX, N_CY, NCZ hexahedral cells in the x, y, and z-directions. The optional argument XP=[x1 x2; y1 y2; z1 z2] specifies the coordinates of the lower left (x1,y1,z1) and upper right (x2,y2,z2) corners. N_CX, N_CY, and N_CZ can also be vectors of x, y and z-coordinates. A call without input arguments generates a default 10x10x10 unit cube.
grid = blockgrid();
grid = blockgrid( 20, 40, 80, [-0.5 0.5; 1 2; 0 1] );
grid = blockgrid( [0, 0.1, 0.4, 1], [0:0.25:1.5], [0, 1] );