Node Class Reference
[Finite Element Mesh]
#include <Node.h>
Detailed Description
To describe a node.A node is characterized by its label, its coordinates, its number of degrees of freedom (DOF) and ``codes" that are associated to each DOF.
Public Member Functions | |
| void | Add (Element *el) |
Add element pointed by el as neighbor element to node. | |
| void | DOF (size_t i, size_t dof) |
| Define label of DOF. | |
| int | getCode (size_t dof) const |
| Return code for a given DOF of node. | |
| Point< double > | getCoord () const |
| Return coordinates of node. | |
| double | getCoord (size_t i) const |
| Return i-th coordinate of node. | |
| size_t | getDOF (size_t i) const |
| Return label of i-th dof. | |
| size_t | getFirstDOF () const |
| Return label of first DOF of node. | |
| size_t | getLabel () const |
| Return label of node. | |
| size_t | getNbDOF () const |
| Return nb of degrees of freedom (DOF). | |
| size_t | getNbNeigEl () const |
| Return number of neighbor elements. | |
| Element * | getNeigEl (size_t i) const |
| Return i-th neighbor element, Note that the returned information is valid only if the Mesh member function getNodeNeighborElements() has been invoked before. | |
| bool | getOnBoundary () const |
| Say if node is a boundary node. | |
| Node (const Node &node) | |
| Copy Constructor. | |
| Node (size_t label, const Point< double > &x) | |
| Constructor with label and coordinates. | |
| Node () | |
| Default constructor. | |
| void | setCode (int *code) |
| Define codes for all node DOFs. | |
| void | setCode (size_t dof, int code) |
| Define code for a given DOF of node. | |
| void | setCoord (size_t i, double x) |
| Set i-th coordinate. | |
| void | setDOF (size_t &first_dof, size_t nb_dof) |
| Define number of DOF. | |
| void | setFirstDOF (size_t n) |
| Define First DOF. | |
| void | setLabel (size_t label) |
| Define label of node. | |
| void | setNbDOF (size_t n) |
| Define number of DOF. | |
| void | setOnBoundary () |
| Set node as boundary node. | |
| ~Node () | |
| Destructor. | |
Constructor & Destructor Documentation
| Node | ( | ) |
Default constructor.
Initialize data to zero
Constructor with label and coordinates.
Define a node by giving its label and its coordinates x
Member Function Documentation
| void DOF | ( | size_t | i, | |
| size_t | dof | |||
| ) |
Define label of DOF.
- Parameters:
-
[in] i DOF index [in] dof Its label
| Point<double> getCoord | ( | ) | const |
Return coordinates of node.
Return value is an instance of class Point
| double getCoord | ( | size_t | i | ) | const |
Return i-th coordinate of node.
i = 1..3
Referenced by NodeVect::set(), UserData::setBodyForce(), UserData::setDBC(), UserData::setInitialData(), and UserData::setSurfaceForce().
| size_t getNbNeigEl | ( | ) | const |
Return number of neighbor elements.
Neighbor elements are those that share node. Note that the returned information is valid only if the Mesh member function getNodeNeighborElements() has been invoked before
| bool getOnBoundary | ( | ) | const |
Say if node is a boundary node.
Note this information is available only if boundary sides (and nodes) were determined (See class Mesh).
| void setCode | ( | int * | code | ) |
Define codes for all node DOFs.
- Parameters:
-
[in] code C-array that contains code for each DOF of current node
| void setCode | ( | size_t | dof, | |
| int | code | |||
| ) |
Define code for a given DOF of node.
- Parameters:
-
[in] dof DOF index [in] code Code to assign to DOF
| void setCoord | ( | size_t | i, | |
| double | x | |||
| ) |
Set i-th coordinate.
- Parameters:
-
[in] i Coordinate index (1..3) [in] x Coordinate value
| void setDOF | ( | size_t & | first_dof, | |
| size_t | nb_dof | |||
| ) |
Define number of DOF.
- Parameters:
-
[in,out] first_dof Label of the first DOF in input that is actualized [in] nb_dof Number of DOF
| void setOnBoundary | ( | ) |
Set node as boundary node.
This function is mostly internally used (Especially in class Mesh)