Loading...
Searching...
No Matches
topologycomputation.h
// Copyright (C) 2006-2024 Anders Logg and Garth N. Wells
//
// This file is part of DOLFINx (https://www.fenicsproject.org)
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#pragma once
#include "cell_types.h"
#include <array>
#include <cstdint>
#include <dolfinx/graph/AdjacencyList.h>
#include <memory>
#include <tuple>
#include <vector>
namespace dolfinx::common
{
class IndexMap;
}
namespace dolfinx::mesh
{
class Topology;
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);
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);
} // namespace dolfinx::mesh
dolfinx::common::IndexMap
Definition IndexMap.h:97
dolfinx::mesh::Topology
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition Topology.h:41
dolfinx::common
Miscellaneous classes, functions and types.
Definition dolfinx_common.h:8
dolfinx::mesh
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
dolfinx::mesh::CellType
CellType
Cell type identifier.
Definition cell_types.h:22
dolfinx::mesh::compute_connectivity
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
dolfinx::mesh::compute_entities
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