DOLFIN-X
DOLFIN-X C++ interface
RectangleMesh.h
1 // Copyright (C) 2005-2017 Anders Logg and Garth N. Wells
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <array>
10 #include <dolfinx/common/MPI.h>
11 #include <dolfinx/mesh/Mesh.h>
12 #include <string>
13 
14 namespace dolfinx
15 {
16 namespace fem
17 {
18 class CoordinateElement;
19 }
20 
21 namespace generation
22 {
23 
28 
30 {
31 public:
40  static mesh::Mesh
41  create(MPI_Comm comm, const std::array<Eigen::Vector3d, 2>& p,
42  std::array<std::size_t, 2> n, const fem::CoordinateElement& element,
43  const mesh::GhostMode ghost_mode, std::string diagonal = "right");
44 };
45 } // namespace generation
46 } // namespace dolfinx
This class manages coordinate mappings for isoparametric cells.
Definition: CoordinateElement.h:24
Triangular mesh of the 2D rectangle spanned by two points p0 and p1. Given the number of cells (nx,...
Definition: RectangleMesh.h:30
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")
Definition: RectangleMesh.cpp:260
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:47
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:37