DOLFIN-X
DOLFIN-X C++ interface
Static Public Member Functions | List of all members
dolfinx::generation::BoxMesh Class Reference

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...
 

Detailed Description

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).

Member Function Documentation

◆ create()

mesh::Mesh BoxMesh::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 
)
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.

Parameters
[in]commMPI communicator to build mesh on
[in]pPoints of box
[in]nNumber of cells in each direction.
[in]elementElement that describes the geometry of a cell
[in]ghost_modeGhost mode
Returns
Mesh

The documentation for this class was generated from the following files: