Flow123d  JS_before_hm-1804-gf2ad740aa
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
 
std::vector< unsigned int > permutation_idx_
 
bool inverted
 Inverted permutation of element nodes, negative Jacobian. More...
 

Protected Attributes

int pid_
 Id # of mesh partition. More...
 
std::vector< unsigned int > edge_idx_
 Edges on sides. More...
 
unsigned int n_neighs_vb_
 
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 40 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 46 of file elements.cc.

◆ ~Element()

Element::~Element ( )

Definition at line 72 of file elements.cc.

Member Function Documentation

◆ dim()

unsigned int Element::dim ( ) const
inline

Definition at line 127 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 142 of file elements.h.

Here is the caller graph for this function:

◆ init()

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

Definition at line 53 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 68 of file elements.h.

Here is the caller graph for this function:

◆ n_nodes()

unsigned int Element::n_nodes ( ) const
inline

Definition at line 132 of file elements.h.

Here is the caller graph for this function:

◆ n_sides()

unsigned int Element::n_sides ( ) const
inline

Definition at line 138 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 73 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 147 of file elements.h.

◆ pid()

int Element::pid ( ) const
inline

Return Id of mesh partition.

Definition at line 63 of file elements.h.

◆ region_idx()

RegionIdx Element::region_idx ( ) const
inline

Definition at line 53 of file elements.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Field

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

Definition at line 122 of file elements.h.

◆ Mesh

friend class Mesh
friend

Definition at line 119 of file elements.h.

Member Data Documentation

◆ boundary_idx_

unsigned int* Element::boundary_idx_

Definition at line 82 of file elements.h.

◆ dim_

unsigned int Element::dim_
protected

Definition at line 114 of file elements.h.

◆ edge_idx_

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

Edges on sides.

Definition at line 105 of file elements.h.

◆ inverted

bool Element::inverted

Inverted permutation of element nodes, negative Jacobian.

Definition at line 101 of file elements.h.

◆ n_neighs_vb_

unsigned int Element::n_neighs_vb_
mutableprotected

of neighbours, V-B type (comp.)

Definition at line 106 of file elements.h.

◆ neigh_vb

Neighbour** Element::neigh_vb

Definition at line 86 of file elements.h.

◆ nodes_

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

indices to element's nodes

Definition at line 117 of file elements.h.

◆ permutation_idx_

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

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 98 of file elements.h.

◆ pid_

int Element::pid_
protected

Id # of mesh partition.

Definition at line 104 of file elements.h.

◆ region_idx_

RegionIdx Element::region_idx_
protected

Definition at line 113 of file elements.h.


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