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 interior_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< unsigned int > &dof) |
Private Attributes | |
| NamedData< SmartPointer < VECTOR, ResidualLocalBlocksToGlobalBlocks < VECTOR > > > | residuals |
| SmartPointer< const BlockInfo, ResidualLocalBlocksToGlobalBlocks < VECTOR > > | block_info |
| SmartPointer< const ConstraintMatrix, ResidualLocalBlocksToGlobalBlocks < VECTOR > > | constraints |
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.
| void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::initialize | ( | const BlockInfo * | block_info, |
| NamedData< VECTOR * > & | residuals | ||
| ) | [inline] |
Copy the BlockInfo and the matrix pointers into local variables.
| void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::initialize | ( | const ConstraintMatrix & | constraints | ) | [inline] |
Initialize the constraints.
| void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::initialize_info | ( | DOFINFO & | info, |
| bool | interior_face | ||
| ) | const [inline] |
Initialize the local data in the DoFInfo object used later for assembling.
The second parameter is used to distinguish between the data used on cells and boundary faces on the one hand and interior faces on the other. Interior faces may require additional data being initialized.
| void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::assemble | ( | const DOFINFO & | info | ) | [inline] |
Assemble the local residuals into the global residuals.
References internal::assemble().
| void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::assemble | ( | const DOFINFO & | info1, |
| const DOFINFO & | info2 | ||
| ) | [inline] |
Assemble both local residuals into the global residuals.
References internal::assemble().
| void MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::assemble | ( | VECTOR & | global, |
| const BlockVector< double > & | local, | ||
| const std::vector< unsigned int > & | dof | ||
| ) | [inline, private] |
Assemble a single local residual into the global.
References BlockVectorBase< Vector< Number > >::block(), and BlockVectorBase< Vector< Number > >::n_blocks().
NamedData<SmartPointer<VECTOR, ResidualLocalBlocksToGlobalBlocks<VECTOR> > > MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::residuals [private] |
The global matrices, stored as a vector of pointers.
SmartPointer<const BlockInfo, ResidualLocalBlocksToGlobalBlocks<VECTOR> > MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::block_info [private] |
A pointer to the object containing the block structure.
SmartPointer<const ConstraintMatrix, ResidualLocalBlocksToGlobalBlocks<VECTOR> > MeshWorker::Assembler::ResidualLocalBlocksToGlobalBlocks< VECTOR >::constraints [private] |
A pointer to the object containing constraints.
documentation generated on Fri Aug 12 2011 15:01:09 by
doxygen
1.7.4