UnitIntervalMesh¶
-
class
dolfin.cpp.mesh.
UnitIntervalMesh
(*args)¶ Bases:
dolfin.cpp.mesh.IntervalMesh
A mesh of the unit interval (0, 1) with a given number of cells (nx) in the axial direction. The total number of intervals will be nx and the total number of vertices will be (nx + 1).
Constructor
// Create a mesh of 25 cells in the interval [0,1] UnitIntervalMesh mesh(MPI_COMM_WORLD, 25);
Parameters: - comm (MPI_Comm) – (MPI_Comm)
MPI
communicator - nx (std::size_t) – (std::size_t) The number of cells.
-
static
create
()¶ Factory
// Create a mesh of 25 cells in the interval [0,1] auto mesh = UnitIntervalMesh::create(MPI_COMM_WORLD, 25);
Parameters: - comm (MPI_Comm) – (MPI_Comm)
MPI
communicator - n (std::size_t) – (std::size_t) The number of cells.
Return type: - comm (MPI_Comm) – (MPI_Comm)
-
thisown
¶ The membership flag
- comm (MPI_Comm) – (MPI_Comm)