# BoxMesh¶

class dolfin.cpp.mesh.BoxMesh(*args)

Tetrahedral mesh of the 3D rectangular prism [x0, x1] x [y0, y1] x [z0, z1]. Given the number of cells (nx, ny, nz) in each direction, the total number of tetrahedra will be 6*nx*ny*nz and the total number of vertices will be (nx + 1)*(ny + 1)*(nz + 1).

• BoxMesh(x0, y0, z0, x1, y1, z1, nx, ny, nz)

Create a uniform finite element Mesh over the rectangular prism [x0, x1] x [y0, y1] x [z0, z1].

Arguments
x0 (float)

$$x$$-min.

y0 (float)

$$y$$-min.

z0 (float)

$$z$$-min.

x1 (float)

$$x$$-max.

y1 (float)

$$y$$-max.

z1 (float)

$$z$$-max.

xn (float)

Number of cells in $$x$$-direction.

yn (float)

Number of cells in $$y$$-direction.

zn (float)

Number of cells in $$z$$-direction.

Example

Note

No example code available for this function.

• BoxMesh(comm, x0, y0, z0, x1, y1, z1, nx, ny, nz)

Create a uniform finite element Mesh over the rectangular prism [x0, x1] x [y0, y1] x [z0, z1].

Arguments
comm (MPI)

MPI communicator

x0 (float)

$$x$$-min.

y0 (float)

$$y$$-min.

z0 (float)

$$z$$-min.

x1 (float)

$$x$$-max.

y1 (float)

$$y$$-max.

z1 (float)

$$z$$-max.

xn (float)

Number of cells in $$x$$-direction.

yn (float)

Number of cells in $$y$$-direction.

zn (float)

Number of cells in $$z$$-direction.

Example

Note

No example code available for this function.

thisown

The membership flag