|
| Element () |
| Default constructor.
|
|
| Element (size_t label, const string &shape) |
| Constructor initializing label, shape of element. More...
|
|
| Element (size_t label, int shape) |
| Constructor initializing label, shape of element. More...
|
|
| Element (size_t label, const string &shape, int c) |
| Constructor initializing label, shape and code of element. More...
|
|
| Element (size_t label, int shape, int c) |
| Constructor initializing label, shape and code of element. More...
|
|
| Element (const Element &el) |
| Copy constructor.
|
|
| ~Element () |
| Destructor.
|
|
void | setLabel (size_t i) |
| Define label of element. More...
|
|
void | setCode (int c) |
| Define code of element. More...
|
|
void | Add (Node *node) |
| Insert a node at end of list of nodes of element. More...
|
|
void | Replace (size_t label, Node *node) |
| Replace a node at a given local label. More...
|
|
void | Replace (size_t label, Side *side) |
| Replace a side at a given local label. More...
|
|
void | Add (Side *sd) |
| Assign Side to Element. More...
|
|
void | Add (Element *el) |
| Add a neighbor element. More...
|
|
void | set (Element *el, int n) |
| Add a neighbor element and set its label. More...
|
|
void | setDOF (size_t i, size_t dof) |
| Define label of DOF. More...
|
|
void | setCode (size_t dof, int code) |
| Assign code to a DOF. More...
|
|
void | setNode (size_t i, Node *node) |
| Assign a node given by its pointer as the i-th node of element.
|
|
void | setNbDOF (size_t i) |
| Set number of degrees of freedom of element.
|
|
void | setFirstDOF (size_t i) |
| Set label of first DOF in element.
|
|
int | getShape () const |
| Return element shape.
|
|
size_t | getLabel () const |
| Return label of element.
|
|
size_t | n () const |
| Return label of element.
|
|
int | getCode () const |
| Return code of element.
|
|
size_t | getNbNodes () const |
| Return number of element nodes.
|
|
size_t | getNbVertices () const |
| Return number of element vertices.
|
|
size_t | getNbSides () const |
| Return number of element sides (Constant version)
|
|
size_t | getNbEq () const |
| Return number of element equations.
|
|
size_t | getNbDOF () const |
| return element nb of DOF
|
|
size_t | getDOF (size_t i=1) const |
| Return element DOF label.
|
|
size_t | getFirstDOF () const |
| Return element first DOF label.
|
|
size_t | getNodeLabel (size_t n) const |
| Return global label of node of local label i .
|
|
size_t | getSideLabel (size_t n) const |
| Return global label of side of local label i .
|
|
Node * | getPtrNode (size_t i) const |
| Return pointer to node of label i (Local labelling).
|
|
Node * | operator() (size_t i) const |
| Operator (). More...
|
|
Side * | getPtrSide (size_t i) const |
| Return pointer to side of label i (Local labelling).
|
|
int | Contains (const Node *nd) const |
| Say if element contains given node. More...
|
|
int | Contains (const Node &nd) const |
| Say if element contains given node. More...
|
|
int | Contains (const Side *sd) const |
| Say if element contains given side. More...
|
|
int | Contains (const Side &sd) const |
| Say if element contains given side. More...
|
|
Element * | getNeighborElement (size_t i) const |
| Return pointer to element Neighboring element. More...
|
|
size_t | getNbNeigElements () const |
| Return number of neigboring elements. More...
|
|
real_t | getMeasure () const |
| Return measure of element. More...
|
|
Point< real_t > | getCenter () const |
| Return coordinates of center of element.
|
|
Point< real_t > | getUnitNormal (size_t i) const |
| Return outward unit normal to i-th side of element. More...
|
|
bool | isOnBoundary () const |
| Say if current element is a boundary element or not. More...
|
|
Node * | operator() (size_t i) |
| Operator (). More...
|
|
int | setSide (size_t n, size_t *nd) |
| Initialize information on element sides. More...
|
|
bool | isActive () const |
| Return true or false whether element is active or not.
|
|
int | getLevel () const |
| Return element level Element level decreases when element is refined (starting from 0). If the level is 0, then the element has no father.
|
|
void | setChild (Element *el) |
| Assign element as child of current one and assign current element as father This function is principally used when refining is invoked (e.g. for mesh adaption) More...
|
|
Element * | getChild (size_t i) const |
| Return pointer to i-th child element Return null pointer is no childs.
|
|
size_t | getNbChilds () const |
| Return number of children of element.
|
|
Element * | getParent () const |
| Return pointer to parent element Return null if no parent.
|
|
size_t | IsIn (const Node *nd) |
| Check if a given node belongs to current element. More...
|
|
To store and treat finite element geometric information.
Class Element enables defining an element of a finite element mesh. The element is given in particular by its shape and a list of nodes. Each node can be accessed by the member function getPtrNode. Moreover, class Mesh can generate for each element its list of sides. The string that defines the element shape must be chosen according to the following list:
Shape Shape name Dimension Min. number of nodes Line line 2 2 Triangle tria 2 3 Quadrilateral quad 2 4 Tetrahedron tetra 3 4 Pentahedron penta 3 6 Hexahedron hexa 3 8
- Author
- Rachid Touzani
- Copyright
- GNU Lesser Public License