OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Private Member Functions | Private Attributes | List of all members
FuelCell::ApplicationCore::DoFInfo< dim, spacedim > Class Template Reference

Very basic info class only containing information on geometry and degrees of freedom on a mesh entity. More...

#include <mesh_loop_info_objects.h>

Collaboration diagram for FuelCell::ApplicationCore::DoFInfo< dim, spacedim >:
Collaboration graph
[legend]

Public Member Functions

Constructors, destructor, and initialization
 DoFInfo (const BlockInfo &block_info)
 Constructor. More...
 
 DoFInfo (const FEVectors &, const BlockInfo &block_info)
 
Reinitialization
template<typename DHCellIterator >
void reinit (const DHCellIterator &c)
 Set the current cell and fill indices. More...
 
template<typename DHCellIterator , typename DHFaceIterator >
void reinit (const DHCellIterator &c, const DHFaceIterator &f, const unsigned int fn)
 Set the current cell and face and fill indices. More...
 
template<typename DHCellIterator , typename DHFaceIterator >
void reinit (const DHCellIterator &c, const DHFaceIterator &f, const unsigned int fn, const unsigned int sn)
 Set the current cell, face, and subface and fill indices. More...
 

Public Attributes

Mesh iterators
DoFHandler< dim >::cell_iterator dof_cell
 The current DoFHandler<dim> cell. More...
 
DoFHandler< dim >
::active_cell_iterator 
dof_active_cell
 The current DoFHandler<dim> active cell. More...
 
DoFHandler< dim >::face_iterator dof_face
 The current DoFHandler<dim> face. More...
 
Triangulation< dim >::cell_iterator cell
 The current Triangulation<dim> cell. More...
 
Triangulation< dim >::face_iterator face
 The current Triangulation<dim> face. More...
 
unsigned int face_number
 The number of the current face on the current cell. More...
 
unsigned int sub_number
 The number of the current subface on the current face of the current cell. More...
 
Other data
std::vector< unsigned int > indices
 The local dof indices associated with the current cell. More...
 
SmartPointer< const BlockInfoblock_info
 The block structure of the problem at hand. More...
 

Private Member Functions

void get_indices (const typename DoFHandler< dim, spacedim >::cell_iterator c)
 Fill indices. More...
 

Private Attributes

std::vector< unsigned int > indices_org
 Auxiliary vector. More...
 

Detailed Description

template<int dim, int spacedim = dim>
class FuelCell::ApplicationCore::DoFInfo< dim, spacedim >

Very basic info class only containing information on geometry and degrees of freedom on a mesh entity.

The information in this class is usually used by mesh loops.

This class operates in two different modes:

Note
MODE1 is used in FCST software by default.

The BlockInfo object is stored here as a pointer. Therefore, if the local block structure changes, for instance because of the mesh refinement, the DoFInfo class will automatically use this new structure.

Author
Guido Kanschat
Valentin N. Zingan

Constructor & Destructor Documentation

template<int dim, int spacedim>
FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::DoFInfo ( const BlockInfo block_info)
inline

Constructor.

template<int dim, int spacedim>
FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::DoFInfo ( const FEVectors ,
const BlockInfo block_info 
)
inline
Deprecated:
Constructor. The first argument is ignored.

Member Function Documentation

template<int dim, int spacedim>
void FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::get_indices ( const typename DoFHandler< dim, spacedim >::cell_iterator  c)
inlineprivate

Fill indices.

template<int dim, int spacedim>
template<typename DHCellIterator >
void FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::reinit ( const DHCellIterator &  c)
inline

Set the current cell and fill indices.

Referenced by FuelCell::ApplicationCore::IntegrationInfo< dim, FEVALUESBASE >::reinit().

Here is the caller graph for this function:

template<int dim, int spacedim>
template<typename DHCellIterator , typename DHFaceIterator >
void FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::reinit ( const DHCellIterator &  c,
const DHFaceIterator &  f,
const unsigned int  fn 
)
inline

Set the current cell and face and fill indices.

template<int dim, int spacedim>
template<typename DHCellIterator , typename DHFaceIterator >
void FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::reinit ( const DHCellIterator &  c,
const DHFaceIterator &  f,
const unsigned int  fn,
const unsigned int  sn 
)
inline

Set the current cell, face, and subface and fill indices.

Member Data Documentation

template<int dim, int spacedim = dim>
SmartPointer<const BlockInfo> FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::block_info

The block structure of the problem at hand.

template<int dim, int spacedim = dim>
Triangulation<dim>::cell_iterator FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::cell

The current Triangulation<dim> cell.

template<int dim, int spacedim = dim>
DoFHandler<dim>::active_cell_iterator FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::dof_active_cell

The current DoFHandler<dim> active cell.

template<int dim, int spacedim = dim>
DoFHandler<dim>::cell_iterator FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::dof_cell

The current DoFHandler<dim> cell.

template<int dim, int spacedim = dim>
DoFHandler<dim>::face_iterator FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::dof_face

The current DoFHandler<dim> face.

template<int dim, int spacedim = dim>
Triangulation<dim>::face_iterator FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::face

The current Triangulation<dim> face.

template<int dim, int spacedim = dim>
unsigned int FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::face_number

The number of the current face on the current cell.

This number is static_cast<unsigned int>(-1) if the DoFInfo object is initialized with a cell only.

template<int dim, int spacedim = dim>
std::vector<unsigned int> FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::indices

The local dof indices associated with the current cell.

template<int dim, int spacedim = dim>
std::vector<unsigned int> FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::indices_org
private

Auxiliary vector.

template<int dim, int spacedim = dim>
unsigned int FuelCell::ApplicationCore::DoFInfo< dim, spacedim >::sub_number

The number of the current subface on the current face of the current cell.

This number is static_cast<unsigned int>(-1) if the DoFInfo object is initialized with a cell and face only.


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