Reference documentation for deal.II version 9.5.0
\(\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 | Protected Attributes | List of all members
MeshWorker::Assembler::ResidualSimple< VectorType > Class Template Reference

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

Inheritance diagram for MeshWorker::Assembler::ResidualSimple< VectorType >:
[legend]

Public Member Functions

void initialize (AnyData &results)
 
void initialize (const AffineConstraints< typename VectorType::value_type > &constraints)
 
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)
 

Protected Attributes

AnyData residuals
 
SmartPointer< const AffineConstraints< typename VectorType::value_type >, ResidualSimple< VectorType > > constraints
 

Detailed Description

template<typename VectorType>
class MeshWorker::Assembler::ResidualSimple< VectorType >

Assemble residuals without block structure.

The data structure for this Assembler class is a simple vector on each cell with entries from zero to FiniteElementData::dofs_per_cell and a simple global vector with entries numbered from zero to DoFHandler::n_dofs(). No BlockInfo is required and the global vector may be any type of vector having element access through operator() (unsigned int)

Definition at line 59 of file simple.h.

Member Function Documentation

◆ initialize() [1/2]

template<typename VectorType >
void MeshWorker::Assembler::ResidualSimple< VectorType >::initialize ( AnyData results)
inline

Initialize with an AnyData object holding the result of assembling.

Assembling currently writes into the first vector of results.

Definition at line 513 of file simple.h.

◆ initialize() [2/2]

template<typename VectorType >
void MeshWorker::Assembler::ResidualSimple< VectorType >::initialize ( const AffineConstraints< typename VectorType::value_type > &  constraints)
inline

Initialize the constraints.

Definition at line 522 of file simple.h.

◆ initialize_info()

template<typename VectorType >
template<class DOFINFO >
void MeshWorker::Assembler::ResidualSimple< VectorType >::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 533 of file simple.h.

◆ assemble() [1/2]

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

Assemble the local residuals into the global residuals.

Values are added to the previous contents. If constraints are active, AffineConstraints::distribute_local_to_global() is used.

Definition at line 543 of file simple.h.

◆ assemble() [2/2]

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

Assemble both local residuals into the global residuals.

Definition at line 567 of file simple.h.

Member Data Documentation

◆ residuals

template<typename VectorType >
AnyData MeshWorker::Assembler::ResidualSimple< VectorType >::residuals
protected

The global residual vectors filled by assemble().

Definition at line 110 of file simple.h.

◆ constraints

template<typename VectorType >
SmartPointer<const AffineConstraints<typename VectorType::value_type>, ResidualSimple<VectorType> > MeshWorker::Assembler::ResidualSimple< VectorType >::constraints
protected

A pointer to the object containing constraints.

Definition at line 117 of file simple.h.


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