Class to construct a list of nodes having some common properties. More...
#include <MeshExtract.h>
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. | |
| void | unselectCode (int code, int dof=1) |
| Unselect nodes having a given code for a given degree of freedom. | |
| void | selectCoordinate (real_t x, real_t y=ANY, real_t z=ANY) |
| Select nodes having given coordinates. | |
| 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) | |
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.
| void selectCode | ( | int | code, |
| int | dof = 1 ) |
Select nodes having a given code for a given degree of freedom.
| [in] | code | Code that nodes share |
| [in] | dof | Degree of Freedom label [Default: 1] |
| void selectCoordinate | ( | real_t | x, |
| real_t | y = ANY, | ||
| real_t | z = ANY ) |
Select nodes having given coordinates.
| [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);
| void unselectCode | ( | int | code, |
| int | dof = 1 ) |
Unselect nodes having a given code for a given degree of freedom.
| [in] | code | Code of nodes to exclude |
| [in] | dof | Degree of Freedom label [Default: 1] |