![]() |
Reference documentation for deal.II version 8.1.0
|
#include <local_results.h>
Public Member Functions | |
unsigned int | n_values () const |
unsigned int | n_vectors () const |
unsigned int | n_matrices () const |
unsigned int | n_quadrature_points () const |
unsigned int | n_quadrature_values () const |
number & | value (unsigned int i) |
number | value (unsigned int i) const |
BlockVector< number > & | vector (unsigned int i) |
const BlockVector< number > & | vector (unsigned int i) const |
MatrixBlock< FullMatrix< number > > & | matrix (unsigned int i, bool external=false) |
const MatrixBlock< FullMatrix< number > > & | matrix (unsigned int i, bool external=false) const |
Table< 2, number > & | quadrature_values () |
number & | quadrature_value (unsigned int k, unsigned int i) |
number | quadrature_value (unsigned int k, unsigned int i) const |
void | initialize_numbers (const unsigned int n) |
void | initialize_vectors (const unsigned int n) |
void | initialize_matrices (unsigned int n, bool both) |
template<class MATRIX > | |
void | initialize_matrices (const MatrixBlockVector< MATRIX > &matrices, bool both) |
template<class MATRIX > | |
void | initialize_matrices (const MGMatrixBlockVector< MATRIX > &matrices, bool both) |
void | initialize_quadrature (unsigned int np, unsigned int nv) |
void | reinit (const BlockIndices &local_sizes) |
template<class STREAM > | |
void | print_debug (STREAM &os) const |
std::size_t | memory_consumption () const |
Private Member Functions | |
void | initialize_local (MatrixBlock< FullMatrix< number > > &M, const unsigned int row, const unsigned int col) |
Private Attributes | |
std::vector< number > | J |
std::vector< BlockVector< number > > | R |
std::vector< MatrixBlock< FullMatrix< number > > > | M1 |
std::vector< MatrixBlock< FullMatrix< number > > > | M2 |
Table< 2, number > | quadrature_data |
The class providing the scrapbook to fill with results of local integration. Depending on the task the mesh worker loop is performing, local results can be of different types. They have in common that they are the result of local integration over a cell or face. Their actual type is determined by the Assember using them. It is also the assembler setting the arrays of local results to the sizes needed. Here is a list of the provided data types and the assembers using them:
n_values() numbers accessed with value(), and stored in the data member J.
false
. These are stored in M1, and they are the matrices coupling degrees of freedom in the same cell. For fluxes across faces, there is an additional set M2 of matrices of the same size, but the dimension of the matrices being according to the degrees of freedom on both cells. These are accessed with matrix(), using the second argument true
. The local matrices initialized by reinit() of the info object and then assembled into the global system by Assembler classes.
Definition at line 217 of file local_results.h.
|
inline |
The number of scalar values.
This number is set to a nonzero value by Assember::CellsAndFaces
Definition at line 539 of file local_results.h.
|
inline |
The number of vectors.
This number is set to a nonzero value by Assember::ResidualSimple and Assember::ResidualLocalBlocksToGlobalBlocks.
Definition at line 548 of file local_results.h.
|
inline |
The number of matrices.
Definition at line 557 of file local_results.h.
|
inline |
The number of quadrature points in quadrature_values().
Definition at line 566 of file local_results.h.
|
inline |
The number of values in each quadrature point in quadrature_values().
Definition at line 575 of file local_results.h.
|
inline |
Access scalar value at index i
.
Definition at line 584 of file local_results.h.
|
inline |
Read scalar value at index i
.
Definition at line 637 of file local_results.h.
|
inline |
Access vector at index i
.
Definition at line 594 of file local_results.h.
|
inline |
Read vector at index i
.
Definition at line 647 of file local_results.h.
|
inline |
Access matrix at index i
. For results on internal faces, a true value for external
refers to the flux between cells, while false refers to entries coupling inside the cell.
Definition at line 604 of file local_results.h.
|
inline |
Read matrix at index i
. For results on internal faces, a true value for external
refers to the flux between cells, while false refers to entries coupling inside the cell.
Definition at line 657 of file local_results.h.
|
inline |
Access to the vector quadrature_data of data in quadrature points, organized such that there is a vector for each point, containing one entry for each component.
Definition at line 628 of file local_results.h.
|
inline |
Access the ith value at quadrature point k
Definition at line 619 of file local_results.h.
|
inline |
Read the ith value at quadrature point k
Definition at line 672 of file local_results.h.
|
inline |
Initialize the vector with scalar values.
Definition at line 440 of file local_results.h.
|
inline |
Initialize the vector with vector values.
Definition at line 448 of file local_results.h.
|
inline |
Allocate n
local matrices. Additionally, set their block row and column coordinates to zero. The matrices themselves are resized by reinit().
Definition at line 509 of file local_results.h.
|
inline |
Allocate a local matrix for each of the global ones in matrices
. Additionally, set their block row and column coordinates. The matrices themselves are resized by reinit().
Definition at line 457 of file local_results.h.
|
inline |
Allocate a local matrix for each of the global level objects in matrices
. Additionally, set their block row and column coordinates. The matrices themselves are resized by reinit().
Definition at line 483 of file local_results.h.
|
inline |
Initialize quadrature values to nv
values in np
quadrature points.
Definition at line 530 of file local_results.h.
void MeshWorker::LocalResults< number >::reinit | ( | const BlockIndices & | local_sizes | ) |
std::size_t MeshWorker::LocalResults< number >::memory_consumption | ( | ) | const |
The memory used by this object.
|
private |
Initialize a single local matrix block. A helper function for initialize()
|
private |
The local numbers, computed on a cell or on a face.
Definition at line 408 of file local_results.h.
|
private |
The local vectors. This field is public, so that local integrators can write to it.
Definition at line 414 of file local_results.h.
|
private |
The local matrices coupling degrees of freedom in the cell itself or within the first cell on a face.
Definition at line 420 of file local_results.h.
|
private |
The local matrices coupling test functions on the cell with trial functions on the other cell.
Only used on interior faces.
Definition at line 428 of file local_results.h.
|
private |
Values in quadrature points for writing into patch data.
Definition at line 433 of file local_results.h.