Flow123d  JS_before_hm-1754-g1847fd3ed
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...
 
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_
 
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 68 of file elements.cc.

Member Function Documentation

◆ dim()

unsigned int Element::dim ( ) const
inline

Definition at line 108 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 123 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 64 of file elements.h.

Here is the caller graph for this function:

◆ n_nodes()

unsigned int Element::n_nodes ( ) const
inline

Definition at line 113 of file elements.h.

Here is the caller graph for this function:

◆ n_sides()

unsigned int Element::n_sides ( ) const
inline

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

Here is the caller graph for this function:

◆ pid()

int Element::pid ( ) const
inline

Return Id of mesh partition.

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

◆ Mesh

friend class Mesh
friend

Definition at line 100 of file elements.h.

Member Data Documentation

◆ boundary_idx_

unsigned int* Element::boundary_idx_

Definition at line 77 of file elements.h.

◆ dim_

unsigned int Element::dim_
protected

Definition at line 95 of file elements.h.

◆ edge_idx_

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

Edges on sides.

Definition at line 86 of file elements.h.

◆ n_neighs_vb_

unsigned int Element::n_neighs_vb_
mutableprotected

of neighbours, V-B type (comp.)

Definition at line 87 of file elements.h.

◆ neigh_vb

Neighbour** Element::neigh_vb

Definition at line 81 of file elements.h.

◆ nodes_

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

indices to element's nodes

Definition at line 98 of file elements.h.

◆ pid_

int Element::pid_
protected

Id # of mesh partition.

Definition at line 85 of file elements.h.

◆ region_idx_

RegionIdx Element::region_idx_
protected

Definition at line 94 of file elements.h.


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