FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ > Class Template Reference

Identity-Dof-Mapping base-class template. More...

#include <dof_mapping_common.hpp>

Inheritance diagram for FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ >:
FEAT::Space::DofMappingBase< Space_ >

Public Types

typedef SpaceType::ShapeType ShapeType
 shape typedef More...
 
typedef Space_ SpaceType
 space typedef More...
 

Public Member Functions

void finish ()
 Releases the dof-mapping from the current cell. More...
 
Index get_current_cell_index () const
 Returns the current cell-index. More...
 
Index get_index (int local_dof_idx) const
 Returns the mapped dof index. More...
 
Index get_num_global_dofs () const
 Return the number of global dofs. More...
 
int get_num_local_dofs () const
 Returns the number of local dofs. More...
 
void prepare (Index cell_index)
 Prepares the dof-mapping for a given cell. More...
 

Protected Member Functions

 DofMappingIdentity (const Space_ &space)
 constructor More...
 

Protected Attributes

Index _cell_index
 currently active cell index More...
 
const SpaceType_space
 space reference More...
 

Detailed Description

template<typename Space_, int dofs_per_cell_ = 1>
class FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ >

Identity-Dof-Mapping base-class template.

Note
This class is meant to be used as a base-class only, therefore its constructor is protected.
Template Parameters
Space_The finite-element space that this dof-mapping is used by.
dofs_per_cell_The number of dofs per entity.
Author
Peter Zajac

Definition at line 32 of file dof_mapping_common.hpp.

Member Typedef Documentation

◆ ShapeType

template<typename Space_ >
typedef SpaceType::ShapeType FEAT::Space::DofMappingBase< Space_ >::ShapeType
inherited

shape typedef

Definition at line 40 of file dof_mapping_base.hpp.

◆ SpaceType

template<typename Space_ >
typedef Space_ FEAT::Space::DofMappingBase< Space_ >::SpaceType
inherited

space typedef

Definition at line 38 of file dof_mapping_base.hpp.

Constructor & Destructor Documentation

◆ DofMappingIdentity()

template<typename Space_ , int dofs_per_cell_ = 1>
FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ >::DofMappingIdentity ( const Space_ &  space)
inlineexplicitprotected

constructor

Definition at line 37 of file dof_mapping_common.hpp.

Member Function Documentation

◆ finish()

template<typename Space_ >
void FEAT::Space::DofMappingBase< Space_ >::finish ( )
inlineinherited

Releases the dof-mapping from the current cell.

Definition at line 71 of file dof_mapping_base.hpp.

References FEAT::Space::DofMappingBase< Space_ >::_cell_index.

◆ get_current_cell_index()

template<typename Space_ >
Index FEAT::Space::DofMappingBase< Space_ >::get_current_cell_index ( ) const
inlineinherited

Returns the current cell-index.

Definition at line 80 of file dof_mapping_base.hpp.

References FEAT::Space::DofMappingBase< Space_ >::_cell_index.

◆ get_index()

template<typename Space_ , int dofs_per_cell_ = 1>
Index FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ >::get_index ( int  local_dof_idx) const
inline

Returns the mapped dof index.

Parameters
[in]local_dof_idxThe index of the local dof whose mapped index is to be returned.
Returns
The mapped dof index.

Definition at line 56 of file dof_mapping_common.hpp.

References FEAT::Space::DofMappingBase< Space_ >::_cell_index.

◆ get_num_global_dofs()

template<typename Space_ , int dofs_per_cell_ = 1>
Index FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ >::get_num_global_dofs ( ) const
inline

Return the number of global dofs.

Returns
The total number of global degress of freedom for the finite element space.

Definition at line 50 of file dof_mapping_common.hpp.

References FEAT::Space::DofMappingBase< Space_ >::_space.

◆ get_num_local_dofs()

template<typename Space_ , int dofs_per_cell_ = 1>
int FEAT::Space::DofMappingIdentity< Space_, dofs_per_cell_ >::get_num_local_dofs ( ) const
inline

Returns the number of local dofs.

Returns
The total number of local degrees of freedom for the currently active cell.

Definition at line 44 of file dof_mapping_common.hpp.

◆ prepare()

template<typename Space_ >
void FEAT::Space::DofMappingBase< Space_ >::prepare ( Index  cell_index)
inlineinherited

Prepares the dof-mapping for a given cell.

Parameters
[in]cell_indexThe index of the cell that is to be used by the dof-mapping.

Definition at line 63 of file dof_mapping_base.hpp.

References FEAT::Space::DofMappingBase< Space_ >::_cell_index.

Referenced by FEAT::Space::DofMappingUniform< Space_, DofTraits_, DofTag_ >::prepare().

Member Data Documentation

◆ _cell_index

◆ _space


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