Flow123d  DF_mechanic_bench-4968b1b
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FE_P< dim > Class Template Reference

Conforming Lagrangean finite element on dim dimensional simplex. More...

#include <fe_p.hh>

Inheritance diagram for FE_P< dim >:
Inheritance graph
[legend]
Collaboration diagram for FE_P< dim >:
Collaboration graph
[legend]

Public Member Functions

 FE_P (unsigned int degree)
 Constructor. More...
 
- Public Member Functions inherited from FiniteElement< dim >
 FiniteElement ()
 Constructor. More...
 
unsigned int n_dofs () const
 Returns the number of degrees of freedom needed by the finite element. More...
 
double shape_value (const unsigned int i, const arma::vec::fixed< dim > &p, const unsigned int comp=0) const
 Calculates the value of the comp-th component of the i-th shape function at the point p on the reference element. More...
 
arma::vec::fixed< dim > shape_grad (const unsigned int i, const arma::vec::fixed< dim > &p, const unsigned int comp=0) const
 Calculates the comp-th component of the gradient of the i-th shape function at the point p on the reference element. More...
 
unsigned int n_components () const
 Returns numer of components of the basis function.
More...
 
const Dofdof (unsigned int i) const
 Returns i -th degree of freedom. More...
 
unsigned int n_space_components (unsigned int spacedim)
 Number of components of FE in a mapped space with dimension spacedim. More...
 
virtual std::vector< arma::vec::fixed< dim+1 > > dof_points () const
 
virtual ~FiniteElement ()
 Destructor. More...
 

Protected Member Functions

void init_dofs ()
 
- Protected Member Functions inherited from FiniteElement< dim >
void init (bool primitive=true, FEType type=FEScalar)
 Clears all internal structures. More...
 
void setup_components ()
 Initialize vectors with information about components of basis functions. More...
 
virtual UpdateFlags update_each (UpdateFlags flags)
 Decides which additional quantities have to be computed for each cell. More...
 
virtual void compute_node_matrix ()
 Initializes the node_matrix for computing the coefficients of the shape functions in the raw basis of functions_space_. This is done by evaluating the dofs_ for the basis function and by inverting the resulting matrix. More...
 
bool is_primitive () const
 Indicates whether the basis functions have one or more nonzero components (scalar FE spaces are always primitive). More...
 
unsigned int system_to_component_index (unsigned sys_idx) const
 Returns the component index for vector valued finite elements. More...
 
const std::vector< bool > & get_nonzero_components (unsigned int sys_idx) const
 Returns the mask of nonzero components for given basis function. More...
 

Protected Attributes

unsigned int degree_
 Maximum degree of polynomials. More...
 
- Protected Attributes inherited from FiniteElement< dim >
FEType type_
 Type of FiniteElement. More...
 
bool is_primitive_
 Primitive FE is using componentwise shape functions, i.e. only one component is nonzero for each shape function. More...
 
std::vector< unsigned int > component_indices_
 Indices of nonzero components of shape functions (for primitive FE). More...
 
std::vector< std::vector< bool > > nonzero_components_
 Footprints of nonzero components of shape functions. More...
 
arma::mat node_matrix
 Matrix that determines the coefficients of the raw basis functions from the values at the support points. More...
 
std::shared_ptr< FunctionSpacefunction_space_
 Function space defining the FE. More...
 
std::vector< Dofdofs_
 Set of degrees of freedom (functionals) defining the FE. More...
 

Detailed Description

template<unsigned int dim>
class FE_P< dim >

Conforming Lagrangean finite element on dim dimensional simplex.

The finite element functions are continuous across the interfaces.

Definition at line 85 of file fe_p.hh.

Constructor & Destructor Documentation

◆ FE_P()

template<unsigned int dim>
FE_P< dim >::FE_P ( unsigned int  degree)

Constructor.

Definition at line 197 of file fe_p.cc.

Member Function Documentation

◆ init_dofs()

template<unsigned int dim>
void FE_P< dim >::init_dofs
protected

Definition at line 112 of file fe_p.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ degree_

template<unsigned int dim>
unsigned int FE_P< dim >::degree_
protected

Maximum degree of polynomials.

Definition at line 96 of file fe_p.hh.


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