Flow123d  release_2.2.0-33-g759111d
Public Member Functions | Private Attributes | List of all members
FESideValues< dim, spacedim > Class Template Reference

Calculates finite element data on a side. More...

#include <fe_values.hh>

Inheritance diagram for FESideValues< dim, spacedim >:
Inheritance graph
[legend]
Collaboration diagram for FESideValues< dim, spacedim >:
Collaboration graph
[legend]

Public Member Functions

 FESideValues (Mapping< dim, spacedim > &_mapping, Quadrature< dim-1 > &_sub_quadrature, FiniteElement< dim, spacedim > &_fe, UpdateFlags flags)
 Constructor. More...
 
virtual ~FESideValues ()
 Destructor. More...
 
void reinit (ElementFullIter &cell, unsigned int sid)
 Update cell-dependent data (gradients, Jacobians etc.) More...
 
- Public Member Functions inherited from FEValuesBase< dim, spacedim >
 FEValuesBase ()
 Default constructor. More...
 
virtual ~FEValuesBase ()
 
void allocate (Mapping< dim, spacedim > &_mapping, Quadrature< dim > &_quadrature, FiniteElement< dim, spacedim > &_fe, UpdateFlags flags)
 Allocates space for computed data. More...
 
UpdateFlags update_each (UpdateFlags flags)
 Determine quantities to be recomputed on each cell. More...
 
double shape_value (const unsigned int function_no, const unsigned int point_no)
 Return the value of the function_no-th shape function at the point_no-th quadrature point. More...
 
arma::vec::fixed< spacedim > shape_grad (const unsigned int function_no, const unsigned int point_no)
 Return the gradient of the function_no-th shape function at the point_no-th quadrature point. More...
 
arma::vec::fixed< spacedim > shape_vector (const unsigned int function_no, const unsigned int point_no)
 Return the value of the function_no-th shape function at the point_no-th quadrature point. More...
 
arma::mat::fixed< spacedim, spacedim > shape_grad_vector (const unsigned int function_no, const unsigned int point_no)
 Return the gradient of the function_no-th shape function at the point_no-th quadrature point. More...
 
double determinant (const unsigned int point_no)
 Return the relative volume change of the cell (Jacobian determinant). More...
 
double JxW (const unsigned int point_no)
 Return the product of Jacobian determinant and the quadrature weight at given quadrature point. More...
 
arma::vec::fixed< spacedim > point (const unsigned int point_no)
 Return coordinates of the quadrature point in the actual cell system. More...
 
vector< arma::vec::fixed< spacedim > > & point_list ()
 Return coordinates of all quadrature points in the actual cell system. More...
 
arma::vec::fixed< spacedim > normal_vector (unsigned int point_no)
 Returns the normal vector to a side at given quadrature point. More...
 
unsigned int n_points ()
 Returns the number of quadrature points. More...
 
unsigned int n_dofs ()
 Returns the number of shape functions. More...
 
Quadrature< dim > * get_quadrature () const
 Returns the quadrature in use. More...
 
FiniteElement< dim, spacedim > * get_fe () const
 Returns the finite element in use. More...
 
Mapping< dim, spacedim > * get_mapping () const
 Returns the mapping in use. More...
 
- Public Member Functions inherited from FEValuesSpaceBase< spacedim >
virtual ~FEValuesSpaceBase ()
 

Private Attributes

const Quadrature< dim-1 > * sub_quadrature
 Quadrature for the integration on the element sides. More...
 
Quadrature< dim > side_quadrature [RefElement< dim >::n_sides][RefElement< dim >::n_side_permutations]
 
MappingInternalDataside_mapping_data [RefElement< dim >::n_sides][RefElement< dim >::n_side_permutations]
 
FEInternalDataside_fe_data [RefElement< dim >::n_sides][RefElement< dim >::n_side_permutations]
 

Additional Inherited Members

- Protected Attributes inherited from FEValuesBase< dim, spacedim >
Mapping< dim, spacedim > * mapping
 The mapping from the reference cell to the actual cell. More...
 
Quadrature< dim > * quadrature
 The quadrature rule used to calculate integrals. More...
 
FiniteElement< dim, spacedim > * fe
 The used finite element. More...
 
MappingInternalDatamapping_data
 Precomputed mapping data. More...
 
FEInternalDatafe_data
 Precomputed finite element data. More...
 
FEValuesData< dim, spacedim > data
 Data computed by the mapping and finite element. More...
 

Detailed Description

template<unsigned int dim, unsigned int spacedim>
class FESideValues< dim, spacedim >

Calculates finite element data on a side.

FESideValues takes care of the calculation of finite element data on a side of the actual cell such as values of shape functions at quadrature points, gradients of shape functions, Jacobians of the mapping from the reference cell etc.

Parameters
dimDimension of the reference cell.
spacedimDimension of the Euclidean space where the actual cell lives.

Definition at line 461 of file fe_values.hh.

Constructor & Destructor Documentation

template<unsigned int dim, unsigned int spacedim>
FESideValues< dim, spacedim >::FESideValues ( Mapping< dim, spacedim > &  _mapping,
Quadrature< dim-1 > &  _sub_quadrature,
FiniteElement< dim, spacedim > &  _fe,
UpdateFlags  flags 
)

Constructor.

Initializes structures and calculates cell-independent data.

Parameters
_mappingThe mapping between the reference and actual cell.
_sub_quadratureThe quadrature rule on the side.
_feThe finite element.
flagsThe update flags.

Definition at line 182 of file fe_values.cc.

template<unsigned int dim, unsigned int spacedim>
FESideValues< dim, spacedim >::~FESideValues ( )
virtual

Destructor.

Definition at line 207 of file fe_values.cc.

Member Function Documentation

template<unsigned int dim, unsigned int spacedim>
void FESideValues< dim, spacedim >::reinit ( ElementFullIter cell,
unsigned int  sid 
)

Update cell-dependent data (gradients, Jacobians etc.)

Parameters
cellThe actual cell.
sidNumber of the side of the cell.

Definition at line 225 of file fe_values.cc.

Here is the caller graph for this function:

Member Data Documentation

template<unsigned int dim, unsigned int spacedim>
FEInternalData* FESideValues< dim, spacedim >::side_fe_data[RefElement< dim >::n_sides][RefElement< dim >::n_side_permutations]
private

Definition at line 507 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
MappingInternalData* FESideValues< dim, spacedim >::side_mapping_data[RefElement< dim >::n_sides][RefElement< dim >::n_side_permutations]
private

Definition at line 505 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
Quadrature<dim> FESideValues< dim, spacedim >::side_quadrature[RefElement< dim >::n_sides][RefElement< dim >::n_side_permutations]
private

Definition at line 503 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
const Quadrature<dim-1>* FESideValues< dim, spacedim >::sub_quadrature
private

Quadrature for the integration on the element sides.

Definition at line 501 of file fe_values.hh.


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