DOLFIN-X
DOLFIN-X C++ interface
|
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). More...
#include <BoxMesh.h>
Static Public Member Functions | |
static mesh::Mesh | create (MPI_Comm comm, const std::array< Eigen::Vector3d, 2 > &p, std::array< std::size_t, 3 > n, const fem::CoordinateElement &element, const mesh::GhostMode ghost_mode) |
Create a uniform finite element Mesh over the rectangular prism spanned by the two _geometry::Point_s p0 and p1. The order of the two points is not important in terms of minimum and maximum coordinates. More... | |
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).
|
static |
Create a uniform finite element Mesh over the rectangular prism spanned by the two _geometry::Point_s p0 and p1. The order of the two points is not important in terms of minimum and maximum coordinates.
[in] | comm | MPI communicator to build mesh on |
[in] | p | Points of box |
[in] | n | Number of cells in each direction. |
[in] | element | Element that describes the geometry of a cell |
[in] | ghost_mode | Ghost mode |