DOLFIN-X
DOLFIN-X C++ interface
dolfinx
generation
IntervalMesh.h
1
// Copyright (C) 2007 Kristian B. Oelgaard
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 <cstddef>
11
#include <dolfinx/mesh/Mesh.h>
12
13
namespace
dolfinx
14
{
15
namespace
fem
16
{
17
class
CoordinateElement;
18
}
19
20
namespace
generation
21
{
22
26
27
class
IntervalMesh
28
{
29
public
:
37
static
mesh::Mesh
create
(MPI_Comm comm, std::size_t n,
38
std::array<double, 2> x,
39
const
fem::CoordinateElement
& element,
40
const
mesh::GhostMode
ghost_mode);
41
};
42
}
// namespace generation
43
}
// namespace dolfinx
dolfinx::mesh::GhostMode
GhostMode
Enum for different partitioning ghost modes.
Definition:
Mesh.h:37
dolfinx::generation::IntervalMesh
Interval mesh of the 1D line [a,b]. Given the number of cells (n) in the axial direction,...
Definition:
IntervalMesh.h:28
dolfinx::mesh::Mesh
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition:
Mesh.h:47
dolfinx::generation::IntervalMesh::create
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.
Definition:
IntervalMesh.cpp:68
dolfinx::fem::CoordinateElement
This class manages coordinate mappings for isoparametric cells.
Definition:
CoordinateElement.h:24
Generated by
1.8.18