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

Interval mesh of the 1D line [a,b]. Given the number of cells (n) in the axial direction, the total number of intervals will be n and the total number of vertices will be (n + 1). More...

#include <IntervalMesh.h>

Static Public Member Functions

static mesh::Mesh create (MPI_Comm comm, std::size_t n, std::array< double, 2 > x, const fem::CoordinateElement &element, const mesh::GhostMode ghost_mode)
 Factory. More...
 

Detailed Description

Interval mesh of the 1D line [a,b]. Given the number of cells (n) in the axial direction, the total number of intervals will be n and the total number of vertices will be (n + 1).

Member Function Documentation

◆ create()

mesh::Mesh IntervalMesh::create ( MPI_Comm  comm,
std::size_t  n,
std::array< double, 2 >  x,
const fem::CoordinateElement element,
const mesh::GhostMode  ghost_mode 
)
static

Factory.

Parameters
[in]commMPI communicator to build the mesh on
[in]nThe number of cells.
[in]xThe end points
[in]elementElement that describes the geometry of a cell
[in]ghost_modeGhosting mode
Returns
A mesh

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