OFELI's Logo

An Object Oriented Finite Element Library

Class to construct a list of elements having some common properties. More...

#include <MeshExtract.h>

Public Member Functions

 ElementList (Mesh &ms)
 Constructor using a Mesh instance.
 
 ~ElementList ()
 Destructor.
 
void selectCode (int code)
 Select elements having a given code.
 
void unselectCode (int code)
 Unselect elements having a given code. More...
 
void selectLevel (int level)
 Select elements having a given level. More...
 
size_t getNbElements () const
 Return number of selected elements.
 
void top ()
 Reset list of elements at its top position (Non constant version)
 
void top () const
 Reset list of elements at its top position (Constant version)
 
Elementget ()
 Return pointer to current element and move to next one (Non constant version)
 
Elementget () const
 Return pointer to current element and move to next one (Constant version)
 

Detailed Description

Class to construct a list of elements having some common properties.

This class enables choosing multiple selection criteria by using function select... However, the intersection of these properties must be empty.

Author
Rachid Touzani

Member Function Documentation

◆ selectLevel()

void selectLevel ( int  level)

Select elements having a given level.

Parameters
[in]levelLevel of elements to select

Elements having a given level (for mesh adaption) are selected in a list

◆ unselectCode()

void unselectCode ( int  code)

Unselect elements having a given code.

Parameters
[in]codeCode of elements to exclude





Copyright © 1998-2022 Rachid Touzani