Flow123d  build_with_4.0.3-95067a1
Public Member Functions | List of all members
RT0_space Class Reference

#include <fe_rt.hh>

Inheritance diagram for RT0_space:
Inheritance graph
[legend]
Collaboration diagram for RT0_space:
Collaboration graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from FunctionSpace
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

Space of Raviart-Thomas polynomials of order 0 (affine functions). The basis functions are defined as

x, x - e_1, ..., x - e_d,

where x is the space variable, e_i is the i-th canonical basis vector in R^d and d is space_dim_.

Definition at line 34 of file fe_rt.hh.

Constructor & Destructor Documentation

◆ RT0_space()

RT0_space::RT0_space ( unsigned int  dim)

Definition at line 27 of file fe_rt.cc.

Member Function Documentation

◆ basis_grad()

const arma::vec RT0_space::basis_grad ( unsigned int  basis_index,
const arma::vec &  point,
unsigned int  comp_index 
) const
overridevirtual

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).

Implements FunctionSpace.

Definition at line 46 of file fe_rt.cc.

◆ basis_value()

double RT0_space::basis_value ( unsigned int  basis_index,
const arma::vec &  point,
unsigned int  comp_index 
) const
overridevirtual

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).

Implements FunctionSpace.

Definition at line 32 of file fe_rt.cc.

◆ dim()

unsigned int RT0_space::dim ( ) const
inlineoverridevirtual

Dimension of function space (number of basis functions).

Implements FunctionSpace.

Definition at line 49 of file fe_rt.hh.

Here is the caller graph for this function:

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