deal.II version GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MeshWorker::Assembler::Functional< number > Class Template Reference

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

Public Member Functions

void initialize (const unsigned int n)
 
template<class DOFINFO >
void initialize_info (DOFINFO &info, bool face)
 
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
 

Private Attributes

std::vector< double > results
 

Detailed Description

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

The class assembling local contributions to a functional into global functionals.

Definition at line 48 of file functional.h.

Member Function Documentation

◆ initialize()

template<typename number >
void MeshWorker::Assembler::Functional< number >::initialize ( const unsigned int  n)
inline

Initialize local data to store functionals. The number n is the number of functionals to be computed.

Definition at line 172 of file functional.h.

◆ initialize_info()

template<typename number >
template<class DOFINFO >
void MeshWorker::Assembler::Functional< number >::initialize_info ( DOFINFO &  info,
bool  face 
)
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 182 of file functional.h.

◆ assemble() [1/2]

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

Assemble the local values into the global vectors.

Definition at line 191 of file functional.h.

◆ assemble() [2/2]

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

Assemble both local values into the global vectors.

Definition at line 201 of file functional.h.

◆ operator()()

template<typename number >
number MeshWorker::Assembler::Functional< number >::operator() ( const unsigned int  i) const
inline

The value of the ith entry in results.

Definition at line 213 of file functional.h.

Member Data Documentation

◆ results

template<typename number = double>
std::vector<double> MeshWorker::Assembler::Functional< number >::results
private

The values into which the results are added.

Definition at line 92 of file functional.h.


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