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

Optimized version for 2-D structured meshes. More...

#include <Element_accessors.h>

Inheritance diagram for Element_node_enumerator_str_2:
Collaboration diagram for Element_node_enumerator_str_2:

Public Member Functions

 Element_node_enumerator_str_2 ()
 
 Element_node_enumerator_str_2 (const Pane *pane, int i)
 
 Element_node_enumerator_str_2 (const Pane *pane, const std::pair< int, int > &id)
 
void next ()
 
int operator[] (int i) 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 2-D structured meshes.

Definition at line 148 of file Element_accessors.h.

Constructor & Destructor Documentation

Definition at line 150 of file Element_accessors.h.

150 {}
Element_node_enumerator_str_2 ( const Pane pane,
int  i 
)
inline

Definition at line 151 of file Element_accessors.h.

152  : Element_node_enumerator( pane, i) {}
blockLoc i
Definition: read.cpp:79
Element_node_enumerator_str_2 ( const Pane pane,
const std::pair< int, int > &  id 
)
inline

Definition at line 154 of file Element_accessors.h.

156  : Element_node_enumerator( pane, id) {}

Member Function Documentation

void next ( )
inline

Definition at line 158 of file Element_accessors.h.

References Element_node_enumerator::_base, Element_node_enumerator::_pane, Element_node_enumerator::_res, and Pane::size_i().

Referenced by Pane_dual_connectivity::construct_connectivity_str_2().

159  { ++_base; if ( ++_res == int(_pane->size_i()-1)) { ++_base; _res=0; } }
Size size_i() const
Get the number of nodes in i-dimension if the mesh is structured.
Definition: Pane.h:216

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 161 of file Element_accessors.h.

References Element_node_enumerator::_base, Element_node_enumerator::_pane, and Pane::size_i().

161  {
162  int t=_base;
163  if ( i>1) t+=_pane->size_i();
164  return ( i==1 || i==2)? t+1 : t;
165  }
blockLoc i
Definition: read.cpp:79
Size size_i() const
Get the number of nodes in i-dimension if the mesh is structured.
Definition: Pane.h:216

Here is the call graph for this function:


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