Flow123d  JS_before_hm-883-gc471082
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
Element Class Reference

#include <elements.h>

Collaboration diagram for Element:
Collaboration graph
[legend]

Public Member Functions

 Element ()
 
 Element (unsigned int dim, RegionIdx reg)
 
void init (unsigned int dim, RegionIdx reg)
 
 ~Element ()
 
unsigned int dim () const
 
unsigned int n_sides () const
 
unsigned int n_nodes () const
 
RegionIdx region_idx () const
 
unsigned int edge_idx (unsigned int edg_idx) const
 Return edge_idx of given index. More...
 
unsigned int permutation_idx (unsigned int prm_idx) const
 Return permutation_idx of given index. More...
 
int pid () const
 Return Id of mesh partition. More...
 
unsigned int n_neighs_vb () const
 Return number of neighbours. More...
 
unsigned int node_idx (unsigned int ni) const
 Return index (in Mesh::node_vec) of ni-th node. More...
 

Public Attributes

unsigned int * boundary_idx_
 
Neighbour ** neigh_vb
 

Protected Attributes

int pid_
 Id # of mesh partition. More...
 
std::vector< unsigned int > edge_idx_
 Edges on sides. More...
 
unsigned int n_neighs_vb_
 

of neighbours, V-B type (comp.)

More...
 
std::vector< unsigned int > permutation_idx_
 
RegionIdx region_idx_
 
unsigned int dim_
 
std::array< unsigned int, 4 > nodes_
 indices to element's nodes More...
 

Friends

class Mesh
 
template<int spacedim, class Value >
class Field
 

Detailed Description

Definition at line 39 of file elements.h.

Constructor & Destructor Documentation

Element::Element ( )

Definition at line 35 of file elements.cc.

Element::Element ( unsigned int  dim,
RegionIdx  reg 
)

Definition at line 45 of file elements.cc.

Element::~Element ( )

Definition at line 70 of file elements.cc.

Member Function Documentation

unsigned int Element::dim ( ) const
inline

Definition at line 121 of file elements.h.

unsigned int Element::edge_idx ( unsigned int  edg_idx) const
inline

Return edge_idx of given index.

Definition at line 136 of file elements.h.

Here is the caller graph for this function:

void Element::init ( unsigned int  dim,
RegionIdx  reg 
)

Definition at line 52 of file elements.cc.

Here is the caller graph for this function:

unsigned int Element::n_neighs_vb ( ) const
inline

Return number of neighbours.

Definition at line 67 of file elements.h.

Here is the caller graph for this function:

unsigned int Element::n_nodes ( ) const
inline

Definition at line 126 of file elements.h.

Here is the caller graph for this function:

unsigned int Element::n_sides ( ) const
inline

Definition at line 132 of file elements.h.

unsigned int Element::node_idx ( unsigned int  ni) const
inline

Return index (in Mesh::node_vec) of ni-th node.

Definition at line 72 of file elements.h.

Here is the caller graph for this function:

unsigned int Element::permutation_idx ( unsigned int  prm_idx) const
inline

Return permutation_idx of given index.

Definition at line 141 of file elements.h.

Here is the caller graph for this function:

int Element::pid ( ) const
inline

Return Id of mesh partition.

Definition at line 62 of file elements.h.

RegionIdx Element::region_idx ( ) const
inline

Definition at line 52 of file elements.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

template<int spacedim, class Value >
friend class Field
friend

Definition at line 116 of file elements.h.

friend class Mesh
friend

Definition at line 113 of file elements.h.

Member Data Documentation

unsigned int* Element::boundary_idx_

Definition at line 80 of file elements.h.

unsigned int Element::dim_
protected

Definition at line 108 of file elements.h.

std::vector<unsigned int> Element::edge_idx_
protected

Edges on sides.

Definition at line 90 of file elements.h.

unsigned int Element::n_neighs_vb_
mutableprotected

of neighbours, V-B type (comp.)

Definition at line 91 of file elements.h.

Neighbour** Element::neigh_vb

Definition at line 84 of file elements.h.

std::array<unsigned int, 4> Element::nodes_
protected

indices to element's nodes

Definition at line 111 of file elements.h.

std::vector<unsigned int> Element::permutation_idx_
mutableprotected

Indices of permutations of nodes on sides. It determines, in which order to take the nodes of the side so as to obtain the same order as on the reference side (side 0 on the particular edge).

Permutations are defined in RefElement::side_permutations.

TODO fix and remove mutable directive

Definition at line 104 of file elements.h.

int Element::pid_
protected

Id # of mesh partition.

Definition at line 89 of file elements.h.

RegionIdx Element::region_idx_
protected

Definition at line 107 of file elements.h.


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