Flow123d  jenkins-Flow123d-windows-release-multijob-285
Public Member Functions | Protected Attributes | List of all members
FEValuesBase< dim, spacedim > Class Template Reference

Base class for FEValues and FESideValues. More...

#include <fe_values.hh>

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

Public Member Functions

 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...
 
const 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...
 
const 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...
 
const 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...
 
const 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...
 
const double determinant (const unsigned int point_no)
 Return the relative volume change of the cell (Jacobian determinant). More...
 
const double JxW (const unsigned int point_no)
 Return the product of Jacobian determinant and the quadrature weight at given quadrature point. More...
 
const arma::vec::fixed< spacedim > point (const unsigned int point_no)
 Return coordinates of the quadrature point in the actual cell system. More...
 
const vector< arma::vec::fixed< spacedim > > & point_list ()
 Return coordinates of all quadrature points in the actual cell system. More...
 
const arma::vec::fixed< spacedim > normal_vector (unsigned int point_no)
 Returns the normal vector to a side at given quadrature point. More...
 
const unsigned int n_points ()
 Returns the number of quadrature points. More...
 
const unsigned int n_dofs ()
 Returns the number of shape functions. More...
 
const Quadrature< dim > * get_quadrature () const
 Returns the quadrature in use. More...
 

Protected Attributes

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 FEValuesBase< dim, spacedim >

Base class for FEValues and FESideValues.

Definition at line 43 of file fe_values.hh.

Constructor & Destructor Documentation

template<unsigned int dim, unsigned int spacedim>
FEValuesBase< dim, spacedim >::FEValuesBase ( )
inline

Default constructor.

Definition at line 107 of file fe_values.cc.

template<unsigned int dim, unsigned int spacedim>
FEValuesBase< dim, spacedim >::~FEValuesBase ( )
inlinevirtual

Correct deallocation of objects created by 'initialize' methods.

Definition at line 115 of file fe_values.cc.

Member Function Documentation

template<unsigned int dim, unsigned int spacedim>
void FEValuesBase< dim, spacedim >::allocate ( Mapping< dim, spacedim > &  _mapping,
Quadrature< dim > &  _quadrature,
FiniteElement< dim, spacedim > &  _fe,
UpdateFlags  flags 
)

Allocates space for computed data.

Parameters
_mappingThe mapping between reference and actual cell.
_quadratureThe quadrature rule.
_feThe finite element.
flagsThe update flags.

Definition at line 123 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const double FEValuesBase< dim, spacedim >::determinant ( const unsigned int  point_no)
inline

Return the relative volume change of the cell (Jacobian determinant).

If dim==spacedim then the sign may be negative, otherwise the result is a positive number.

Parameters
point_noNumber of the quadrature point.

Definition at line 172 of file fe_values.cc.

template<unsigned int dim, unsigned int spacedim>
const Quadrature< dim > * FEValuesBase< dim, spacedim >::get_quadrature ( ) const
inline

Returns the quadrature in use.

Definition at line 214 of file fe_values.cc.

template<unsigned int dim, unsigned int spacedim>
const double FEValuesBase< dim, spacedim >::JxW ( const unsigned int  point_no)
inlinevirtual

Return the product of Jacobian determinant and the quadrature weight at given quadrature point.

Parameters
point_noNumber of the quadrature point.

Implements FEValuesSpaceBase< spacedim >.

Definition at line 178 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const unsigned int FEValuesBase< dim, spacedim >::n_dofs ( )
inlinevirtual

Returns the number of shape functions.

Implements FEValuesSpaceBase< spacedim >.

Definition at line 208 of file fe_values.cc.

template<unsigned int dim, unsigned int spacedim>
const unsigned int FEValuesBase< dim, spacedim >::n_points ( )
inline

Returns the number of quadrature points.

Definition at line 202 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const vec::fixed< spacedim > FEValuesBase< dim, spacedim >::normal_vector ( unsigned int  point_no)
inlinevirtual

Returns the normal vector to a side at given quadrature point.

Parameters
point_noNumber of the quadrature point.

Implements FEValuesSpaceBase< spacedim >.

Definition at line 196 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const vec::fixed< spacedim > FEValuesBase< dim, spacedim >::point ( const unsigned int  point_no)
inline

Return coordinates of the quadrature point in the actual cell system.

Parameters
point_noNumber of the quadrature point.

Definition at line 184 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const vector< vec::fixed< spacedim > > & FEValuesBase< dim, spacedim >::point_list ( )
inline

Return coordinates of all quadrature points in the actual cell system.

Definition at line 190 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const vec::fixed< spacedim > FEValuesBase< dim, spacedim >::shape_grad ( const unsigned int  function_no,
const unsigned int  point_no 
)
inlinevirtual

Return the gradient of the function_no-th shape function at the point_no-th quadrature point.

Parameters
function_noNumber of the shape function.
point_noNumber of the quadrature point.

Implements FEValuesSpaceBase< spacedim >.

Definition at line 154 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const mat::fixed< spacedim, spacedim > FEValuesBase< dim, spacedim >::shape_grad_vector ( const unsigned int  function_no,
const unsigned int  point_no 
)
inline

Return the gradient of the function_no-th shape function at the point_no-th quadrature point.

For vectorial finite elements.

Parameters
function_noNumber of the shape function.
point_noNumber of the quadrature point.

Definition at line 166 of file fe_values.cc.

template<unsigned int dim, unsigned int spacedim>
const double FEValuesBase< dim, spacedim >::shape_value ( const unsigned int  function_no,
const unsigned int  point_no 
)
inlinevirtual

Return the value of the function_no-th shape function at the point_no-th quadrature point.

Parameters
function_noNumber of the shape function.
point_noNumber of the quadrature point.

Implements FEValuesSpaceBase< spacedim >.

Definition at line 148 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
const vec::fixed< spacedim > FEValuesBase< dim, spacedim >::shape_vector ( const unsigned int  function_no,
const unsigned int  point_no 
)
inline

Return the value of the function_no-th shape function at the point_no-th quadrature point.

For vectorial finite elements.

Parameters
function_noNumber of the shape function.
point_noNumber of the quadrature point.

Definition at line 160 of file fe_values.cc.

Here is the caller graph for this function:

template<unsigned int dim, unsigned int spacedim>
UpdateFlags FEValuesBase< dim, spacedim >::update_each ( UpdateFlags  flags)
inline

Determine quantities to be recomputed on each cell.

Parameters
flagsFlags that indicate what has to be recomputed.

Definition at line 140 of file fe_values.cc.

Member Data Documentation

template<unsigned int dim, unsigned int spacedim>
FEValuesData<dim,spacedim> FEValuesBase< dim, spacedim >::data
protected

Data computed by the mapping and finite element.

Definition at line 352 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
FiniteElement<dim,spacedim>* FEValuesBase< dim, spacedim >::fe
protected

The used finite element.

Definition at line 337 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
FEInternalData* FEValuesBase< dim, spacedim >::fe_data
protected

Precomputed finite element data.

Definition at line 347 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
Mapping<dim,spacedim>* FEValuesBase< dim, spacedim >::mapping
protected

The mapping from the reference cell to the actual cell.

Definition at line 327 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
MappingInternalData* FEValuesBase< dim, spacedim >::mapping_data
protected

Precomputed mapping data.

Definition at line 342 of file fe_values.hh.

template<unsigned int dim, unsigned int spacedim>
Quadrature<dim>* FEValuesBase< dim, spacedim >::quadrature
protected

The quadrature rule used to calculate integrals.

Definition at line 332 of file fe_values.hh.


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