![]() |
Reference documentation for deal.II version 8.1.0
|
Local integrators related to the divergence operator and its trace. More...
Functions | |
template<int dim> | |
Tensor< 1, dim > | grad_div (const Tensor< 2, dim > &h0, const Tensor< 2, dim > &h1, const Tensor< 2, dim > &h2) |
template<int dim> | |
void | cell_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, const FEValuesBase< dim > &fetest, double factor=1.) |
template<int dim, typename number > | |
void | cell_residual (Vector< number > &result, const FEValuesBase< dim > &fetest, const VectorSlice< const std::vector< std::vector< Tensor< 1, dim > > > > &input, const double factor=1.) |
template<int dim, typename number > | |
void | cell_residual (Vector< number > &result, const FEValuesBase< dim > &fetest, const VectorSlice< const std::vector< std::vector< double > > > &input, const double factor=1.) |
template<int dim> | |
void | gradient_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, const FEValuesBase< dim > &fetest, double factor=1.) |
template<int dim, typename number > | |
void | gradient_residual (Vector< number > &result, const FEValuesBase< dim > &fetest, const std::vector< Tensor< 1, dim > > &input, const double factor=1.) |
template<int dim, typename number > | |
void | gradient_residual (Vector< number > &result, const FEValuesBase< dim > &fetest, const std::vector< double > &input, const double factor=1.) |
template<int dim> | |
void | u_dot_n_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, const FEValuesBase< dim > &fetest, double factor=1.) |
template<int dim, typename number > | |
void | u_dot_n_residual (Vector< number > &result, const FEValuesBase< dim > &fe, const FEValuesBase< dim > &fetest, const VectorSlice< const std::vector< std::vector< double > > > &data, double factor=1.) |
template<int dim, typename number > | |
void | u_times_n_residual (Vector< number > &result, const FEValuesBase< dim > &fetest, const std::vector< double > &data, double factor=1.) |
template<int dim> | |
void | u_dot_n_matrix (FullMatrix< double > &M11, FullMatrix< double > &M12, FullMatrix< double > &M21, FullMatrix< double > &M22, const FEValuesBase< dim > &fe1, const FEValuesBase< dim > &fe2, const FEValuesBase< dim > &fetest1, const FEValuesBase< dim > &fetest2, double factor=1.) |
template<int dim> | |
void | grad_div_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, double factor=1.) |
template<int dim> | |
void | u_dot_n_jump_matrix (FullMatrix< double > &M11, FullMatrix< double > &M12, FullMatrix< double > &M21, FullMatrix< double > &M22, const FEValuesBase< dim > &fe1, const FEValuesBase< dim > &fe2, double factor=1.) |
template<int dim> | |
double | norm (const FEValuesBase< dim > &fe, const VectorSlice< const std::vector< std::vector< Tensor< 1, dim > > > > &Du) |
Local integrators related to the divergence operator and its trace.
Tensor<1,dim> LocalIntegrators::Divergence::grad_div | ( | const Tensor< 2, dim > & | h0, |
const Tensor< 2, dim > & | h1, | ||
const Tensor< 2, dim > & | h2 | ||
) |
Auxiliary function. Computes the grad-div-operator from a set of Hessians.
Definition at line 54 of file divergence.h.
void LocalIntegrators::Divergence::cell_matrix | ( | FullMatrix< double > & | M, |
const FEValuesBase< dim > & | fe, | ||
const FEValuesBase< dim > & | fetest, | ||
double | factor = 1. |
||
) |
Cell matrix for divergence. The derivative is on the trial function.
This is the strong divergence operator and the trial space should be at least Hdiv. The test functions may be discontinuous.
Definition at line 84 of file divergence.h.
void LocalIntegrators::Divergence::cell_residual | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fetest, | ||
const VectorSlice< const std::vector< std::vector< Tensor< 1, dim > > > > & | input, | ||
const double | factor = 1. |
||
) |
The residual of the divergence operator in strong form.
This is the strong divergence operator and the trial space should be at least Hdiv. The test functions may be discontinuous.
The function cell_matrix() is the Frechet derivative of this function with respect to the test functions.
Definition at line 130 of file divergence.h.
void LocalIntegrators::Divergence::cell_residual | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fetest, | ||
const VectorSlice< const std::vector< std::vector< double > > > & | input, | ||
const double | factor = 1. |
||
) |
The residual of the divergence operator in weak form.
This is the weak divergence operator and the test space should be at least H1. The trial functions may be discontinuous.
Definition at line 168 of file divergence.h.
void LocalIntegrators::Divergence::gradient_matrix | ( | FullMatrix< double > & | M, |
const FEValuesBase< dim > & | fe, | ||
const FEValuesBase< dim > & | fetest, | ||
double | factor = 1. |
||
) |
Cell matrix for gradient. The derivative is on the trial function.
This is the strong gradient and the trial space should be at least in H1. The test functions can be discontinuous.
Definition at line 203 of file divergence.h.
void LocalIntegrators::Divergence::gradient_residual | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fetest, | ||
const std::vector< Tensor< 1, dim > > & | input, | ||
const double | factor = 1. |
||
) |
The residual of the gradient operator in strong form.
This is the strong gradient operator and the trial space should be at least H1. The test functions may be discontinuous.
The function gradient_matrix() is the Frechet derivative of this function with respect to the test functions.
Definition at line 249 of file divergence.h.
void LocalIntegrators::Divergence::gradient_residual | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fetest, | ||
const std::vector< double > & | input, | ||
const double | factor = 1. |
||
) |
The residual of the gradient operator in weak form.
This is the weak gradient operator and the test space should be at least Hdiv. The trial functions may be discontinuous.
Definition at line 285 of file divergence.h.
void LocalIntegrators::Divergence::u_dot_n_matrix | ( | FullMatrix< double > & | M, |
const FEValuesBase< dim > & | fe, | ||
const FEValuesBase< dim > & | fetest, | ||
double | factor = 1. |
||
) |
The trace of the divergence operator, namely the product of the normal component of the vector valued trial space and the test space.
Definition at line 317 of file divergence.h.
void LocalIntegrators::Divergence::u_dot_n_residual | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fe, | ||
const FEValuesBase< dim > & | fetest, | ||
const VectorSlice< const std::vector< std::vector< double > > > & | data, | ||
double | factor = 1. |
||
) |
The trace of the divergence operator, namely the product of the normal component of the vector valued trial space and the test space.
Definition at line 358 of file divergence.h.
void LocalIntegrators::Divergence::u_times_n_residual | ( | Vector< number > & | result, |
const FEValuesBase< dim > & | fetest, | ||
const std::vector< double > & | data, | ||
double | factor = 1. |
||
) |
The trace of the gradient operator, namely the product of the normal component of the vector valued test space and the trial space.
Definition at line 398 of file divergence.h.
void LocalIntegrators::Divergence::u_dot_n_matrix | ( | FullMatrix< double > & | M11, |
FullMatrix< double > & | M12, | ||
FullMatrix< double > & | M21, | ||
FullMatrix< double > & | M22, | ||
const FEValuesBase< dim > & | fe1, | ||
const FEValuesBase< dim > & | fe2, | ||
const FEValuesBase< dim > & | fetest1, | ||
const FEValuesBase< dim > & | fetest2, | ||
double | factor = 1. |
||
) |
The trace of the divergence operator, namely the product of the jump of the normal component of the vector valued trial function and the mean value of the test function.
Definition at line 435 of file divergence.h.
void LocalIntegrators::Divergence::grad_div_matrix | ( | FullMatrix< double > & | M, |
const FEValuesBase< dim > & | fe, | ||
double | factor = 1. |
||
) |
The weak form of the grad-div operator penalizing volume changes
Definition at line 492 of file divergence.h.
void LocalIntegrators::Divergence::u_dot_n_jump_matrix | ( | FullMatrix< double > & | M11, |
FullMatrix< double > & | M12, | ||
FullMatrix< double > & | M21, | ||
FullMatrix< double > & | M22, | ||
const FEValuesBase< dim > & | fe1, | ||
const FEValuesBase< dim > & | fe2, | ||
double | factor = 1. |
||
) |
double LocalIntegrators::Divergence::norm | ( | const FEValuesBase< dim > & | fe, |
const VectorSlice< const std::vector< std::vector< Tensor< 1, dim > > > > & | Du | ||
) |
The L2-norm of the divergence over the quadrature set determined by the FEValuesBase object.
The vector is expected to consist of dim vectors of length equal to the number of quadrature points. The number of components of the finite element has to be equal to the space dimension.
Definition at line 591 of file divergence.h.