Flow123d  release_3.0.0-968-gc87a28e79
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DiscreteSpace Class Referenceabstract

#include <discrete_space.hh>

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

Public Member Functions

virtual unsigned int n_node_dofs (unsigned int nid) const =0
 Number of dofs associated to node. nid is the node index in the mesh tree. More...
 
virtual unsigned int n_elem_dofs (const ElementAccessor< 3 > &cell) const =0
 Number of dofs associated to element (not shared by adjacent elements). More...
 
template<unsigned int dim>
unsigned int n_face_dofs (unsigned int face_id)
 Number of dofs associated to generalized n-face (node, line, triangle or tetrahedron). More...
 
template<unsigned int dim>
FiniteElement< dim > * fe (const ElementAccessor< 3 > &) const
 Return finite element object for given element. More...
 
virtual ~DiscreteSpace ()
 Destructor. More...
 
template<>
FiniteElement< 0 > * fe (const ElementAccessor< 3 > &cell) const
 

Protected Member Functions

 DiscreteSpace (Mesh *mesh)
 Constructor. More...
 
virtual FiniteElement< 0 > * fe0d (const ElementAccessor< 3 > &) const =0
 
virtual FiniteElement< 1 > * fe1d (const ElementAccessor< 3 > &) const =0
 
virtual FiniteElement< 2 > * fe2d (const ElementAccessor< 3 > &) const =0
 
virtual FiniteElement< 3 > * fe3d (const ElementAccessor< 3 > &) const =0
 

Protected Attributes

Meshmesh_
 

Detailed Description

Abstract class for definition of finite element functions on the mesh. This should include

Definition at line 38 of file discrete_space.hh.

Constructor & Destructor Documentation

◆ ~DiscreteSpace()

virtual DiscreteSpace::~DiscreteSpace ( )
inlinevirtual

Destructor.

Definition at line 60 of file discrete_space.hh.

◆ DiscreteSpace()

DiscreteSpace::DiscreteSpace ( Mesh mesh)
inlineprotected

Constructor.

Definition at line 66 of file discrete_space.hh.

Member Function Documentation

◆ fe() [1/2]

template<unsigned int dim>
FiniteElement<dim>* DiscreteSpace::fe ( const ElementAccessor< 3 > &  ) const

Return finite element object for given element.

◆ fe() [2/2]

template<>
FiniteElement< 3 > * DiscreteSpace::fe ( const ElementAccessor< 3 > &  cell) const

Definition at line 88 of file discrete_space.cc.

◆ fe0d()

virtual FiniteElement<0>* DiscreteSpace::fe0d ( const ElementAccessor< 3 > &  ) const
protectedpure virtual

Implemented in EqualOrderDiscreteSpace.

Here is the caller graph for this function:

◆ fe1d()

virtual FiniteElement<1>* DiscreteSpace::fe1d ( const ElementAccessor< 3 > &  ) const
protectedpure virtual

Implemented in EqualOrderDiscreteSpace.

◆ fe2d()

virtual FiniteElement<2>* DiscreteSpace::fe2d ( const ElementAccessor< 3 > &  ) const
protectedpure virtual

Implemented in EqualOrderDiscreteSpace.

◆ fe3d()

virtual FiniteElement<3>* DiscreteSpace::fe3d ( const ElementAccessor< 3 > &  ) const
protectedpure virtual

Implemented in EqualOrderDiscreteSpace.

◆ n_elem_dofs()

virtual unsigned int DiscreteSpace::n_elem_dofs ( const ElementAccessor< 3 > &  cell) const
pure virtual

Number of dofs associated to element (not shared by adjacent elements).

Implemented in EqualOrderDiscreteSpace.

◆ n_face_dofs()

template<unsigned int dim>
unsigned int DiscreteSpace::n_face_dofs ( unsigned int  face_id)
inline

Number of dofs associated to generalized n-face (node, line, triangle or tetrahedron).

Definition at line 49 of file discrete_space.hh.

◆ n_node_dofs()

virtual unsigned int DiscreteSpace::n_node_dofs ( unsigned int  nid) const
pure virtual

Number of dofs associated to node. nid is the node index in the mesh tree.

Implemented in EqualOrderDiscreteSpace.

Member Data Documentation

◆ mesh_

Mesh* DiscreteSpace::mesh_
protected

Definition at line 74 of file discrete_space.hh.


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