To describe an edge. More...
Public Member Functions | |
Edge () | |
Default Constructor. More... | |
Edge (size_t label) | |
Constructor with label. More... | |
Edge (const Edge &ed) | |
Copy constructor. | |
~Edge () | |
Destructor. | |
void | Add (Node *node) |
Insert a node at end of list of nodes of edge. | |
void | setLabel (size_t i) |
Assign label of edge. | |
void | setFirstDOF (size_t n) |
Define First DOF. | |
void | setNbDOF (size_t nb_dof) |
Define number of DOF of edge. | |
void | DOF (size_t i, size_t dof) |
Define label of DOF. More... | |
void | setDOF (size_t &first_dof, size_t nb_dof) |
Define number of DOF. More... | |
void | setCode (size_t dof, int code) |
Assign code code to DOF number dof . More... | |
void | AddNeighbor (Side *sd) |
Add side pointed by sd to list of edge sides. | |
size_t | getLabel () const |
Return label of edge. | |
size_t | n () const |
Return label of edge. | |
size_t | getNbEq () const |
Return number of edge equations. | |
size_t | getNbDOF () const |
Return number of DOF. | |
int | getCode (size_t dof=1) const |
Return code for a given DOF of node. More... | |
size_t | getDOF (size_t i) const |
Return label of i -th DOF. | |
size_t | getFirstDOF () const |
Return number of first dof of node. | |
Node * | getPtrNode (size_t i) const |
List of element nodes. | |
Node * | operator() (size_t i) const |
Operator (). More... | |
size_t | getNodeLabel (size_t i) const |
Return node label. More... | |
Side * | getNeighborSide (size_t i) const |
Return pointer to neighbor i-th side. | |
int | isOnBoundary () const |
Say if current edge is a boundary edge or not. More... | |
void | setOnBoundary () |
Say that the edge is on the boundary. | |
Node * | operator() (size_t i) |
Operator (). More... | |
To describe an edge.
Defines an edge of a 3-D finite element mesh. The edges are given in particular by a list of nodes. Each node can be accessed by the member function getPtrNode.
Edge | ( | ) |
Default Constructor.
Initializes data to zero
Edge | ( | size_t | label | ) |
Constructor with label.
Define an edge by giving its label
void DOF | ( | size_t | i, |
size_t | dof | ||
) |
Define label of DOF.
[in] | i | DOF index |
[in] | dof | Its label |
int getCode | ( | size_t | dof = 1 | ) | const |
Return code for a given DOF of node.
Default value is 1
size_t getNodeLabel | ( | size_t | i | ) | const |
Return node label.
[in] | i | Local label of node for which global label is returned |
int isOnBoundary | ( | ) | const |
Say if current edge is a boundary edge or not.
Note this information is available only if boundary edges were determined. See class Mesh
Node* operator() | ( | size_t | i | ) | const |
Operator ().
Return pointer to node of local label i
.
Node* operator() | ( | size_t | i | ) |
Operator ().
Returns pointer to node of local label i
void setCode | ( | size_t | dof, |
int | code | ||
) |
Assign code code
to DOF number dof
.
[in] | dof | index of dof for assignment. |
[in] | code | Value of code to assign. |
void setDOF | ( | size_t & | first_dof, |
size_t | nb_dof | ||
) |
Define number of DOF.
[in,out] | first_dof | Label of the first DOF in input that is actualized |
[in] | nb_dof | Number of DOF |