Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Element_node_enumerator_uns Class Reference

Optimized version for unstructured meshes. More...

#include <Element_accessors.h>

Inheritance diagram for Element_node_enumerator_uns:
Collaboration diagram for Element_node_enumerator_uns:

Public Member Functions

 Element_node_enumerator_uns ()
 
 Element_node_enumerator_uns (const Pane *pane, int i, const Connectivity *conn=NULL)
 
void next ()
 
int operator[] (int i) const
 
int size_of_nodes () const
 
- Public Member Functions inherited from Element_node_enumerator
 Element_node_enumerator ()
 
 Element_node_enumerator (const Pane *pane, int i, const Connectivity *conn=NULL)
 Constructor for an element in a structured or an unstructured mesh. More...
 
 Element_node_enumerator (const Pane *pane, const std::pair< int, int > &id)
 A constructor for an element in a structured mesh. More...
 
void next ()
 Go to the next element within the connectivity tables of a pane. More...
 
int type () const
 Obtain the type of the element. More...
 
int is_quadratic () const
 Check whether the element is quadratic. More...
 
int size_of_nodes () const
 Number of nodes per element. More...
 
int size_of_corners () const
 Number of corners per element. More...
 
void get_nodes (std::vector< int > &nodes)
 Get a vector of all of the nodes in the element. More...
 
int size_of_edges () const
 Number of edges per element. More...
 
int size_of_faces () const
 Number of faces per element. More...
 
int dimension () const
 Get the dimension of the base pane. More...
 
int id () const
 Get the local id of the element within the pane. More...
 
int vertex (int lvid, bool level=false) const
 Get the vertex index of an vertex within the element. More...
 
int operator[] (int i) const
 Obtain the pane-scope node ID from its element-scope index. More...
 
const Panepane () const
 

Additional Inherited Members

- Protected Attributes inherited from Element_node_enumerator
const Pane_pane
 
const Connectivity_conn
 
union {
   const int *   _start
 
   int   _base
 
}; 
 
int _res
 

Detailed Description

Optimized version for unstructured meshes.

Definition at line 169 of file Element_accessors.h.

Constructor & Destructor Documentation

Definition at line 171 of file Element_accessors.h.

171 {}
Element_node_enumerator_uns ( const Pane pane,
int  i,
const Connectivity conn = NULL 
)
inline

Definition at line 172 of file Element_accessors.h.

174  : Element_node_enumerator( pane, i, conn) {}
blockLoc i
Definition: read.cpp:79

Member Function Documentation

void next ( )
inline

Definition at line 176 of file Element_accessors.h.

References Element_node_enumerator::_conn, Element_node_enumerator::_pane, Element_node_enumerator::_res, Element_node_enumerator::_start, Pane::connectivity(), Connectivity::index_offset(), Connectivity::pointer(), Connectivity::size_of_elements(), and Connectivity::size_of_nodes_pe().

Referenced by Pane_dual_connectivity::construct_connectivity_unstr(), and Pane_boundary::determine_isolated_nodes().

176  {
177  if ( --_res==0) {
180  if ( _conn) {
181  _start = _conn->pointer();
183  }
184  else {
185  _start = NULL;
186  _res = -1;
187  }
188  }
189  else
191  }
const int * pointer() const
Get a constant pointer to the connectivity array.
Definition: Connectivity.h:206
const Connectivity * _conn
Size index_offset() const
Get the index of the first element.
Definition: Connectivity.h:189
Size size_of_nodes_pe() const
Get the number of nodes per element of the current connectivity table.
Definition: Connectivity.h:147
Connectivity * connectivity(Size i)
Obtain the connectivity table containing the element with the given ID.
Definition: Pane.C:99
Size size_of_elements() const
Get the total number of elements (including ghost elements) in the table.
Definition: Connectivity.C:96

Here is the call graph for this function:

Here is the caller graph for this function:

int operator[] ( int  i) const
inline

Definition at line 193 of file Element_accessors.h.

References Element_node_enumerator::_start, and i.

193 { return _start[i]; }
blockLoc i
Definition: read.cpp:79
int size_of_nodes ( ) const
inline

Definition at line 194 of file Element_accessors.h.

References Element_node_enumerator::_conn, and Connectivity::size_of_nodes_pe().

Referenced by Pane_dual_connectivity::construct_connectivity_unstr(), and Pane_boundary::determine_isolated_nodes().

194 { return _conn->size_of_nodes_pe(); }
const Connectivity * _conn
Size size_of_nodes_pe() const
Get the number of nodes per element of the current connectivity table.
Definition: Connectivity.h:147

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: