RectangleMesh

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

Bases: dolfin.cpp.mesh.Mesh

Triangular mesh of the 2D rectangle spanned by two points p0 and p1. Given the number of cells (nx, ny) in each direction, the total number of triangles will be 2*nx*ny and the total number of vertices will be (nx + 1)*(ny + 1).

Overloaded versions

  • RectangleMesh(p0, p1, nx, ny, diagonal=”right”)

    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.

    diagonal (str)

    Direction of diagonals: “left”, “right”, “left/right”, “crossed”

    Example

    Note

    No example code available for this function.

  • RectangleMesh(comm, p0, p1, nx, ny, diagonal=”right”)

    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.

    diagonal (str)

    Direction of diagonals: “left”, “right”, “left/right”, “crossed”

    Example

    Note

    No example code available for this function.

thisown

The membership flag