Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR > Class Template Reference

#include <assembler.h>

Public Member Functions

void initialize (const BlockInfo *block_info, NamedData< VECTOR * > &residuals)
 
void initialize (const ConstraintMatrix &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)
 

Private Member Functions

void assemble (VECTOR &global, const BlockVector< double > &local, const std::vector< types::global_dof_index > &dof)
 

Private Attributes

NamedData< SmartPointer
< VECTOR,
ResidualLocalBlocksToGlobalBlocks
< VECTOR > > > 
residuals
 
SmartPointer< const BlockInfo,
ResidualLocalBlocksToGlobalBlocks
< VECTOR > > 
block_info
 
SmartPointer< const
ConstraintMatrix,
ResidualLocalBlocksToGlobalBlocks
< VECTOR > > 
constraints
 

Detailed Description

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

Assemble local residuals into global residuals.

The global residuals are expected as an FEVectors object. The local residuals are block vectors.

Depending on whether the BlockInfo object was initialize with BlockInfo::initialize_local(), the comprehensive or block data model is used locally.

In the block model, each of the blocks of the local vectors corresponds to the restriction of a single block of the system to this cell (GlossBlock). Thus, the size of this local block is the number of degrees of freedom of the corresponding base element of the FESystem.

Todo:
Comprehensive model currently not implemented.
Author
Guido Kanschat, 2009

Definition at line 110 of file assembler.h.

Member Function Documentation

template<class VECTOR >
void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::initialize ( const BlockInfo block_info,
NamedData< VECTOR * > &  residuals 
)
inline

Copy the BlockInfo and the matrix pointers into local variables.

Definition at line 577 of file assembler.h.

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

Initialize the constraints.

Definition at line 586 of file assembler.h.

template<class VECTOR >
template<class DOFINFO >
void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< 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 596 of file assembler.h.

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

Assemble the local residuals into the global residuals.

Definition at line 634 of file assembler.h.

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

Assemble both local residuals into the global residuals.

Definition at line 645 of file assembler.h.

template<class VECTOR >
void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::assemble ( VECTOR &  global,
const BlockVector< double > &  local,
const std::vector< types::global_dof_index > &  dof 
)
inlineprivate

Assemble a single local residual into the global.

Definition at line 604 of file assembler.h.

Member Data Documentation

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

The global matrices, stored as a vector of pointers.

Definition at line 170 of file assembler.h.

template<class VECTOR>
SmartPointer<const BlockInfo, ResidualLocalBlocksToGlobalBlocks<VECTOR> > MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::block_info
private

A pointer to the object containing the block structure.

Definition at line 176 of file assembler.h.

A pointer to the object containing constraints.

Definition at line 181 of file assembler.h.


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