General connectivity object. More...
#include <Mesh.H>
Public Member Functions | |
Connectivity () | |
Connectivity (unsigned int N) | |
void | Resize (unsigned int N=0) |
~Connectivity () | |
std::vector< IndexType > & | Element (IndexType n) |
std::vector< IndexType > | Element (IndexType n) const |
IndexType & | Node (IndexType e, IndexType n) |
IndexType | Node (IndexType e, IndexType n) const |
IndexType | Nelem () const |
IndexType | Esize (IndexType n) const |
void | AddElement (const std::vector< IndexType > &elem) |
void | AddElement () |
void | Sync () |
void | ShrinkWrap () |
void | Truncate () |
void | destroy () |
void | SyncSizes () |
void | DestroySizes () |
void | Inverse (Connectivity &, IndexType nnodes=0) const |
void | InverseDegenerate (Connectivity &, IndexType nnodes=0) const |
void | GetNeighborhood (NeighborHood &, const Connectivity &dc, IndexType size=0) |
void | GetNeighborhood (Connectivity &, Connectivity &dc, bool exclude_self=true, bool sortit=false) |
void | GetAdjacent (Connectivity &rl, Connectivity &dc, IndexType n=0, bool sortit=false) |
void | graph_mode (IndexType offset=0) |
void | matrix_mode (IndexType offset=0) |
void | BuildFaceConnectivity (Connectivity &fcon, Connectivity &ef, std::vector< Mesh::SymbolicFace > &sf, Connectivity &dc) const |
template<typename T > | |
void | Flatten (std::vector< T > &outcon) const |
void | BreadthFirstRenumber (std::vector< Mesh::IndexType > &remap) |
void | ElementsOn (std::vector< Mesh::IndexType > &nodes, Connectivity &dc, std::vector< Mesh::IndexType > &subset) |
Private Attributes | |
IndexType | _nelem |
std::vector< IndexType > | _sizes |
Friends | |
std::ostream & | operator<< (std::ostream &oSt, const Connectivity &ec) |
std::istream & | operator>> (std::istream &iSt, Connectivity &ec) |
Additional Inherited Members | |
Public Attributes inherited from vector< T > | |
T | elements |
STL member. More... | |
General connectivity object.
The Connectivity is a very useful object which allows the description of adjacency of many types of things. Currently the most obvious is describing the connectivity of mesh cells.
Connectivity | ( | ) |
Connectivity | ( | unsigned int | N | ) |
~Connectivity | ( | ) |
void AddElement | ( | const std::vector< IndexType > & | elem | ) |
Definition at line 235 of file Mesh.C.
Referenced by Rocon::burnout(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), main(), TRAIL_SurfaceMesh2Window(), and TRAIL_UnstructuredMesh2Pane().
void BreadthFirstRenumber | ( | std::vector< Mesh::IndexType > & | remap | ) |
void BuildFaceConnectivity | ( | Connectivity & | fcon, |
Connectivity & | ef, | ||
std::vector< Mesh::SymbolicFace > & | sf, | ||
Connectivity & | dc | ||
) | const |
Definition at line 337 of file Mesh.C.
References Esize(), Mesh::GenericElement::get_face_connectivities(), Nelem(), Mesh::GenericElement::nfaces(), Resize(), Sync(), and SyncSizes().
void destroy | ( | ) |
void ElementsOn | ( | std::vector< Mesh::IndexType > & | nodes, |
Connectivity & | dc, | ||
std::vector< Mesh::IndexType > & | subset | ||
) |
Definition at line 365 of file Mesh.H.
References _nelem, and _sizes.
Referenced by BuildFaceConnectivity(), Rocon::burnout(), GetStatistics(), main(), stitchGrids(), Mesh::writeVtkData(), and writeVtkData().
|
inline |
Definition at line 394 of file Mesh.H.
Referenced by TRAIL_FD2FE_WinCreate(), and TRAIL_FD2FE_WinCreate2().
void GetAdjacent | ( | Connectivity & | rl, |
Connectivity & | dc, | ||
IndexType | n = 0 , |
||
bool | sortit = false |
||
) |
void GetNeighborhood | ( | NeighborHood & | rl, |
const Connectivity & | dc, | ||
IndexType | size = 0 |
||
) |
void GetNeighborhood | ( | Connectivity & | rl, |
Connectivity & | dc, | ||
bool | exclude_self = true , |
||
bool | sortit = false |
||
) |
void graph_mode | ( | IndexType | offset = 0 | ) |
void Inverse | ( | Connectivity & | rc, |
IndexType | nnodes = 0 |
||
) | const |
Definition at line 312 of file Mesh.C.
References _nelem, i, Resize(), and Sync().
Referenced by BuildBorderStiffness(), Mesh::MeshUtilityObject::FormConnectivity(), GlobalDofReMapExchange(), and main().
void InverseDegenerate | ( | Connectivity & | rc, |
IndexType | nnodes = 0 |
||
) | const |
void matrix_mode | ( | IndexType | offset = 0 | ) |
|
inline |
Definition at line 364 of file Mesh.H.
References _nelem.
Referenced by BuildFaceConnectivity(), Rocon::burnout(), GetStatistics(), main(), stitchGrids(), TRAIL_FD2FE_WinCreate(), TRAIL_FD2FE_WinCreate2(), TRAIL_SurfaceMesh2Window(), and TRAIL_UnstructuredMesh2Pane().
Definition at line 354 of file Mesh.H.
Referenced by Rocon::burnout(), Mesh::GenericCell_2::GetNormalSet(), Mesh::GenericCell_2::GetPointSet(), Mesh::GenericElement::shapef_jacobian_at(), and stitchGrids().
void Resize | ( | unsigned int | N = 0 | ) |
Definition at line 233 of file Mesh.C.
Referenced by BuildFaceConnectivity(), Mesh::GenericElement::get_face_connectivities(), GetAdjacent(), GetNeighborhood(), Inverse(), InverseDegenerate(), and Mesh::operator>>().
void ShrinkWrap | ( | ) |
Definition at line 247 of file Mesh.C.
Referenced by main(), and Mesh::Partition::Read().
void Sync | ( | ) |
Definition at line 246 of file Mesh.C.
Referenced by BuildFaceConnectivity(), Rocon::burnout(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Inverse(), InverseDegenerate(), main(), Mesh::Partition::Read(), test(), and TRAIL_FD2FE_WinCreate2().
void SyncSizes | ( | ) |
Definition at line 281 of file Mesh.C.
References i.
Referenced by BuildFaceConnectivity(), main(), TRAIL_FD2FE_WinCreate2(), Mesh::writeVtkData(), and writeVtkData().
void Truncate | ( | ) |
|
friend |
|
friend |
|
private |
Definition at line 339 of file Mesh.H.
Referenced by BreadthFirstRenumber(), Element(), Esize(), GetAdjacent(), GetNeighborhood(), Inverse(), Nelem(), and Mesh::operator>>().
|
private |