A helper class assembling local matrices into global multilevel matrices. This class is the multilevel equivalent of MatrixLocalBlocksToGlobalBlocks and documentation of that class applies here to a large extend.
The global matrices are expected as a vector of pointers to MatrixBlock objects, each containing a MGLevelObject with matrices with a function corresponding to SparseMatrix::add() and information on the block row and column this matrix represents in a block system.
The local matrices are a similar vector of MatrixBlock objects, but containing a FullMatrix.
If local refinement occurs, the Multigrid method needs more matrices, two for continuous elements and another two if numerical fluxes are computed on interfaces. The second set can be added using initialize_edge_flux(). Once added, the contributions in all participating matrices will be assembled from the cell and face matrices automatically.
| typedef MGMatrixBlockVector<MATRIX> MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::MatrixPtrVector |
| typedef SmartPointer<MatrixPtrVector, MGMatrixLocalBlocksToGlobalBlocks<MATRIX,number> > MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::MatrixPtrVectorPtr |
| MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::MGMatrixLocalBlocksToGlobalBlocks | ( | double | threshold = 1.e-12 | ) | [inline] |
Constructor, initializing the threshold, which limits how small numbers may be to be entered into the matrix.
| void MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::initialize | ( | const BlockInfo * | block_info, |
| MatrixPtrVector & | matrices | ||
| ) | [inline] |
Copy the BlockInfo and the matrix pointers into local variables and initialize cell matrix vectors.
References AssertDimension.
| void MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::initialize_edge_flux | ( | MatrixPtrVector & | up, |
| MatrixPtrVector & | down | ||
| ) | [inline] |
Multigrid methods on locally refined meshes need additional matrices. For discontinuous Galerkin methods, these are two flux matrices across the refinement edge, which are set by this method.
| void MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::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::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::assemble | ( | const DOFINFO & | info | ) | [inline] |
Assemble the local matrices into the global matrices.
References internal::assemble().
| void MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::assemble | ( | const DOFINFO & | info1, |
| const DOFINFO & | info2 | ||
| ) | [inline] |
Assemble all local matrices into the global matrices.
References internal::assemble(), Assert, StandardExceptions::ExcNotImplemented(), and LAPACKSupport::matrix.
| void MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::assemble | ( | MATRIX & | global, |
| const FullMatrix< number > & | local, | ||
| unsigned int | block_row, | ||
| unsigned int | block_col, | ||
| const std::vector< unsigned int > & | dof1, | ||
| const std::vector< unsigned int > & | dof2, | ||
| unsigned int | level1, | ||
| unsigned int | level2, | ||
| bool | transpose = false |
||
| ) | [inline, private] |
Assemble a single local matrix into a global one.
MatrixPtrVectorPtr MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::matrices [private] |
The level matrices, stored as a vector of pointers.
MatrixPtrVectorPtr MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::flux_down [private] |
The flux matrix between the fine and the coarse level at refinement edges.
MatrixPtrVectorPtr MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::flux_up [private] |
The flux matrix between the coarse and the fine level at refinement edges.
MatrixPtrVectorPtr MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::interface_out [private] |
The interface matrix between the fine and the coarse level at refinement edges.
MatrixPtrVectorPtr MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::interface_in [private] |
The interface matrix between the coarse and the fine level at refinement edges.
SmartPointer<const BlockInfo, MGMatrixLocalBlocksToGlobalBlocks<MATRIX, number> > MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::block_info [private] |
A pointer to the object containing the block structure.
const double MeshWorker::Assembler::MGMatrixLocalBlocksToGlobalBlocks< MATRIX, number >::threshold [private] |
The smallest positive number that will be entered into the global matrix. All smaller absolute values will be treated as zero and will not be assembled.
documentation generated on Fri Aug 12 2011 15:01:09 by
doxygen
1.7.4