Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Protected Attributes | List of all members
FunctionSpace Class Referenceabstract

#include <finite_element.hh>

Inheritance diagram for FunctionSpace:
Inheritance graph
[legend]

Public Member Functions

 FunctionSpace (unsigned int space_dim, unsigned int n_components)
 
virtual const double basis_value (unsigned int basis_index, const arma::vec &point, unsigned int comp_index=0) const =0
 Value of the i th basis function at point point. More...
 
virtual const arma::vec basis_grad (unsigned int basis_index, const arma::vec &point, unsigned int comp_index=0) const =0
 Gradient of the i th basis function at point point. More...
 
virtual const unsigned int dim () const =0
 Dimension of function space (number of basis functions). More...
 
const unsigned int space_dim () const
 Getter for space dimension. More...
 
const unsigned int n_components () const
 Getter for number of components. More...
 
virtual ~FunctionSpace ()
 

Protected Attributes

unsigned int space_dim_
 Space dimension of function arguments (i.e. 1, 2 or 3). More...
 
unsigned int n_components_
 Number of components of function values. More...
 

Detailed Description

FunctionSpace is an abstract class that is used to describe finite elements. It is determined by the dimension of the field of definition (space_dim_), by the dimension of the range (n_components_) and by the values and gradients of a basis functions.

Combining FunctionSpace with Dof(s), the FiniteElement class constructs the shape functions, i.e. basis of FunctionSpace for which the Dof(s) attain the value 0 or 1.

Definition at line 121 of file finite_element.hh.

Constructor & Destructor Documentation

FunctionSpace::FunctionSpace ( unsigned int  space_dim,
unsigned int  n_components 
)
inline

Definition at line 124 of file finite_element.hh.

virtual FunctionSpace::~FunctionSpace ( )
inlinevirtual

Definition at line 163 of file finite_element.hh.

Member Function Documentation

virtual const arma::vec FunctionSpace::basis_grad ( unsigned int  basis_index,
const arma::vec &  point,
unsigned int  comp_index = 0 
) const
pure virtual

Gradient of the i th basis function at point point.

Parameters
basis_indexIndex of the basis function.
pointPoint coordinates.
comp_indexIndex of component (>0 for vector-valued functions).

Implemented in PolynomialSpace, and RT0_space.

Here is the caller graph for this function:

virtual const double FunctionSpace::basis_value ( unsigned int  basis_index,
const arma::vec &  point,
unsigned int  comp_index = 0 
) const
pure virtual

Value of the i th basis function at point point.

Parameters
basis_indexIndex of the basis function.
pointPoint coordinates.
comp_indexIndex of component (>0 for vector-valued functions).

Implemented in PolynomialSpace, and RT0_space.

Here is the caller graph for this function:

virtual const unsigned int FunctionSpace::dim ( ) const
pure virtual

Dimension of function space (number of basis functions).

Implemented in PolynomialSpace, and RT0_space.

Here is the caller graph for this function:

const unsigned int FunctionSpace::n_components ( ) const
inline

Getter for number of components.

Definition at line 161 of file finite_element.hh.

Here is the caller graph for this function:

const unsigned int FunctionSpace::space_dim ( ) const
inline

Getter for space dimension.

Definition at line 158 of file finite_element.hh.

Member Data Documentation

unsigned int FunctionSpace::n_components_
protected

Number of components of function values.

Definition at line 171 of file finite_element.hh.

unsigned int FunctionSpace::space_dim_
protected

Space dimension of function arguments (i.e. 1, 2 or 3).

Definition at line 168 of file finite_element.hh.


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