#include <conTable.h>

Public Member Functions | |
| ConnectivityTable (Domain *d) | |
| Constructor. | |
| ~ConnectivityTable () | |
| Destructor. | |
| void | reset () |
| reset receiver to an initial state (will force table update, when needed next time) | |
| void | instanciateConnectivityTable () |
| Builds connectivity table. | |
| const IntArray * | giveDofManConnectivityArray (int dofman) |
| Returns connectivity array for given DofManger. | |
| void | giveElementNeighbourList (IntArray &answer, IntArray &elemList) |
| Returns list of neighboring elements to given elements (they are included too). | |
| void | giveNodeNeighbourList (IntArray &answer, IntArray &nodeList) |
| Returns list of elements sharing given nodes. | |
| void | printYourself () |
| Prints receiver contens on output. | |
Private Attributes | |
| Domain * | domain |
| Pointer to domain to which receiver belongs to. | |
| int * | dofManagersConnectivity |
| array of connectivities for dofmanagers. | |
| AList< IntArray > | nodalConnectivity |
| Nodal connectivity table for domain. | |
| int | nodalConnectivityFlag |
| Flag indicating assembled connectivity table for domain. | |
Usually attribute of domain. Provides selected connectivity information services for domain.
Definition at line 53 of file conTable.h.
| ConnectivityTable::ConnectivityTable | ( | Domain * | d | ) | [inline] |
Constructor.
Creates new Connectivity table belonging to given domain.
Definition at line 87 of file conTable.h.
References dofManagersConnectivity, domain, and nodalConnectivityFlag.
| ConnectivityTable::~ConnectivityTable | ( | ) |
| void ConnectivityTable::reset | ( | ) |
reset receiver to an initial state (will force table update, when needed next time)
Definition at line 58 of file conTable.C.
References dofManagersConnectivity, freeInt(), and nodalConnectivityFlag.
Referenced by Domain::commitTransactions(), and ~ConnectivityTable().
| void ConnectivityTable::instanciateConnectivityTable | ( | ) |
Builds connectivity table.
This table contatins for each dofManager the list of elements sharing it.
Definition at line 493 of file conTable.C.
References AList< T >::at(), IntArray::at(), domain, Element::giveDofManager(), Domain::giveElement(), FEMComponent::giveNumber(), Element::giveNumberOfDofManagers(), Domain::giveNumberOfDofManagers(), Domain::giveNumberOfElements(), AList< T >::growTo(), nodalConnectivity, nodalConnectivityFlag, OOFEM_LOG_INFO(), AList< T >::put(), and IntArray::zero().
Referenced by giveDofManConnectivityArray(), giveElementNeighbourList(), and giveNodeNeighbourList().
| const IntArray * ConnectivityTable::giveDofManConnectivityArray | ( | int | dofman | ) |
Returns connectivity array for given DofManger.
| dofman | DofManger number |
Definition at line 543 of file conTable.C.
References AList< T >::at(), instanciateConnectivityTable(), nodalConnectivity, and nodalConnectivityFlag.
Referenced by XfemManager::computeNodeEnrichmentType(), SPRNodalRecoveryModel::determinePatchAssemblyPoints(), SpatialLocalizer::giveAllElementsWithNodesWithinBox(), ZZRemeshingCriteria::giveDofManDensity(), HuertaRemeshingCriteria::giveDofManDensity(), CombinedZZSIRemeshingCriteria::giveDofManDensity(), DirectErrorIndicatorRC::giveLocalDofManDensity(), DirectErrorIndicatorRC::giveLocalDofManIndicator(), LEPlic::giveNodalScalarRepresentation(), DirectErrorIndicatorRC::giveNodeChar(), FastMarchingMethod::initialize(), SPRNodalRecoveryModel::initPatch(), OctreeSpatialLocalizer::insertElementsUsingNodalConnectivitiesIntoOctree(), EnrichmentItem::isDofManEnriched(), EIPrimaryUnknownMapper::mapAndUpdate(), FreemInterface::smoothNodalDensities(), FastMarchingMethod::solve(), HuertaErrorEstimator::solveRefinedPatchProblem(), LevelSetPCS::updatePosition(), and FastMarchingMethod::updateTrialValue().
Returns list of neighboring elements to given elements (they are included too).
Neighbour is defined as element sharing the given element node.
| answer | list of neighbours + given elements, every element contained only once. | |
| elemList | list of elements, which neighborhood is searched. |
Definition at line 554 of file conTable.C.
References AList< T >::at(), IntArray::at(), domain, Element::giveDofManager(), Domain::giveElement(), FEMComponent::giveNumber(), Element::giveNumberOfDofManagers(), IntArray::giveSize(), instanciateConnectivityTable(), nodalConnectivity, nodalConnectivityFlag, and IntArray::resize().
Referenced by MMALeastSquareProjection::__init(), LEPlic::doCellDLS(), LEPlic::doInterfaceRemapping(), Subdivision::RS_Tetra::importConnectivity(), Subdivision::RS_Triangle::importConnectivity(), and 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 584 of file conTable.C.
References AList< T >::at(), IntArray::at(), IntArray::giveSize(), instanciateConnectivityTable(), nodalConnectivity, nodalConnectivityFlag, and IntArray::resize().
Referenced by Subdivision::RS_Node::buildTopLevelNodeConnectivity(), Subdivision::RS_Tetra::importConnectivity(), Subdivision::RS_Triangle::importConnectivity(), and Subdivision::RS_Node::importConnectivity().
| void ConnectivityTable::printYourself | ( | ) |
Domain* ConnectivityTable::domain [private] |
Pointer to domain to which receiver belongs to.
Definition at line 73 of file conTable.h.
Referenced by ConnectivityTable(), giveElementNeighbourList(), and instanciateConnectivityTable().
int* ConnectivityTable::dofManagersConnectivity [private] |
array of connectivities for dofmanagers.
Definition at line 76 of file conTable.h.
Referenced by ConnectivityTable(), and reset().
AList< IntArray > ConnectivityTable::nodalConnectivity [private] |
Nodal connectivity table for domain.
Definition at line 79 of file conTable.h.
Referenced by giveDofManConnectivityArray(), giveElementNeighbourList(), giveNodeNeighbourList(), and instanciateConnectivityTable().
int ConnectivityTable::nodalConnectivityFlag [private] |
Flag indicating assembled connectivity table for domain.
Definition at line 81 of file conTable.h.
Referenced by ConnectivityTable(), giveDofManConnectivityArray(), giveElementNeighbourList(), giveNodeNeighbourList(), instanciateConnectivityTable(), and reset().
1.5.5 written by Dimitri van Heesch,
© 1997-2001