DOLFIN-X
DOLFIN-X C++ interface
|
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). More...
#include <RectangleMesh.h>
Static Public Member Functions | |
static mesh::Mesh | create (MPI_Comm comm, const std::array< Eigen::Vector3d, 2 > &p, std::array< std::size_t, 2 > n, const fem::CoordinateElement &element, const mesh::GhostMode ghost_mode, std::string diagonal="right") |
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).
|
static |
[in] | comm | MPI communicator to build the mesh on |
[in] | p | Two corner points |
[in] | n | Number of cells in each direction |
[in] | element | Element that describes the geometry of a cell |
[in] | ghost_mode | Mesh ghosting mode |
[in] | diagonal | Direction of diagonals: "left", "right", "left/right", "crossed" |