BoxMesh

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

Bases: dolfin.cpp.mesh.Mesh

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).

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.

thisown

The membership flag