Functions
LocalIntegrators::Laplace Namespace Reference

Local integrators related to the Laplacian and its DG formulations. More...

Functions

template<int dim>
void cell_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, const double factor=1.)
template<int dim>
void nitsche_matrix (FullMatrix< double > &M, const FEValuesBase< dim > &fe, double penalty, double factor=1.)
template<int dim>
void nitsche_residual (Vector< double > &result, const FEValuesBase< dim > &fe, const VectorSlice< const std::vector< std::vector< double > > > &input, const VectorSlice< const std::vector< std::vector< Tensor< 1, dim > > > > &Dinput, const VectorSlice< const std::vector< std::vector< double > > > &data, double penalty, double factor=1.)
template<int dim>
void nitsche_residual (Vector< double > &result, const FEValuesBase< dim > &fe, const std::vector< double > &input, const std::vector< Tensor< 1, dim > > &Dinput, const std::vector< double > &data, double penalty, double factor=1.)
template<int dim>
void ip_matrix (FullMatrix< double > &M11, FullMatrix< double > &M12, FullMatrix< double > &M21, FullMatrix< double > &M22, const FEValuesBase< dim > &fe1, const FEValuesBase< dim > &fe2, double penalty, double factor1=1., double factor2=-1.)
template<int dim>
double compute_penalty (const MeshWorker::DoFInfo< dim > &dinfo1, const MeshWorker::DoFInfo< dim > &dinfo2, unsigned int deg1, unsigned int deg2)

Detailed Description

Local integrators related to the Laplacian and its DG formulations.

Author:
Guido Kanschat
Date:
2010

Function Documentation

template<int dim>
void LocalIntegrators::Laplace::nitsche_matrix ( FullMatrix< double > &  M,
const FEValuesBase< dim > &  fe,
double  penalty,
double  factor = 1. 
)
template<int dim>
void LocalIntegrators::Laplace::nitsche_residual ( Vector< double > &  result,
const FEValuesBase< dim > &  fe,
const VectorSlice< const std::vector< std::vector< double > > > &  input,
const VectorSlice< const std::vector< std::vector< Tensor< 1, dim > > > > &  Dinput,
const VectorSlice< const std::vector< std::vector< double > > > &  data,
double  penalty,
double  factor = 1. 
)

Weak boundary condition for the Laplace operator by Nitsche, vector valued version, namely on the face F the vector

\[ \int_F \Bigl(\gamma (u-g) v - \partial_n u v - (u-g) \partial_n v\Bigr)\;ds. \]

Here, u is the finite element function whose values and gradient are given in the arguments input and Dinput, respectively. g is the inhomogeneous boundary value in the argument data. $\gamma$ is the usual penalty parameter.

References AssertVectorVectorDimension, FEValuesBase< dim, spacedim >::dofs_per_cell, FEValuesBase< dim, spacedim >::get_fe(), FEValuesBase< dim, spacedim >::JxW(), FEValuesBase< dim, spacedim >::n_quadrature_points, FEValuesBase< dim, spacedim >::normal_vector(), FEValuesBase< dim, spacedim >::shape_grad_component(), and FEValuesBase< dim, spacedim >::shape_value_component().

template<int dim>
void LocalIntegrators::Laplace::nitsche_residual ( Vector< double > &  result,
const FEValuesBase< dim > &  fe,
const std::vector< double > &  input,
const std::vector< Tensor< 1, dim > > &  Dinput,
const std::vector< double > &  data,
double  penalty,
double  factor = 1. 
)

Weak boundary condition for the Laplace operator by Nitsche, scalar version, namely on the face F the vector

\[ \int_F \Bigl(\gamma (u-g) v - \partial_n u v - (u-g) \partial_n v\Bigr)\;ds. \]

Here, u is the finite element function whose values and gradient are given in the arguments input and Dinput, respectively. g is the inhomogeneous boundary value in the argument data. $\gamma$ is the usual penalty parameter.

References AssertDimension, FEValuesBase< dim, spacedim >::dofs_per_cell, FEValuesBase< dim, spacedim >::JxW(), FEValuesBase< dim, spacedim >::n_quadrature_points, FEValuesBase< dim, spacedim >::normal_vector(), FEValuesBase< dim, spacedim >::shape_grad(), and FEValuesBase< dim, spacedim >::shape_value().

template<int dim>
void LocalIntegrators::Laplace::ip_matrix ( FullMatrix< double > &  M11,
FullMatrix< double > &  M12,
FullMatrix< double > &  M21,
FullMatrix< double > &  M22,
const FEValuesBase< dim > &  fe1,
const FEValuesBase< dim > &  fe2,
double  penalty,
double  factor1 = 1.,
double  factor2 = -1. 
)

Flux for the interior penalty method for the Laplacian, namely on the face F the matrices associated with the bilinear form

\[ \int_F \Bigl( \gamma [u][v] - \{\nabla u\}[v\mathbf n] - [u\mathbf n]\{\nabla v\} \Bigr) \; ds. \]

The penalty parameter should always be the mean value of the penalties needed for stability on each side. In the case of constant coefficients, it can be computed using compute_penalty().

If factor2 is missing or negative, the factor is assumed the same on both sides. If factors differ, note that the penalty parameter has to be computed accordingly.

Author:
Guido Kanschat
Date:
2008, 2009, 2010

References AssertDimension, FEValuesBase< dim, spacedim >::dofs_per_cell, FEValuesBase< dim, spacedim >::get_fe(), FEValuesBase< dim, spacedim >::JxW(), FullMatrix< number >::m(), FullMatrix< number >::n(), FEValuesBase< dim, spacedim >::n_quadrature_points, FEValuesBase< dim, spacedim >::normal_vector(), FEValuesBase< dim, spacedim >::shape_grad(), FEValuesBase< dim, spacedim >::shape_grad_component(), FEValuesBase< dim, spacedim >::shape_value(), and FEValuesBase< dim, spacedim >::shape_value_component().

template<int dim>
double LocalIntegrators::Laplace::compute_penalty ( const MeshWorker::DoFInfo< dim > &  dinfo1,
const MeshWorker::DoFInfo< dim > &  dinfo2,
unsigned int  deg1,
unsigned int  deg2 
)

Auxiliary function computing the penalty parameter for interior penalty methods on rectangles.

Computation is done in two steps: first, we compute on each cell Zi the value Pi = pi(pi+1)/hi, where pi is the polynomial degree on cell Zi and hi is the length of Zi orthogonal to the current face.

Author:
Guido Kanschat
Date:
2010

References Assert, MeshWorker::DoFInfo< dim, spacedim, number >::cell, StandardExceptions::ExcInternalError(), MeshWorker::DoFInfo< dim, spacedim, number >::face, and MeshWorker::DoFInfo< dim, spacedim, number >::face_number.


deal.II documentation generated on Fri Aug 12 2011 15:01:09 by doxygen 1.7.4