Local integrators related to L2-inner products. More...
Functions | |
template<int dim> | |
void | mass_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, const double factor=1.) |
template<int dim> | |
void | weighted_mass_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, const std::vector< double > &weights) |
template<int dim, typename number> | |
void | L2 (Vector< number > &result, const FEValuesBase< dim > &fe, const std::vector< double > &input, const double factor=1.) |
template<int dim, typename number> | |
void | L2 (Vector< number > &result, const FEValuesBase< dim > &fe, const ArrayView< const std::vector< double > > &input, const double factor=1.) |
template<int dim> | |
void | jump_matrix (FullMatrix< double > &M11, FullMatrix< double > &M12, FullMatrix< double > &M21, FullMatrix< double > &M22, const FEValuesBase< dim > &fe1, const FEValuesBase< dim > &fe2, const double factor1=1., const double factor2=1.) |
Local integrators related to L2-inner products.
void LocalIntegrators::L2::mass_matrix | ( | FullMatrix< double > & | M, |
const FEValuesBase< dim > & | fe, | ||
const double | factor = 1. ) |
The mass matrix for scalar or vector values finite elements.
Likewise, this term can be used on faces, where it computes the integrals
M | The mass matrix obtained as result. |
fe | The FEValues object describing the local trial function space. update_values and update_JxW_values must be set. |
factor | A constant that multiplies the mass matrix. |
void LocalIntegrators::L2::weighted_mass_matrix | ( | FullMatrix< double > & | M, |
const FEValuesBase< dim > & | fe, | ||
const std::vector< double > & | weights ) |
The weighted mass matrix for scalar or vector values finite elements.
Likewise, this term can be used on faces, where it computes the integrals
M | The weighted mass matrix obtained as result. |
fe | The FEValues object describing the local trial function space. update_values and update_JxW_values must be set. |
weights | The weights, ![]() |
void LocalIntegrators::L2::L2 | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fe, | ||
const std::vector< double > & | input, | ||
const double | factor = 1. ) |
L2-inner product for scalar functions.
result | The vector obtained as result. |
fe | The FEValues object describing the local trial function space. update_values and update_JxW_values must be set. |
input | The representation of ![]() |
factor | A constant that multiplies the result. |
void LocalIntegrators::L2::L2 | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fe, | ||
const ArrayView< const std::vector< double > > & | input, | ||
const double | factor = 1. ) |
L2-inner product for a slice of a vector valued right hand side.
result | The vector obtained as result. |
fe | The FEValues object describing the local trial function space. update_values and update_JxW_values must be set. |
input | The vector valued representation of ![]() |
factor | A constant that multiplies the result. |
void LocalIntegrators::L2::jump_matrix | ( | FullMatrix< double > & | M11, |
FullMatrix< double > & | M12, | ||
FullMatrix< double > & | M21, | ||
FullMatrix< double > & | M22, | ||
const FEValuesBase< dim > & | fe1, | ||
const FEValuesBase< dim > & | fe2, | ||
const double | factor1 = 1., | ||
const double | factor2 = 1. ) |
The jump matrix between two cells for scalar or vector values finite elements. Note that the factor
Using appropriate weights, this term can be used to penalize violation of conformity in H1.
Note that for the parameters that follow, the external matrix refers to the flux between cells, while the internal matrix refers to entries coupling inside the cell.
M11 | The internal matrix for the first cell obtained as result. |
M12 | The external matrix for the first cell obtained as result. |
M21 | The external matrix for the second cell obtained as result. |
M22 | The internal matrix for the second cell obtained as result. |
fe1 | The FEValues object describing the local trial function space for the first cell. update_values and update_JxW_values must be set. |
fe2 | The FEValues object describing the local trial function space for the second cell. update_values and update_JxW_values must be set. |
factor1 | A constant that multiplies the shape functions for the first cell. |
factor2 | A constant that multiplies the shape functions for the second cell. |