KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::TaylorHoodPreconditioner< X > Class Template Reference

Constraint preconditioner for Taylor-Hood discretizations of incompressibility problems. More...

#include <taylorHoodPreconditioner.hh>

Inheritance diagram for Kaskade::TaylorHoodPreconditioner< X >:

Public Types

using domain_type = X
 The domain type \( U \times P \) of the saddle point system.
using range_type = domain_type
 The range type \( U \times P \) of the saddle point system.
using field_type = typename X::field_type
using Scalar = field_type

Public Member Functions

template<class AGOP, class VelocitySpace>
 TaylorHoodPreconditioner (AGOP const &K, VelocitySpace const &velocitySpace)
 Constructor.
template<class MatrixA, class MatrixB, class MatrixBt, class VelocitySpace>
 TaylorHoodPreconditioner (MatrixA const &A, MatrixB const &B, MatrixBt const &Bt, VelocitySpace const &velocitySpace)
 Constructor.
virtual void apply (domain_type &x, range_type const &y) override
 Appliess the symmetric preconditioner as \( x \leftarrow \hat{K}^{-1} y \).
void apply (domain_type &x, range_type const &y, TaylorHoodPreconditionerFlavour flavour) const
 Applies the preconditioner either as presmoother, postsmoother, or in its symmetric flavour.
virtual bool requiresInitializedInput () const
virtual void pre (domain_type &x, range_type &) override
virtual void post (domain_type &x) override
virtual Dune::SolverCategory::Category category () const override

Static Public Attributes

static constexpr int dim = X::template Component<0>::block_type::dimension
 The dimension of the velocity component.

Detailed Description

template<class X>
class Kaskade::TaylorHoodPreconditioner< X >

Constraint preconditioner for Taylor-Hood discretizations of incompressibility problems.

Incompressibility problems like Stokes, Navier-Stokes, or Lamé-Navier equations lead to symmetric saddle point problems

\[ \begin{bmatrix} A & B^T \\ B \end{bmatrix} \begin{bmatrix}u \\ p \end{bmatrix} = \begin{bmatrix} f \\ 0 \end{bmatrix}, \]

with \( A \in \mathbb{R}^{n\times n}\) spd and \( B\in\mathbb{R}^{m\times n}\) full rank, \( m < n \), or \( K x = b \) for short. This class is an overlapping restricted additive Schwarz (RAS) smoother \( \hat K^{-1} \) of the form \( \hat{K}^{-1} = \sum_i P_i K_i^{-1} R_i^T \), where \( i \) runs through all grid vertices (or, equivalently, the associated patches around the vertices), \( R_i^T \) is a corresponding restriction, \( P_i \) a corresponding prolongation, and \( K_i \) is a submatrix of \( K \) corresponding to the velocity degrees of freedom local to the patch \( i \) and pressure degrees of freedom incident to the velocity dofs.

The preconditioner comes in three flavours, to be chosen by providing a TaylorHoodPreconditionerFlavour flag to the apply() method. They differ in the choice of restriction \( R_i^T \) and prolongation \( P_i \), which are given in terms of a (pseudo-diagonal) matrix \( D \) counting for each (velocity and pressure) dof the number of patches containing the dof. With a slight abuse of notation, we denote by powers of \( D \) elementwise powers.

  • SYMMETRIC: \( R_i = P_i = D_i^{-1/2} \). This realizes a symmetric preconditioner. Using the inverse square root weighting of residuals and corrections is beneficial in the additive preconditioner (in contrast to using \( D^{0} \) for having a more balanced contribution of all degrees of freedom. The symmetric flavour is no constraint preconditioner - even if the constraint residual vanishes, the correction may leave the nullspace of \( B \).
  • PRESMOOTH: \( R_i = D_i^0, \, P_i = D_i^{-1} \) leads to a nonsymmetric smoother. This is not even a restricted constraint preconditioner.
  • POSTSMOOTH: \( R_i = D_i^{-1} , \, P_i = D_i^0 \) is again a nonsymmetric smoother, but with the remarkable property of being a constraint preconditioner, i.e. it computes corrections (or preconditioned residuals) \( [\hat u, \hat p ]^T = \hat{K}^{-1} b \) satisfying \( B \hat u = 0 \). This is due to the construction that all incident pressure (constraint) dofs are included into the patches - thus, the constraint right hand side (pressure residual) is exactly distributed to the patches and there completely eliminated.

If PRESMOOTH and POSTSMOOTH flavours (which are transposes of each other) are applied multiplicatively, the resulting two-step preconditioner is a symmetric constraint preconditioner. Symmetry is obtained as in symmetric Gauß-Seidel. The constrains are satisfied because the postsmoother ensures this.

Since \( A \) is assumed to be positive definite (at least on the nullspace of \( B \), one may wish to apply a conjugate gradient solver on \( \mathop\mathrm{ker} B \). This is achieved by projecting the start value onto the nullspace by applying the (nonsymmetric) preconditioner once with flavour POSTSMOOTH, and subsequently applying the symmetrized multiplicative version.

See also
SymmetricTaylorHoodPreconditioner.

Note that this does not (yet) include a coarse space correction, and is therefore rather a smoother.

Template Parameters
Xthe linear space of velocity and pressure \( U \times P \). This is a LinearProductSpace of Dune::BlockVector<Dune::FieldVector>, with U entries of dimension dim and P entries of dimension 1. This is, e.g., returned by the assembler's rhs method.

Literature:

  • Cai & Sarkis. A Restricted Additive Schwarz Preconditioner for General Sparse Linear Systems. SISC 1999.
  • Saberi, Meschke & Vogel. A restricted additive Vanka smoother for geometric multigrid. JCOMP 2022.

Definition at line 211 of file taylorHoodPreconditioner.hh.

Member Typedef Documentation

◆ domain_type

template<class X>
using Kaskade::TaylorHoodPreconditioner< X >::domain_type = X

The domain type \( U \times P \) of the saddle point system.

Definition at line 224 of file taylorHoodPreconditioner.hh.

◆ field_type

template<class X>
using Kaskade::TaylorHoodPreconditioner< X >::field_type = typename X::field_type

Definition at line 235 of file taylorHoodPreconditioner.hh.

◆ range_type

template<class X>
using Kaskade::TaylorHoodPreconditioner< X >::range_type = domain_type

The range type \( U \times P \) of the saddle point system.

Note that this is (on the discrete linear algebra side) the same as the domain type, (since the saddle point system is symmetric), even though the preconditioner itself is not necessarily symmetric.

Definition at line 233 of file taylorHoodPreconditioner.hh.

◆ Scalar

template<class X>
using Kaskade::TaylorHoodPreconditioner< X >::Scalar = field_type

Definition at line 236 of file taylorHoodPreconditioner.hh.

Constructor & Destructor Documentation

◆ TaylorHoodPreconditioner() [1/2]

template<class X>
template<class AGOP, class VelocitySpace>
Kaskade::TaylorHoodPreconditioner< X >::TaylorHoodPreconditioner ( AGOP const & K,
VelocitySpace const & velocitySpace )
inline

Constructor.

Template Parameters
AGOPan AssembledGalerkinOperator type

Definition at line 248 of file taylorHoodPreconditioner.hh.

◆ TaylorHoodPreconditioner() [2/2]

template<class X>
template<class MatrixA, class MatrixB, class MatrixBt, class VelocitySpace>
Kaskade::TaylorHoodPreconditioner< X >::TaylorHoodPreconditioner ( MatrixA const & A,
MatrixB const & B,
MatrixBt const & Bt,
VelocitySpace const & velocitySpace )
inline

Constructor.

Template Parameters
MatrixAthe type of matrix \( A \) with \( 1 \times 1 \) sized entries. Such matrices are obtained from the assembler (or AssembledGalerkinOperator).

Definition at line 262 of file taylorHoodPreconditioner.hh.

Member Function Documentation

◆ apply() [1/2]

template<class X>
virtual void Kaskade::TaylorHoodPreconditioner< X >::apply ( domain_type & x,
range_type const & y )
inlineoverridevirtual

Appliess the symmetric preconditioner as \( x \leftarrow \hat{K}^{-1} y \).

Parameters
[out]xthe (approximate) solution
[in]ythe right hand side

Definition at line 348 of file taylorHoodPreconditioner.hh.

Referenced by apply().

◆ apply() [2/2]

template<class X>
void Kaskade::TaylorHoodPreconditioner< X >::apply ( domain_type & x,
range_type const & y,
TaylorHoodPreconditionerFlavour flavour ) const
inline

Applies the preconditioner either as presmoother, postsmoother, or in its symmetric flavour.

Parameters
[out]xthe (approximate) solution
[in]ythe right hand side
[in]flavourchooses between symmetric, pre- and post-smoothing options

Definition at line 360 of file taylorHoodPreconditioner.hh.

◆ category()

template<class X>
virtual Dune::SolverCategory::Category Kaskade::TaylorHoodPreconditioner< X >::category ( ) const
inlineoverridevirtual

Definition at line 434 of file taylorHoodPreconditioner.hh.

◆ post()

template<class X>
virtual void Kaskade::TaylorHoodPreconditioner< X >::post ( domain_type & x)
inlineoverridevirtual

Definition at line 433 of file taylorHoodPreconditioner.hh.

◆ pre()

template<class X>
virtual void Kaskade::TaylorHoodPreconditioner< X >::pre ( domain_type & x,
range_type &  )
inlineoverridevirtual

Definition at line 432 of file taylorHoodPreconditioner.hh.

◆ requiresInitializedInput()

template<class X>
virtual bool Kaskade::TaylorHoodPreconditioner< X >::requiresInitializedInput ( ) const
inlinevirtual

Definition at line 427 of file taylorHoodPreconditioner.hh.

Member Data Documentation

◆ dim

template<class X>
int Kaskade::TaylorHoodPreconditioner< X >::dim = X::template Component<0>::block_type::dimension
staticconstexpr

The dimension of the velocity component.

Definition at line 219 of file taylorHoodPreconditioner.hh.

Referenced by TaylorHoodPreconditioner().


The documentation for this class was generated from the following file: