NodeList Class Reference
Class to construct a list of nodes having some common properties. More...
Public Member Functions | |
NodeList (Mesh &ms) | |
Constructor using a Mesh instance. | |
~NodeList () | |
Destructor. | |
void | selectCode (int code, int dof=1) |
Select nodes having a given code for a given degree of freedom. More... | |
void | unselectCode (int code, int dof=1) |
Unselect nodes having a given code for a given degree of freedom. More... | |
void | selectCoordinate (real_t x, real_t y=ANY, real_t z=ANY) |
Select nodes having given coordinates. More... | |
size_t | getNbNodes () const |
Return number of selected nodes. | |
void | top () |
Reset list of nodes at its top position (Non constant version) | |
void | top () const |
Reset list of nodes at its top position (Constant version) | |
Node * | get () |
Return pointer to current node and move to next one (Non constant version) | |
Node * | get () const |
Return pointer to current node and move to next one (Constant version) | |
Detailed Description
Class to construct a list of nodes having some common properties.
This class enables choosing multiple selection criteria by using function select...
However, the intersection of these properties must be empty.
Member Function Documentation
void selectCode | ( | int | code, |
int | dof = 1 |
||
) |
Select nodes having a given code for a given degree of freedom.
- Parameters
-
[in] code Code that nodes share [in] dof Degree of Freedom label [Default: 1
]
void unselectCode | ( | int | code, |
int | dof = 1 |
||
) |
Unselect nodes having a given code for a given degree of freedom.
- Parameters
-
[in] code Code of nodes to exclude [in] dof Degree of Freedom label [Default: 1
]
Select nodes having given coordinates.
- Parameters
-
[in] x x
-coordinate that share the selected nodes[in] y y
-coordinate that share the selected nodes [Default:ANY
][in] z z
-coordinate that share the selected nodes [Default:ANY
]
Coordinates can be assigned the value ANY
. This means that any coordinate value is accepted. For instance, to select all nodes with x=0
, use selectCoordinate(0.,ANY,ANY);