Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
Public Member Functions | List of all members
MeshWorker::Assembler::CellsAndFaces< number > Class Template Reference

#include <deal.II/meshworker/functional.h>

Public Member Functions

 CellsAndFaces ()
 
void initialize (AnyData &results, bool separate_faces=true)
 
template<class DOFINFO >
void initialize_info (DOFINFO &info, bool face) const
 
template<class DOFINFO >
void assemble (const DOFINFO &info)
 
template<class DOFINFO >
void assemble (const DOFINFO &info1, const DOFINFO &info2)
 
number operator() (const unsigned int i) const
 

Detailed Description

template<typename number = double>
class MeshWorker::Assembler::CellsAndFaces< number >

Compute cell and face contributions of one or several functionals, typically for error estimates. The information in which component the result is stored for a given cell or face is transmitted by its user_index variable. Hence, you need to make sure to set these variables appropriately before using this class.

Author
Guido Kanschat, 2009

Definition at line 106 of file functional.h.

Constructor & Destructor Documentation

◆ CellsAndFaces()

template<typename number >
MeshWorker::Assembler::CellsAndFaces< number >::CellsAndFaces ( )
inline

Constructor. Initialize the member variables.

Definition at line 223 of file functional.h.

Member Function Documentation

◆ initialize()

template<typename number >
void MeshWorker::Assembler::CellsAndFaces< number >::initialize ( AnyData results,
bool  separate_faces = true 
)
inline

The initialization function, specifying the results vectors and whether face data should be collected separately.

results should contain two block vectors named "cells" and "faces" (the latter only if separate_faces is true). In each of the two, each block should have equal size and be large enough to accommodate all user indices set in the cells and faces covered by the loop it is used in. Typically, for estimators, this is Triangulation::n_active_cells() and Triangulation::n_faces(), respectively.

The use of BlockVector may seem cumbersome, but it allows us to assemble several functionals at the same time, one in each block. The typical situation for error estimate is just having a single block in each vector.

Definition at line 231 of file functional.h.

◆ initialize_info()

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::CellsAndFaces< number >::initialize_info ( DOFINFO &  info,
bool  face 
) const
inline

Initialize the local data in the DoFInfo object used later for assembling.

The info object refers to a cell if !face, or else to an interior or boundary face.

Definition at line 248 of file functional.h.

◆ assemble() [1/2]

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::CellsAndFaces< number >::assemble ( const DOFINFO &  info)
inline

Assemble the local values into the global vectors.

Definition at line 258 of file functional.h.

◆ assemble() [2/2]

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::CellsAndFaces< number >::assemble ( const DOFINFO &  info1,
const DOFINFO &  info2 
)
inline

Assemble both local values into the global vectors.

Definition at line 274 of file functional.h.

◆ operator()()

template<typename number = double>
number MeshWorker::Assembler::CellsAndFaces< number >::operator() ( const unsigned int  i) const

The value of the ith entry in results.


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