DOLFINx 0.10.0.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
topologycomputation.h
1// Copyright (C) 2006-2024 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 "cell_types.h"
10#include <array>
11#include <cstdint>
12#include <dolfinx/graph/AdjacencyList.h>
13#include <memory>
14#include <tuple>
15#include <vector>
16
17namespace dolfinx::common
18{
19class IndexMap;
20}
21
22namespace dolfinx::mesh
23{
24class Topology;
25
44std::tuple<std::vector<std::shared_ptr<graph::AdjacencyList<std::int32_t>>>,
45 std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
46 std::shared_ptr<common::IndexMap>, std::vector<std::int32_t>>
47compute_entities(const Topology& topology, int dim, CellType entity_type);
48
61std::array<std::shared_ptr<graph::AdjacencyList<std::int32_t>>, 2>
62compute_connectivity(const Topology& topology, std::array<int, 2> d0,
63 std::array<int, 2> d1);
64
65} // namespace dolfinx::mesh
Definition IndexMap.h:96
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition Topology.h:41
Miscellaneous classes, functions and types.
Definition dolfinx_common.h:8
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
CellType
Cell type identifier.
Definition cell_types.h:22
std::array< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, 2 > compute_connectivity(const Topology &topology, std::array< int, 2 > d0, std::array< int, 2 > d1)
Compute connectivity (d0 -> d1) for given pair of entity types, given by topological dimension and in...
Definition topologycomputation.cpp:825
std::tuple< std::vector< std::shared_ptr< graph::AdjacencyList< std::int32_t > > >, std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< common::IndexMap >, std::vector< std::int32_t > > compute_entities(const Topology &topology, int dim, CellType entity_type)
Compute mesh entities of given topological dimension by computing cell-to-entity (tdim,...
Definition topologycomputation.cpp:768