Reference documentation for deal.II version 8.1.0
Public Member Functions | Private Attributes | List of all members
MeshWorker::Assembler::ResidualSimple< VECTOR > Class Template Reference

#include <simple.h>

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

Public Member Functions

void initialize (NamedData< VECTOR * > &results)
 
void initialize (const ConstraintMatrix &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)
 

Private Attributes

NamedData< SmartPointer< VECTOR, ResidualSimple< VECTOR > > > residuals
 
SmartPointer< const ConstraintMatrix, ResidualSimple< VECTOR > > constraints
 

Detailed Description

template<class VECTOR>
class MeshWorker::Assembler::ResidualSimple< VECTOR >

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 60 of file simple.h.

Member Function Documentation

template<class VECTOR >
void MeshWorker::Assembler::ResidualSimple< VECTOR >::initialize ( const ConstraintMatrix constraints)
inline

Initialize the constraints.

Definition at line 512 of file simple.h.

template<class MATRIX >
void MeshWorker::Assembler::ResidualSimple< MATRIX >::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 inititialized 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 enteres into the same global matrix, disregarding any global block structure.

Definition at line 520 of file simple.h.

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

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

Assemble the local residuals into the global residuals.

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

Definition at line 536 of file simple.h.

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

Assemble both local residuals into the global residuals.

Definition at line 559 of file simple.h.

Member Data Documentation

template<class VECTOR>
NamedData<SmartPointer<VECTOR,ResidualSimple<VECTOR> > > MeshWorker::Assembler::ResidualSimple< VECTOR >::residuals
private

The global residal vectors filled by assemble().

Definition at line 117 of file simple.h.

template<class VECTOR>
SmartPointer<const ConstraintMatrix,ResidualSimple<VECTOR> > MeshWorker::Assembler::ResidualSimple< VECTOR >::constraints
private

A pointer to the object containing constraints.

Definition at line 121 of file simple.h.


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