Manicore
Library to implement schemes on n-dimensionnal manifolds.
Public Types | Public Member Functions | List of all members
Manicore::dCell_graph< dimension > Class Template Reference

Manage topological relations between cells. More...

#include <dcell.hpp>

Public Types

typedef std::array< std::vector< dCell_graph >, dimension+1 > Collection
 Type to store the topological data of every cell. More...
 

Public Member Functions

 dCell_graph (size_t id, std::vector< size_t > const &map_ids)
 Constructor for vertex (0-cell) More...
 
 dCell_graph (Collection const &, size_t d, size_t id, std::vector< size_t > const &map_ids, std::vector< size_t > const &bd)
 General constructor. More...
 
size_t get_id () const
 Return the global index of the cell. More...
 
std::vector< size_t > const & get_map_ids () const
 Return the id of the charts corresponding to its parametrizations. More...
 
std::vector< size_t > const & get_boundary (size_t dim) const
 Return the global index of the cell of dimension dim on its boundary. More...
 
std::vector< size_t > const & get_relative_map (size_t dim) const
 Return the index of the parametrization of the cell of dimension dim on the boundary, corresponding to same chart as the first parametrization of this cell. More...
 
size_t global_to_local (size_t d_boundary, size_t i_b) const
 Return the index of the i_b d_boundary-cell relative to this cell. More...
 

Detailed Description

template<size_t dimension>
class Manicore::dCell_graph< dimension >

Manage topological relations between cells.

Template Parameters
dimensionDimension of the manifold This class should not be used directly but through Mesh instead.

Member Typedef Documentation

◆ Collection

template<size_t dimension>
typedef std::array<std::vector<dCell_graph>,dimension+1> Manicore::dCell_graph< dimension >::Collection

Type to store the topological data of every cell.

Constructor & Destructor Documentation

◆ dCell_graph() [1/2]

template<size_t dimension>
Manicore::dCell_graph< dimension >::dCell_graph ( size_t  id,
std::vector< size_t > const &  map_ids 
)

Constructor for vertex (0-cell)

Parameters
idIndex of the cell being constructed
map_idsId of the charts corresponding to its parametrization

◆ dCell_graph() [2/2]

template<size_t dimension>
Manicore::dCell_graph< dimension >::dCell_graph ( Collection const &  coll,
size_t  d,
size_t  id,
std::vector< size_t > const &  map_ids,
std::vector< size_t > const &  bd 
)

General constructor.

Cannot be used for vertex

Parameters
collCollection of all lower dimension cells
dDimension of the cell being constructed
idIndex of the cell being constructed
map_idsId of the charts corresponding to its parametrization
bdList of the global index of the (d-1)-cells on its boundary

Member Function Documentation

◆ get_boundary()

template<size_t dimension>
std::vector<size_t> const& Manicore::dCell_graph< dimension >::get_boundary ( size_t  dim) const
inline

Return the global index of the cell of dimension dim on its boundary.

Parameters
dimDimension of the boundary cell

◆ get_id()

template<size_t dimension>
size_t Manicore::dCell_graph< dimension >::get_id ( ) const
inline

Return the global index of the cell.

◆ get_map_ids()

template<size_t dimension>
std::vector<size_t> const& Manicore::dCell_graph< dimension >::get_map_ids ( ) const
inline

Return the id of the charts corresponding to its parametrizations.

◆ get_relative_map()

template<size_t dimension>
std::vector<size_t> const& Manicore::dCell_graph< dimension >::get_relative_map ( size_t  dim) const
inline

Return the index of the parametrization of the cell of dimension dim on the boundary, corresponding to same chart as the first parametrization of this cell.

Parameters
dimDimension of the boundary cell

◆ global_to_local()

template<size_t dimension>
size_t Manicore::dCell_graph< dimension >::global_to_local ( size_t  d_boundary,
size_t  i_b 
) const

Return the index of the i_b d_boundary-cell relative to this cell.

Parameters
d_boundaryDimension of the boundary cell
i_bGlobal index of the boundary cell

The documentation for this class was generated from the following file: