DOLFIN-X
DOLFIN-X C++ interface
UnitDiscMesh.h
1 // Copyright (C) 2018 Chris Richardson
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 <dolfinx/common/MPI.h>
10 #include <dolfinx/mesh/Mesh.h>
11 
12 namespace dolfinx
13 {
14 namespace fem
15 {
16 class CoordinateElement;
17 }
18 
19 namespace generation
20 {
21 
24 
26 {
27 public:
33  static mesh::Mesh create(MPI_Comm comm, int n,
34  const fem::CoordinateElement& element,
35  const mesh::GhostMode ghost_mode);
36 };
37 } // namespace generation
38 } // namespace dolfinx
dolfinx::mesh::GhostMode
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:36
dolfinx::mesh::Mesh
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:46
dolfinx::generation::UnitDiscMesh
A mesh consisting of a circular domain with quadratic geometry. This class is useful for testing.
Definition: UnitDiscMesh.h:25
dolfinx::generation::UnitDiscMesh::create
static mesh::Mesh create(MPI_Comm comm, int n, const fem::CoordinateElement &element, const mesh::GhostMode ghost_mode)
Create mesh of unit disc for testing quadratic geometry.
Definition: UnitDiscMesh.cpp:17
dolfinx::fem::CoordinateElement
This class manages coordinate mappings for isoparametric cells.
Definition: CoordinateElement.h:23