UnitCubeMesh

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

Bases: dolfin.cpp.mesh.BoxMesh

Tetrahedral mesh of the 3D unit cube [0,1] x [0,1] x [0,1]. 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

  • UnitCubeMesh(nx, ny, nz)

    Create a uniform finite element Mesh over the unit cube [0,1] x [0,1] x [0,1].

    Arguments
    nx (int)

    Number of cells in x direction.

    ny (int)

    Number of cells in y direction.

    nz (int)

    Number of cells in z direction.

    Example

    Note

    No example code available for this function.

  • UnitCubeMesh(comm, nx, ny, nz)

    Create a uniform finite element Mesh over the unit cube [0,1] x [0,1] x [0,1].

    Arguments
    comm (MPI)

    MPI communicator

    nx (int)

    Number of cells in x direction.

    ny (int)

    Number of cells in y direction.

    nz (int)

    Number of cells in z direction.

    Example

    Note

    No example code available for this function.

thisown

The membership flag