OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Class representing connectivity table. More...
#include <connectivitytable.h>
Public Member Functions | |
ConnectivityTable (Domain *d) | |
Constructor. More... | |
~ConnectivityTable () | |
Destructor. More... | |
void | reset () |
reset receiver to an initial state (will force table update, when needed next time) More... | |
void | setDomain (Domain *ipDomain) |
void | instanciateConnectivityTable () |
Builds connectivity table. More... | |
const IntArray * | giveDofManConnectivityArray (int dofman) |
void | giveElementNeighbourList (IntArray &answer, IntArray &elemList) |
Returns list of neighboring elements to given elements (they are included too). More... | |
void | giveNodeNeighbourList (IntArray &answer, IntArray &nodeList) |
Returns list of elements sharing given nodes. More... | |
Private Attributes | |
Domain * | domain |
Pointer to domain to which receiver belongs to. More... | |
std::vector< IntArray > | nodalConnectivity |
Nodal connectivity table for domain. More... | |
int | nodalConnectivityFlag |
Flag indicating assembled connectivity table for domain. More... | |
Class representing connectivity table.
Usually attribute of domain. Provides selected connectivity information services for domain.
Its tasks are
Definition at line 55 of file connectivitytable.h.
|
inline |
Constructor.
Creates new Connectivity table belonging to given domain.
Definition at line 70 of file connectivitytable.h.
|
inline |
Destructor.
Definition at line 72 of file connectivitytable.h.
const IntArray * oofem::ConnectivityTable::giveDofManConnectivityArray | ( | int | dofman | ) |
dofman | DofManger number. |
Definition at line 95 of file connectivitytable.C.
References instanciateConnectivityTable(), nodalConnectivity, and nodalConnectivityFlag.
Referenced by oofem::SPRNodalRecoveryModel::determinePatchAssemblyPoints(), oofem::SpatialLocalizer::giveAllElementsWithNodesWithinBox(), oofem::CombinedZZSIRemeshingCriteria::giveDofManDensity(), oofem::ZZRemeshingCriteria::giveDofManDensity(), oofem::HuertaRemeshingCriteria::giveDofManDensity(), oofem::DirectErrorIndicatorRC::giveLocalDofManDensity(), oofem::DirectErrorIndicatorRC::giveLocalDofManIndicator(), oofem::FastMarchingMethod::initialize(), oofem::SPRNodalRecoveryModel::initPatch(), oofem::OctreeSpatialLocalizer::insertElementsUsingNodalConnectivitiesIntoOctree(), oofem::ParmetisLoadBalancer::labelDofManagers(), oofem::EIPrimaryUnknownMapper::mapAndUpdate(), oofem::REGISTER_EnrichmentFront(), oofem::FreemInterface::smoothNodalDensities(), oofem::FastMarchingMethod::solve(), oofem::HuertaErrorEstimator::solveRefinedPatchProblem(), oofem::LevelSetPCS::updatePosition(), and oofem::FastMarchingMethod::updateTrialValue().
Returns list of neighboring elements to given elements (they are included too).
Neighbor is defined as element sharing the given element node.
answer | List of neighbors + given elements, every element contained only once. |
elemList | List of elements, which neighborhood is searched. |
Definition at line 106 of file connectivitytable.C.
References domain, oofem::Element::giveDofManager(), oofem::Domain::giveElement(), oofem::FEMComponent::giveNumber(), oofem::Element::giveNumberOfDofManagers(), oofem::IntArray::insertSortedOnce(), instanciateConnectivityTable(), nodalConnectivity, nodalConnectivityFlag, and oofem::IntArray::resize().
Referenced by oofem::MMALeastSquareProjection::__init(), oofem::Shell7BaseXFEM::computeFailureCriteriaQuantities(), oofem::LEPlic::doCellDLS(), oofem::Shell7Base::giveLayerContributionToSR(), oofem::Subdivision::RS_Triangle::importConnectivity(), oofem::Subdivision::RS_Tetra::importConnectivity(), and oofem::LEPlicElementInterface::isBoundary().
Returns list of elements sharing given nodes.
answer | List of elements, every element contained only once. |
nodeList | List of nodes, which neighborhood is searched. |
Definition at line 128 of file connectivitytable.C.
References oofem::IntArray::at(), oofem::IntArray::giveSize(), oofem::IntArray::insertSortedOnce(), instanciateConnectivityTable(), nodalConnectivity, nodalConnectivityFlag, and oofem::IntArray::resize().
Referenced by oofem::Subdivision::RS_Node::buildTopLevelNodeConnectivity(), oofem::MITC4Shell::giveDirectorVectors(), oofem::Subdivision::RS_Node::importConnectivity(), oofem::Subdivision::RS_Triangle::importConnectivity(), oofem::Subdivision::RS_Tetra::importConnectivity(), oofem::PLCZdamageRadius::propagateInterface(), and oofem::XfemManager::updateNodeEnrichmentItemMap().
void oofem::ConnectivityTable::instanciateConnectivityTable | ( | ) |
Builds connectivity table.
This table contains for each dofManager the list of elements sharing it.
Definition at line 50 of file connectivitytable.C.
References oofem::IntArray::at(), domain, oofem::Element::giveDofManager(), oofem::Domain::giveElement(), oofem::Domain::giveElements(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveNumberOfDofManagers(), oofem::Element::giveNumberOfDofManagers(), oofem::Domain::giveNumberOfElements(), nodalConnectivity, nodalConnectivityFlag, and oofem::IntArray::zero().
Referenced by giveDofManConnectivityArray(), giveElementNeighbourList(), and giveNodeNeighbourList().
void oofem::ConnectivityTable::reset | ( | ) |
reset receiver to an initial state (will force table update, when needed next time)
Definition at line 44 of file connectivitytable.C.
References nodalConnectivityFlag.
Referenced by oofem::Domain::commitTransactions().
|
inline |
Definition at line 76 of file connectivitytable.h.
|
private |
Pointer to domain to which receiver belongs to.
Definition at line 59 of file connectivitytable.h.
Referenced by giveElementNeighbourList(), and instanciateConnectivityTable().
|
private |
Nodal connectivity table for domain.
Definition at line 62 of file connectivitytable.h.
Referenced by giveDofManConnectivityArray(), giveElementNeighbourList(), giveNodeNeighbourList(), and instanciateConnectivityTable().
|
private |
Flag indicating assembled connectivity table for domain.
Definition at line 64 of file connectivitytable.h.
Referenced by giveDofManConnectivityArray(), giveElementNeighbourList(), giveNodeNeighbourList(), instanciateConnectivityTable(), and reset().