Portage::Part< Mesh, State > Class Template Reference
  #include <parts.h>
Public Member Functions | |
| Part ()=default | |
| Default constructor.  More... | |
| Part (Mesh const &mesh, State &state, std::vector< int > const &cells) | |
| Construct a mesh part object.  More... | |
| ~Part ()=default | |
| const Mesh & | mesh () const | 
| Get a constant reference to the underlying mesh.  More... | |
| const State & | state () const | 
| Get a constant reference to the underlying state.  More... | |
| State & | state () | 
| Get a normal reference to the underlying state.  More... | |
| std::vector< int > const & | cells () const | 
| Get a reference to the cell list.  More... | |
| bool | contains (int id) const | 
| Check if a given entity is in the part.  More... | |
| const int & | index (int id) const | 
| Retrieve relative index of given entity.  More... | |
| const int & | size () const | 
| Get part size.  More... | |
| const double & | volume (int id) const | 
| Get the volume of the given entity.  More... | |
| template<Entity_type type = Entity_type::ALL> | |
| std::vector< int > | get_neighbors (int entity) const | 
| Retrieve the neighbors of the given entity on mesh part.  More... | |
| double | total_volume () const | 
| Compute the total volume of the part.  More... | |
| double | compute_entity_volumes (const int *masks=nullptr) | 
| Compute and store volumes of each cell of the part.  More... | |
Constructor & Destructor Documentation
◆ Part() [1/2]
template<class Mesh, class State> 
      
  | 
  default | 
Default constructor.
◆ Part() [2/2]
template<class Mesh, class State> 
      
  | 
  inline | 
Construct a mesh part object.
- Parameters
 - 
  
mesh the mesh wrapper to use state the state wrapper to use entities the list of entities to remap  
◆ ~Part()
template<class Mesh, class State> 
      
  | 
  default | 
Member Function Documentation
◆ cells()
template<class Mesh, class State> 
      
  | 
  inline | 
Get a reference to the cell list.
- Returns
 - a reference to cell list.
 
◆ compute_entity_volumes()
template<class Mesh, class State> 
      
  | 
  inline | 
Compute and store volumes of each cell of the part.
- Parameters
 - 
  
masks entity mask to disable some of them.  
- Returns
 - the total volume of the part.
 
◆ contains()
template<class Mesh, class State> 
      
  | 
  inline | 
Check if a given entity is in the part.
- Parameters
 - 
  
id entity ID  
- Returns
 - true if so, false otherwise.
 
◆ get_neighbors()
template<class Mesh, class State> 
template<Entity_type type = Entity_type::ALL> 
      
  | 
  inline | 
Retrieve the neighbors of the given entity on mesh part.
- Template Parameters
 - 
  
type the entity type [ALL|PARALLEL_OWNED]  
- Parameters
 - 
  
entity the given entity  
- Returns
 - filtered the filtered neighboring entities list.
 
◆ index()
template<class Mesh, class State> 
      
  | 
  inline | 
Retrieve relative index of given entity.
- Parameters
 - 
  
id entity absolute index in mesh.  
- Returns
 - entity relative index in part.
 
◆ mesh()
template<class Mesh, class State> 
      
  | 
  inline | 
Get a constant reference to the underlying mesh.
- Returns
 - a constant reference to the underlying mesh.
 
◆ size()
template<class Mesh, class State> 
      
  | 
  inline | 
Get part size.
- Returns
 - entities list size
 
◆ state() [1/2]
template<class Mesh, class State> 
      
  | 
  inline | 
Get a constant reference to the underlying state.
- Returns
 - a constant reference to the underlying state.
 
◆ state() [2/2]
template<class Mesh, class State> 
      
  | 
  inline | 
Get a normal reference to the underlying state.
- Returns
 - a reference to the underlying state.
 
◆ total_volume()
template<class Mesh, class State> 
      
  | 
  inline | 
Compute the total volume of the part.
- Returns
 - the total volume of the part.
 
◆ volume()
template<class Mesh, class State> 
      
  | 
  inline | 
Get the volume of the given entity.
- Parameters
 - 
  
id the relative index of the entity.  
- Returns
 - its volume.
 
The documentation for this class was generated from the following file:
- /home/portage/portage/portage/driver/parts.h