Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
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)
 
void initialize_local_blocks (const BlockIndices &)
 
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)

Author
Guido Kanschat, 2009

Definition at line 58 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 531 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 538 of file simple.h.

◆ initialize_local_blocks()

template<typename MatrixType >
void MeshWorker::Assembler::ResidualSimple< MatrixType >::initialize_local_blocks ( const BlockIndices )
inline
Deprecated:
This function is of no effect. Only the block info structure in DoFInfo is being used.

Store information on the local block structure. If the assembler is initialized with this function, initialize_info() will generate one local matrix for each block row and column, which will be numbered lexicographically, row by row.

In spite of using local block structure, all blocks will be entered into the same global matrix, disregarding any global block structure.

Definition at line 547 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 554 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 563 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 587 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 125 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 132 of file simple.h.


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