Flow123d  jenkins-Flow123d-windows-release-multijob-285
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, Mesh *mesh_in, RegionIdx reg)
 
void init (unsigned int dim, Mesh *mesh_in, RegionIdx reg)
 
 ~Element ()
 
unsigned int dim () const
 
unsigned int index () const
 
unsigned int n_sides () const
 
unsigned int n_nodes () const
 
ElementAccessor< 3 > element_accessor () const
 Gets ElementAccessor of this element. More...
 
double measure () const
 
arma::vec3 centre () const
 
double quality_measure_smooth ()
 
unsigned int n_sides_by_dim (unsigned int side_dim)
 
SideIter side (const unsigned int loc_index)
 
const SideIter side (const unsigned int loc_index) const
 
Region region () const
 
RegionIdx region_idx () const
 
unsigned int id () const
 
void get_bounding_box (BoundingBox &bounding_box) const
 
BoundingBox bounding_box ()
 
vector< arma::vec3vertex_list ()
 

Public Attributes

int pid
 
Node ** node
 
unsigned int * edge_idx_
 
unsigned int * boundary_idx_
 
unsigned int * permutation_idx_
 
unsigned int n_neighs_vb
 
Neighbour ** neigh_vb
 
Meshmesh_
 

Protected Attributes

RegionIdx region_idx_
 
unsigned int dim_
 

Friends

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

Detailed Description

Definition at line 50 of file elements.h.

Constructor & Destructor Documentation

Element::Element ( )

Definition at line 46 of file elements.cc.

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

Definition at line 65 of file elements.cc.

Element::~Element ( )

Definition at line 92 of file elements.cc.

Member Function Documentation

BoundingBox Element::bounding_box ( )
inline

Return bounding box of the element.

Definition at line 113 of file elements.h.

Here is the caller graph for this function:

arma::vec3 Element::centre ( ) const

SET THE "CENTRE[]" FIELD IN STRUCT ELEMENT

Definition at line 132 of file elements.cc.

Here is the caller graph for this function:

unsigned int Element::dim ( ) const
inline

Definition at line 15 of file element_impls.hh.

Here is the caller graph for this function:

ElementAccessor< 3 > Element::element_accessor ( ) const

Gets ElementAccessor of this element.

Definition at line 160 of file elements.cc.

Here is the caller graph for this function:

void Element::get_bounding_box ( BoundingBox bounding_box) const

Computes bounding box of element (OBSOLETE)

Definition at line 208 of file elements.cc.

Here is the caller graph for this function:

unsigned int Element::id ( ) const

Definition at line 172 of file elements.cc.

unsigned int Element::index ( ) const
inline

Definition at line 20 of file element_impls.hh.

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

Definition at line 72 of file elements.cc.

Here is the caller graph for this function:

double Element::measure ( ) const

SET THE "METRICS" FIELD IN STRUCT ELEMENT

Definition at line 101 of file elements.cc.

Here is the caller graph for this function:

unsigned int Element::n_nodes ( ) const
inline

Definition at line 25 of file element_impls.hh.

Here is the caller graph for this function:

unsigned int Element::n_sides ( ) const
inline

Definition at line 31 of file element_impls.hh.

Here is the caller graph for this function:

unsigned int Element::n_sides_by_dim ( unsigned int  side_dim)

Count element sides of the space dimension side_dim.

Definition at line 149 of file elements.cc.

double Element::quality_measure_smooth ( )

Quality of the element based on the smooth and scale-invariant quality measures proposed in: J. R. Schewchuk: What is a Good Linear Element?

We scale the measure so that is gives value 1 for regular elements. Line 1d elements have always quality 1.

Definition at line 176 of file elements.cc.

Region Element::region ( ) const

Definition at line 167 of file elements.cc.

Here is the caller graph for this function:

RegionIdx Element::region_idx ( ) const
inline

Definition at line 82 of file elements.h.

SideIter Element::side ( const unsigned int  loc_index)
inline

Definition at line 37 of file element_impls.hh.

Here is the caller graph for this function:

const SideIter Element::side ( const unsigned int  loc_index) const
inline

Definition at line 41 of file element_impls.hh.

vector<arma::vec3> Element::vertex_list ( )
inline

Return list of element vertices.

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

friend class GmshMeshReader
friend

Definition at line 140 of file elements.h.

Member Data Documentation

unsigned int* Element::boundary_idx_

Definition at line 94 of file elements.h.

unsigned int Element::dim_
protected

Definition at line 138 of file elements.h.

unsigned int* Element::edge_idx_

Definition at line 93 of file elements.h.

Mesh* Element::mesh_

Definition at line 132 of file elements.h.

unsigned int Element::n_neighs_vb

Definition at line 127 of file elements.h.

Neighbour** Element::neigh_vb

Definition at line 129 of file elements.h.

Node** Element::node

Definition at line 90 of file elements.h.

unsigned int* Element::permutation_idx_

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.

Definition at line 103 of file elements.h.

int Element::pid

Definition at line 87 of file elements.h.

RegionIdx Element::region_idx_
protected

Definition at line 137 of file elements.h.


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