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

An inexact Uzawa type solver for solving symmetric saddle point systems. More...

#include <uzawa-old.hh>

Inheritance diagram for Kaskade::UzawaSolver< X, Y >:

Public Types

typedef LinearProductSpace< typename X::field_type, boost::fusion::vector< X, Y > > domain_type
typedef domain_type range_type
typedef X::field_type field_type
typedef field_type Scalar
typedef domain_type Domain
typedef range_type Range
using domain_type = LinearProductSpace<typename X::field_type,boost::fusion::vector<X,Y>>
 The domain type \( X \times Y \) of the Uzawa iteration.
using range_type = domain_type
typedef X::field_type field_type
typedef field_type Scalar
typedef domain_type Domain
typedef range_type Range

Public Member Functions

template<class A, class SolA, class B, class Bt, class PB>
 UzawaSolver (A &opA_, SolA &solA_, B &opB_, Bt &opBt_, PB &pb_, double reduction_, int maxit_, int verbose_)
virtual void apply (Domain &x, Range &b, Dune::InverseOperatorResult &res)
virtual void apply (Domain &x, Range &b, double reduction_, Dune::InverseOperatorResult &res)
void apply (Domain &x, Range &b)
virtual Dune::SolverCategory::Category category () const override
 returns the category of the operator
 UzawaSolver (Dune::LinearOperator< X, X > &A_, Dune::InverseOperator< X, X > &invA_, Dune::LinearOperator< X, Y > &B_, Dune::LinearOperator< Y, X > &Bt_, Dune::Preconditioner< Y, Y > &precS_, double reduction_, int maxit_, int verbose_)
 Constructor.
virtual void apply (Domain &x, Range &b, Dune::InverseOperatorResult &res) override
 Solves the saddle point system \( K x = b \).
virtual void apply (Domain &x, Range &b, double reduction_, Dune::InverseOperatorResult &res)
void apply (Domain &x, Range &b)
virtual Dune::SolverCategory::Category category () const override
 returns the category of the operator

Detailed Description

template<class X, class Y>
class Kaskade::UzawaSolver< X, Y >

An inexact Uzawa type solver for solving symmetric saddle point systems.

An inexact Uzawa solver for solving symmetric saddle point systems

\[ \begin{bmatrix} A & B^T \\ B & \end{bmatrix}\begin{bmatrix} u \\ \lambda \end{bmatrix} = \begin{bmatrix} f \\ g \end{bmatrix} \]

It implements an inexact preconditioned conjugate gradient method for the Schur complement \( BA^{-1}B^T\).

Template parameters:

  • X: the linear space of the primal variable \( u \)
  • Y: the linear space of the dual variable \( \lambda \)

    \[ \begin{array}{cc} A & B^T \\ B & \end{array}\begin{matrix}{c} u \\ \lambda \end{matrix} = \begin{matrix}{c} f \\ g \end{matrix} \]

It implements an inexact preconditioned conjugate gradient method for the Schur complement \( S = BA^{-1}B^T\). The iteration is terminated once the preconditioned residual energy drops below a prescribed reduction factor times the solution energy, i.e. \( r^T\hat S^{-1} S \hat S^{-1} r \le \mathrm{TOL}^2 p^T S p \).

Template Parameters
Xthe linear space of the primal variable \( u \)
Ythe linear space of the dual variable \( \lambda \)

Definition at line 50 of file uzawa-old.hh.

Member Typedef Documentation

◆ Domain [1/2]

template<class X, class Y>
typedef domain_type Kaskade::UzawaSolver< X, Y >::Domain

Definition at line 59 of file uzawa-old.hh.

◆ Domain [2/2]

template<class X, class Y>
typedef domain_type Kaskade::UzawaSolver< X, Y >::Domain

Definition at line 70 of file uzawa.hh.

◆ domain_type [1/2]

template<class X, class Y>
typedef LinearProductSpace<typename X::field_type,boost::fusion::vector<X,Y> > Kaskade::UzawaSolver< X, Y >::domain_type

Definition at line 55 of file uzawa-old.hh.

◆ domain_type [2/2]

template<class X, class Y>
using Kaskade::UzawaSolver< X, Y >::domain_type = LinearProductSpace<typename X::field_type,boost::fusion::vector<X,Y>>

The domain type \( X \times Y \) of the Uzawa iteration.

This is the LinearProductSpace of X and Y

Definition at line 66 of file uzawa.hh.

◆ field_type [1/2]

template<class X, class Y>
typedef X::field_type Kaskade::UzawaSolver< X, Y >::field_type

Definition at line 57 of file uzawa-old.hh.

◆ field_type [2/2]

template<class X, class Y>
typedef X::field_type Kaskade::UzawaSolver< X, Y >::field_type

Definition at line 68 of file uzawa.hh.

◆ Range [1/2]

template<class X, class Y>
typedef range_type Kaskade::UzawaSolver< X, Y >::Range

Definition at line 60 of file uzawa-old.hh.

◆ Range [2/2]

template<class X, class Y>
typedef range_type Kaskade::UzawaSolver< X, Y >::Range

Definition at line 71 of file uzawa.hh.

◆ range_type [1/2]

template<class X, class Y>
typedef domain_type Kaskade::UzawaSolver< X, Y >::range_type

Definition at line 56 of file uzawa-old.hh.

◆ range_type [2/2]

template<class X, class Y>
using Kaskade::UzawaSolver< X, Y >::range_type = domain_type

Definition at line 67 of file uzawa.hh.

◆ Scalar [1/2]

template<class X, class Y>
typedef field_type Kaskade::UzawaSolver< X, Y >::Scalar

Definition at line 58 of file uzawa-old.hh.

◆ Scalar [2/2]

template<class X, class Y>
typedef field_type Kaskade::UzawaSolver< X, Y >::Scalar

Definition at line 69 of file uzawa.hh.

Constructor & Destructor Documentation

◆ UzawaSolver() [1/2]

template<class X, class Y>
template<class A, class SolA, class B, class Bt, class PB>
Kaskade::UzawaSolver< X, Y >::UzawaSolver ( A & opA_,
SolA & solA_,
B & opB_,
Bt & opBt_,
PB & pb_,
double reduction_,
int maxit_,
int verbose_ )
inline

Constructor.

Parameters
opA_the linear operator \( A \)
solA_the approximate inverse operator \( A^{-1} \), needs to be a subclass of Dune::InverseOperator<X,X>
opB_the linear operator \( B \)
opBt_the linear operator \( B^T \)
pb_the Schur complement preconditioner
reduction_the default required reduction in preconditioned Schur complement's residual
maxit_the maximum number of iterations
verbose_printing level to stdout (0=silent, 1=result, 2=every iteration)

Definition at line 75 of file uzawa-old.hh.

◆ UzawaSolver() [2/2]

template<class X, class Y>
Kaskade::UzawaSolver< X, Y >::UzawaSolver ( Dune::LinearOperator< X, X > & A_,
Dune::InverseOperator< X, X > & invA_,
Dune::LinearOperator< X, Y > & B_,
Dune::LinearOperator< Y, X > & Bt_,
Dune::Preconditioner< Y, Y > & precS_,
double reduction_,
int maxit_,
int verbose_ )
inline

Constructor.

Parameters
A_the linear operator \( A : X \to X \)
invA_the (approximate) inverse operator \( A^{-1}: X \to X \), needs to be a subclass of Dune::InverseOperator<X,X>
B_the linear operaotr \( B: X\to Y \)
Bt_the linear operator \( B^T : Y\to X\)
precS_the Schur complement preconditioner \( P: Y\to Y \), \( P\approx S \)
reduction_the default required reduction in preconditioned Schur complement's residual
maxit_the maximum number of iterations
verbose_printing level to stdout (0=silent, 1=result, 2=every iteration)

All the given linear operators and the Schur preconditioner are kept by reference, and have to exist during the lifetime of the UzawaSolver object.

Definition at line 89 of file uzawa.hh.

Member Function Documentation

◆ apply() [1/6]

template<class X, class Y>
void Kaskade::UzawaSolver< X, Y >::apply ( Domain & x,
Range & b )
inline

Definition at line 172 of file uzawa-old.hh.

◆ apply() [2/6]

template<class X, class Y>
void Kaskade::UzawaSolver< X, Y >::apply ( Domain & x,
Range & b )
inline

Definition at line 237 of file uzawa.hh.

◆ apply() [3/6]

template<class X, class Y>
virtual void Kaskade::UzawaSolver< X, Y >::apply ( Domain & x,
Range & b,
double reduction_,
Dune::InverseOperatorResult & res )
inlinevirtual

Definition at line 166 of file uzawa-old.hh.

◆ apply() [4/6]

template<class X, class Y>
virtual void Kaskade::UzawaSolver< X, Y >::apply ( Domain & x,
Range & b,
double reduction_,
Dune::InverseOperatorResult & res )
inlinevirtual

Definition at line 231 of file uzawa.hh.

◆ apply() [5/6]

template<class X, class Y>
virtual void Kaskade::UzawaSolver< X, Y >::apply ( Domain & x,
Range & b,
Dune::InverseOperatorResult & res )
inlinevirtual

Definition at line 89 of file uzawa-old.hh.

Referenced by apply(), and apply().

◆ apply() [6/6]

template<class X, class Y>
virtual void Kaskade::UzawaSolver< X, Y >::apply ( Domain & x,
Range & b,
Dune::InverseOperatorResult & res )
inlineoverridevirtual

Solves the saddle point system \( K x = b \).

Parameters
[in,out]xsolution. On entry, an initial guess is provided.
[in]bright hand side. This will not be modified.
Returns
the initial preconditioned residual energy norm squared

Definition at line 112 of file uzawa.hh.

◆ category() [1/2]

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

returns the category of the operator

From the Dune doxygen documentation it is unclear what this is supposed to mean. We return a dummy here.

Definition at line 183 of file uzawa-old.hh.

◆ category() [2/2]

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

returns the category of the operator

From the Dune doxygen documentation it is unclear what this is supposed to mean. We return a dummy here.

Definition at line 248 of file uzawa.hh.


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