Flow123d  JS_before_hm-1711-g43b724b37
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_
 
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() [1/2]

Element::Element ( )

Definition at line 35 of file elements.cc.

◆ Element() [2/2]

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

Definition at line 45 of file elements.cc.

◆ ~Element()

Element::~Element ( )

Definition at line 70 of file elements.cc.

Member Function Documentation

◆ dim()

unsigned int Element::dim ( ) const
inline

Definition at line 121 of file elements.h.

◆ edge_idx()

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:

◆ init()

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

Definition at line 52 of file elements.cc.

Here is the caller graph for this function:

◆ n_neighs_vb()

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:

◆ n_nodes()

unsigned int Element::n_nodes ( ) const
inline

Definition at line 126 of file elements.h.

Here is the caller graph for this function:

◆ n_sides()

unsigned int Element::n_sides ( ) const
inline

Definition at line 132 of file elements.h.

◆ node_idx()

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:

◆ permutation_idx()

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.

◆ pid()

int Element::pid ( ) const
inline

Return Id of mesh partition.

Definition at line 62 of file elements.h.

◆ region_idx()

RegionIdx Element::region_idx ( ) const
inline

Definition at line 52 of file elements.h.

Friends And Related Function Documentation

◆ Field

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

Definition at line 116 of file elements.h.

◆ Mesh

friend class Mesh
friend

Definition at line 113 of file elements.h.

Member Data Documentation

◆ boundary_idx_

unsigned int* Element::boundary_idx_

Definition at line 80 of file elements.h.

◆ dim_

unsigned int Element::dim_
protected

Definition at line 108 of file elements.h.

◆ edge_idx_

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

Edges on sides.

Definition at line 90 of file elements.h.

◆ n_neighs_vb_

unsigned int Element::n_neighs_vb_
mutableprotected

of neighbours, V-B type (comp.)

Definition at line 91 of file elements.h.

◆ neigh_vb

Neighbour** Element::neigh_vb

Definition at line 84 of file elements.h.

◆ nodes_

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

indices to element's nodes

Definition at line 111 of file elements.h.

◆ permutation_idx_

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.

◆ pid_

int Element::pid_
protected

Id # of mesh partition.

Definition at line 89 of file elements.h.

◆ region_idx_

RegionIdx Element::region_idx_
protected

Definition at line 107 of file elements.h.


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