BoxMesh

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

Bases: dolfin.cpp.mesh.Mesh

Tetrahedral mesh of the 3D rectangular prism spanned by two points p0 and p1. 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).

Overloaded versions

  • BoxMesh(p0, p1, nx, ny, nz)

    Create a uniform finite element Mesh over the rectangular prism spanned by the two _Point_s p0 and p1. The order of the two points is not important in terms of minimum and maximum coordinates.

    Arguments
    p0 (Point)

    First point.

    p1 (Point)

    Second point.

    nx (float)

    Number of cells in \(x\)-direction.

    ny (float)

    Number of cells in \(y\)-direction.

    nz (float)

    Number of cells in \(z\)-direction.

    Example

    Note

    No example code available for this function.

  • BoxMesh(comm, p0, p1, nx, ny, nz)

    Create a uniform finite element Mesh over the rectangular prism spanned by the two _Point_s p0 and p1. The order of the two points is not important in terms of minimum and maximum coordinates.

    Arguments
    comm (MPI)

    MPI communicator

    p0 (Point)

    First point.

    p1 (Point)

    Second point.

    nx (float)

    Number of cells in \(x\)-direction.

    ny (float)

    Number of cells in \(y\)-direction.

    nz (float)

    Number of cells in \(z\)-direction.

    Example

    Note

    No example code available for this function.

thisown

The membership flag