![]() |
CoMMA 1.3.2
A geometric agglomerator for unstructured meshes
|
Convenient class containing salient features of a cell. According to to the chosen AR computation (see ARComputer), some features may be outdated. More...
#include <ARComputer.h>
Public Member Functions | |
| CellFeatures (const RealT measure=std::numeric_limits< RealT >::min(), const RealT external_weights=0.0, const RealT internal_weights=0.0, const IntT n_internal_faces=0, const RealT min_edge=std::numeric_limits< RealT >::max(), const RealT diam=std::numeric_limits< RealT >::min(), const std::vector< RealT > sum_centers=std::vector< RealT >{}, const std::unordered_map< IndexT, IntT > external_facets=std::unordered_map< IndexT, IntT >{}) | |
| Constructor. More... | |
| CellFeatures (const IndexT index, std::shared_ptr< Dual_Graph< IndexT, RealT, IntT > > graph) | |
| Constructor. More... | |
| CellFeatures (const CellFeatures< IndexT, RealT, IntT > &other)=default | |
| Copy constructor. More... | |
| CellFeatures (CellFeatures< IndexT, RealT, IntT > &&other) noexcept=default | |
| Move constructor. More... | |
| CellFeatures & | operator= (CellFeatures< IndexT, RealT, IntT > &&other) noexcept=default |
| Move assignment. More... | |
| CellFeatures & | operator= (const CellFeatures< IndexT, RealT, IntT > &other)=default |
| Copy assignment. More... | |
| template<unsigned int dim> | |
| RealT constexpr | get_radius () const |
| Compute the radius of a cell. More... | |
Public Attributes | |
| RealT | _measure |
| RealT | _external_weights |
| RealT | _internal_weights |
| IntT | _n_internal_faces |
| RealT | _sq_min_edge |
| RealT | _sq_diam |
| std::vector< RealT > | _sum_centers |
| std::unordered_map< IndexT, IntT > | _external_facets |
Convenient class containing salient features of a cell. According to to the chosen AR computation (see ARComputer), some features may be outdated.
| IndexT | type used for indices |
| RealT | type used for features |
| IntT | type used for integers (e.g., number of cells, faces,...) |
|
inlineexplicit |
Constructor.
| [in] | measure | Measure of the cell |
| [in] | external_weights | External weights, i.e., the area of external faces |
| [in] | internal_weights | Internal weights, i.e., the area of internal faces |
| [in] | n_internal_faces | Number of internal faces |
| [in] | min_edge | (Approximation of) The minimum edge of the cell |
| [in] | diam | (Approximation of) The diameter of the cell |
| [in] | sum_centers | Sum of the coordinates of the centers weighted by the mesures, useful to compute barycenter |
| [in] | external_facets | Number of external facets (not shared with other cells) by cell |
|
inline |
Constructor.
|
default |
Copy constructor.
| [in] | other | Features to move |
|
defaultnoexcept |
Move constructor.
| [in] | other | Features to move |
|
inlineconstexpr |
Compute the radius of a cell.
| dim | dimension of the problem (e.g., 1-, 2-, 3D,...) |
|
defaultnoexcept |
Move assignment.
| [in] | other | Features to move |
|
default |
Copy assignment.
| [in] | other | Features to copy |
| std::unordered_map<IndexT, IntT> comma::CellFeatures< IndexT, RealT, IntT >::_external_facets |
Number of external facets (not shared with other cells) by cell
| RealT comma::CellFeatures< IndexT, RealT, IntT >::_external_weights |
Sum of all external weights (i.e., the area of external faces)
| RealT comma::CellFeatures< IndexT, RealT, IntT >::_internal_weights |
Sum of all internal weights (i.e., the area of internal faces)
| RealT comma::CellFeatures< IndexT, RealT, IntT >::_measure |
Measure of the cell: area in 2D or volume in 3D
| IntT comma::CellFeatures< IndexT, RealT, IntT >::_n_internal_faces |
Number of internal faces
| RealT comma::CellFeatures< IndexT, RealT, IntT >::_sq_diam |
Square of the approximation of the diameter of the cell, that is, the maximum distance between two cell centers.
| RealT comma::CellFeatures< IndexT, RealT, IntT >::_sq_min_edge |
Square of the approximation of the minimum edge of the cell, that is, the minimum distance between two cell centers.
| std::vector<RealT> comma::CellFeatures< IndexT, RealT, IntT >::_sum_centers |
Sum of the coordinates of the centers weighted by the measures, useful to compute barycenter