OOFEM 3.0
Loading...
Searching...
No Matches
oofem::ConnectivityTable Class Reference

#include <connectivitytable.h>

Collaboration diagram for oofem::ConnectivityTable:

Public Member Functions

 ConnectivityTable (Domain *d)
 ~ConnectivityTable ()
 Destructor.
void reset ()
 reset receiver to an initial state (will force table update, when needed next time)
void setDomain (Domain *ipDomain)
void instanciateConnectivityTable ()
const IntArraygiveDofManConnectivityArray (int dofman)
void giveElementNeighbourList (IntArray &answer, const IntArray &elemList)
void giveNodeNeighbourList (IntArray &answer, IntArray &nodeList)
void giveElementsWithNodes (IntArray &answer, const IntArray &nodes)
void buildElementColoring ()
int getElementColor (int e)
void buildSharedBoundaryEntities (Domain *d)
SharedBoundaryEntitygiveBoundaryEntity (int id)

Private Attributes

Domaindomain
 Pointer to domain to which receiver belongs to.
std::vector< IntArraynodalConnectivity
 Nodal connectivity table for domain.
int nodalConnectivityFlag
 Flag indicating assembled connectivity table for domain.
IntArray elementColoring
 Element colors.
bool elementColoringFlag
 flag indicating assembled element coloring
std::vector< std::unique_ptr< SharedBoundaryEntity > > sharedBoundaryEntities

Detailed Description

Class representing connectivity table. Usually attribute of domain. Provides selected connectivity information services for domain.

Its tasks are

  • Creating connectivity table - method InstanciateYourself.
  • Returning number of Elements belonging to node.
  • Returning j-th element belonging to node i.

Definition at line 92 of file connectivitytable.h.

Constructor & Destructor Documentation

◆ ConnectivityTable()

oofem::ConnectivityTable::ConnectivityTable ( Domain * d)

Constructor. Creates new Connectivity table belonging to given domain.

Definition at line 46 of file connectivitytable.C.

References domain, elementColoring, elementColoringFlag, nodalConnectivity, and nodalConnectivityFlag.

◆ ~ConnectivityTable()

oofem::ConnectivityTable::~ConnectivityTable ( )
inline

Destructor.

Definition at line 126 of file connectivitytable.h.

Member Function Documentation

◆ buildElementColoring()

void oofem::ConnectivityTable::buildElementColoring ( )

Builds element coloring, assigning to element color, such that no neighboring elements have the same color

Definition at line 190 of file connectivitytable.C.

References domain, elementColoring, elementColoringFlag, and giveElementNeighbourList().

Referenced by getElementColor().

◆ buildSharedBoundaryEntities()

void oofem::ConnectivityTable::buildSharedBoundaryEntities ( Domain * d)

◆ getElementColor()

int oofem::ConnectivityTable::getElementColor ( int e)

Returns element color as determined by coloring algorithm

Definition at line 219 of file connectivitytable.C.

References buildElementColoring(), elementColoring, and elementColoringFlag.

◆ giveBoundaryEntity()

SharedBoundaryEntity * oofem::ConnectivityTable::giveBoundaryEntity ( int id)

Access SharedBoundaryEntities

Definition at line 329 of file connectivitytable.C.

References sharedBoundaryEntities.

Referenced by oofem::QuadraticInterpolation::initializeCell().

◆ giveDofManConnectivityArray()

◆ giveElementNeighbourList()

void oofem::ConnectivityTable::giveElementNeighbourList ( IntArray & answer,
const IntArray & elemList )

◆ giveElementsWithNodes()

void oofem::ConnectivityTable::giveElementsWithNodes ( IntArray & answer,
const IntArray & nodes )

Return list of elements sharing all given nodes

Parameters
answerList of elements that have all given nodes
nodeListList of nodes

Definition at line 168 of file connectivitytable.C.

References oofem::IntArray::at(), oofem::IntArray::contains(), oofem::IntArray::erase(), giveDofManConnectivityArray(), oofem::IntArray::giveSize(), and oofem::IntArray::resize().

Referenced by buildSharedBoundaryEntities(), and oofem::DGProblem::constructBoundaryEntities().

◆ giveNodeNeighbourList()

◆ instanciateConnectivityTable()

void oofem::ConnectivityTable::instanciateConnectivityTable ( )

◆ reset()

void oofem::ConnectivityTable::reset ( )

reset receiver to an initial state (will force table update, when needed next time)

Definition at line 54 of file connectivitytable.C.

References elementColoringFlag, and nodalConnectivityFlag.

Referenced by oofem::AdditiveManufacturingProblem::solveYourself().

◆ setDomain()

void oofem::ConnectivityTable::setDomain ( Domain * ipDomain)
inline

Definition at line 130 of file connectivitytable.h.

References domain.

Member Data Documentation

◆ domain

Domain* oofem::ConnectivityTable::domain
private

Pointer to domain to which receiver belongs to.

Definition at line 96 of file connectivitytable.h.

Referenced by buildElementColoring(), buildSharedBoundaryEntities(), ConnectivityTable(), giveElementNeighbourList(), instanciateConnectivityTable(), and setDomain().

◆ elementColoring

IntArray oofem::ConnectivityTable::elementColoring
private

Element colors.

Definition at line 104 of file connectivitytable.h.

Referenced by buildElementColoring(), ConnectivityTable(), and getElementColor().

◆ elementColoringFlag

bool oofem::ConnectivityTable::elementColoringFlag
private

flag indicating assembled element coloring

Definition at line 106 of file connectivitytable.h.

Referenced by buildElementColoring(), ConnectivityTable(), getElementColor(), and reset().

◆ nodalConnectivity

std::vector< IntArray > oofem::ConnectivityTable::nodalConnectivity
private

◆ nodalConnectivityFlag

int oofem::ConnectivityTable::nodalConnectivityFlag
private

Flag indicating assembled connectivity table for domain.

Definition at line 101 of file connectivitytable.h.

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

◆ sharedBoundaryEntities

std::vector<std::unique_ptr<SharedBoundaryEntity> > oofem::ConnectivityTable::sharedBoundaryEntities
private

Definition at line 109 of file connectivitytable.h.

Referenced by buildSharedBoundaryEntities(), and giveBoundaryEntity().


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011