Flow123d  master-f44eb46
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
 
bool inverted
 Inverted permutation of element nodes, negative Jacobian. More...
 
uint permutation_
 Index of permutation of input nodes. 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 MeshBase
 
class Mesh
 
class BCMesh
 
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 70 of file elements.cc.

Member Function Documentation

◆ dim()

unsigned int Element::dim ( ) const
inline

Definition at line 120 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 135 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 65 of file elements.h.

Here is the caller graph for this function:

◆ n_nodes()

unsigned int Element::n_nodes ( ) const
inline

Definition at line 125 of file elements.h.

Here is the caller graph for this function:

◆ n_sides()

unsigned int Element::n_sides ( ) const
inline

Definition at line 131 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 70 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 60 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

◆ BCMesh

friend class BCMesh
friend

Definition at line 112 of file elements.h.

◆ Field

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

Definition at line 115 of file elements.h.

◆ Mesh

friend class Mesh
friend

Definition at line 111 of file elements.h.

◆ MeshBase

friend class MeshBase
friend

Definition at line 110 of file elements.h.

Member Data Documentation

◆ boundary_idx_

unsigned int* Element::boundary_idx_

Definition at line 79 of file elements.h.

◆ dim_

unsigned int Element::dim_
protected

Definition at line 105 of file elements.h.

◆ edge_idx_

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

Edges on sides.

Definition at line 96 of file elements.h.

◆ inverted

bool Element::inverted

Inverted permutation of element nodes, negative Jacobian.

Definition at line 88 of file elements.h.

◆ n_neighs_vb_

unsigned int Element::n_neighs_vb_
mutableprotected

of neighbours, V-B type (comp.)

Definition at line 97 of file elements.h.

◆ neigh_vb

Neighbour** Element::neigh_vb

Definition at line 83 of file elements.h.

◆ nodes_

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

indices to element's nodes

Definition at line 108 of file elements.h.

◆ permutation_

uint Element::permutation_

Index of permutation of input nodes.

Definition at line 92 of file elements.h.

◆ pid_

int Element::pid_
protected

Id # of mesh partition.

Definition at line 95 of file elements.h.

◆ region_idx_

RegionIdx Element::region_idx_
protected

Definition at line 104 of file elements.h.


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