Flow123d  release_3.0.0-968-gc359144
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Side Class Reference

#include <sides.h>

Collaboration diagram for Side:
Collaboration graph
[legend]

Public Member Functions

 Side ()
 
 Side (const Mesh *mesh, unsigned int elem_idx, unsigned int set_lnum)
 Constructor. More...
 
double measure () const
 Calculate metrics of the side. More...
 
arma::vec3 centre () const
 Centre of side. More...
 
arma::vec3 normal () const
 Vector of (generalized) normal. More...
 
double diameter () const
 Calculate the side diameter. More...
 
unsigned int n_nodes () const
 
unsigned int dim () const
 
bool is_external () const
 
NodeAccessor< 3 > node (unsigned int i) const
 
ElementAccessor< 3 > element () const
 
const Meshmesh () const
 
unsigned int edge_idx () const
 
const Edgeedge () const
 
Boundarycond () const
 
unsigned int cond_idx () const
 
unsigned int side_idx () const
 
unsigned int elem_idx () const
 
bool valid () const
 
void inc ()
 

Private Member Functions

arma::vec3 normal_point () const
 This is necessary by current DofHandler, should change this. More...
 
arma::vec3 normal_line () const
 
arma::vec3 normal_triangle () const
 

Private Attributes

const Meshmesh_
 Pointer to Mesh to which belonged. More...
 
unsigned int elem_idx_
 Index of element in Mesh::element_vec_. More...
 
unsigned int side_idx_
 Local # of side in element (to remove it, we heve to remove calc_side_rhs) More...
 

Detailed Description

Definition at line 39 of file sides.h.

Constructor & Destructor Documentation

Side::Side ( )
inline

Definition at line 41 of file sides.h.

Side::Side ( const Mesh mesh,
unsigned int  elem_idx,
unsigned int  set_lnum 
)
inline

Constructor.

Definition at line 27 of file side_impl.hh.

Member Function Documentation

arma::vec3 Side::centre ( ) const

Centre of side.

Definition at line 121 of file sides.cc.

Here is the caller graph for this function:

Boundary * Side::cond ( ) const
inline

Definition at line 71 of file side_impl.hh.

Here is the caller graph for this function:

unsigned int Side::cond_idx ( ) const
inline

Definition at line 76 of file side_impl.hh.

Here is the caller graph for this function:

double Side::diameter ( ) const

Calculate the side diameter.

Definition at line 137 of file sides.cc.

Here is the caller graph for this function:

unsigned int Side::dim ( ) const
inline

Returns dimension of the side, that is dimension of the element minus one.

Definition at line 38 of file side_impl.hh.

Here is the caller graph for this function:

const Edge * Side::edge ( ) const
inline

Returns pointer to the edge connected to the side.

Definition at line 66 of file side_impl.hh.

Here is the caller graph for this function:

unsigned int Side::edge_idx ( ) const
inline

Returns global index of the edge connected to the side.

Definition at line 62 of file side_impl.hh.

Here is the caller graph for this function:

unsigned int Side::elem_idx ( ) const
inline

Returns index of element in Mesh::element_vec_.

Definition at line 87 of file side_impl.hh.

Here is the caller graph for this function:

ElementAccessor< 3 > Side::element ( ) const
inline

Returns iterator to the element of the side.

Definition at line 53 of file side_impl.hh.

Here is the caller graph for this function:

void Side::inc ( )
inline

Iterate over local sides of the element.

Definition at line 97 of file side_impl.hh.

Here is the caller graph for this function:

bool Side::is_external ( ) const
inline

Definition at line 43 of file side_impl.hh.

Here is the caller graph for this function:

double Side::measure ( ) const

Calculate metrics of the side.

Definition at line 30 of file sides.cc.

Here is the caller graph for this function:

const Mesh * Side::mesh ( ) const
inline

Returns pointer to the mesh.

Definition at line 58 of file side_impl.hh.

Here is the caller graph for this function:

unsigned int Side::n_nodes ( ) const
inline

Returns number of nodes of the side.

Definition at line 34 of file side_impl.hh.

Here is the caller graph for this function:

NodeAccessor< 3 > Side::node ( unsigned int  i) const
inline

Returns node for given local index i on the side.

Definition at line 47 of file side_impl.hh.

Here is the caller graph for this function:

arma::vec3 Side::normal ( ) const

Vector of (generalized) normal.

Definition at line 53 of file sides.cc.

Here is the caller graph for this function:

arma::vec3 Side::normal_line ( ) const
private

Definition at line 85 of file sides.cc.

Here is the caller graph for this function:

arma::vec3 Side::normal_point ( ) const
private

This is necessary by current DofHandler, should change this.

Definition at line 69 of file sides.cc.

Here is the caller graph for this function:

arma::vec3 Side::normal_triangle ( ) const
private

Definition at line 106 of file sides.cc.

Here is the caller graph for this function:

unsigned int Side::side_idx ( ) const
inline

Returns local index of the side on the element.

Definition at line 82 of file side_impl.hh.

Here is the caller graph for this function:

bool Side::valid ( ) const
inline

Returns true if the side has assigned element.

Definition at line 92 of file side_impl.hh.

Here is the caller graph for this function:

Member Data Documentation

unsigned int Side::elem_idx_
private

Index of element in Mesh::element_vec_.

Definition at line 123 of file sides.h.

const Mesh* Side::mesh_
private

Pointer to Mesh to which belonged.

Definition at line 122 of file sides.h.

unsigned int Side::side_idx_
private

Local # of side in element (to remove it, we heve to remove calc_side_rhs)

Definition at line 124 of file sides.h.


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