ConnectivityTable Class Reference

Class representing connectivity table. More...

#include <conTable.h>

Collaboration diagram for ConnectivityTable:

Collaboration graph
[legend]

List of all members.

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 IntArraygiveDofManConnectivityArray (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

Domaindomain
 Pointer to domain to which receiver belongs to.
int * dofManagersConnectivity
 array of connectivities for dofmanagers.
AList< IntArraynodalConnectivity
 Nodal connectivity table for domain.
int nodalConnectivityFlag
 Flag indicating assembled connectivity table for domain.


Detailed Description

Class representing connectivity table.

Usually attribute of domain. Provides selected connectivity information services for domain.

Definition at line 53 of file conTable.h.


Constructor & Destructor Documentation

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 (  ) 

Destructor.

Definition at line 51 of file conTable.C.

References reset().


Member Function Documentation

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 (  ) 

const IntArray * ConnectivityTable::giveDofManConnectivityArray ( int  dofman  ) 

void ConnectivityTable::giveElementNeighbourList ( IntArray answer,
IntArray elemList 
)

Returns list of neighboring elements to given elements (they are included too).

Neighbour is defined as element sharing the given element node.

Parameters:
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().

void ConnectivityTable::giveNodeNeighbourList ( IntArray answer,
IntArray nodeList 
)

Returns list of elements sharing given nodes.

Parameters:
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 (  ) 

Prints receiver contens on output.

Definition at line 435 of file conTable.C.


Member Data Documentation

Pointer to domain to which receiver belongs to.

Definition at line 73 of file conTable.h.

Referenced by ConnectivityTable(), giveElementNeighbourList(), and instanciateConnectivityTable().

array of connectivities for dofmanagers.

Definition at line 76 of file conTable.h.

Referenced by ConnectivityTable(), and reset().

Nodal connectivity table for domain.

Definition at line 79 of file conTable.h.

Referenced by giveDofManConnectivityArray(), giveElementNeighbourList(), giveNodeNeighbourList(), and instanciateConnectivityTable().

Flag indicating assembled connectivity table for domain.

Definition at line 81 of file conTable.h.

Referenced by ConnectivityTable(), giveDofManConnectivityArray(), giveElementNeighbourList(), giveNodeNeighbourList(), instanciateConnectivityTable(), and reset().


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

This page is part of the OOFEM documentation. Copyright (c) 2003 Borek Patzak
Project e-mail: info@oofem.org
Generated at Mon Aug 24 11:52:10 2009 for OOFEM by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2001