OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

GAMGPreconditioner Class Reference

Geometric agglomerated algebraic multigrid preconditioner. More...

Inheritance diagram for GAMGPreconditioner:
Collaboration diagram for GAMGPreconditioner:

List of all members.


Public Member Functions

 TypeName ("GAMG")
 Runtime type information.
 GAMGPreconditioner (const lduMatrix::solver &, const dictionary &solverControls)
 Construct from matrix components and preconditioner solver controls.
virtual ~GAMGPreconditioner ()
virtual void precondition (scalarField &wA, const scalarField &rA, const direction cmpt=0) const
 Return wA the preconditioned form of residual rA.

Protected Member Functions

virtual void readControls ()
 Read the control parameters from the controlDict_.

Protected Attributes

label nVcycles_
 Number of V-cycles to perform.

Detailed Description

Geometric agglomerated algebraic multigrid preconditioner.

See also:
GAMGSolver for more details.
Source files

Definition at line 47 of file GAMGPreconditioner.H.


Constructor & Destructor Documentation

GAMGPreconditioner ( const lduMatrix::solver &  sol,
const dictionary &  solverControls 
)

Construct from matrix components and preconditioner solver controls.

Definition at line 37 of file GAMGPreconditioner.C.

~GAMGPreconditioner (  )  [virtual]

Definition at line 60 of file GAMGPreconditioner.C.


Member Function Documentation

void readControls (  )  [protected, virtual]

Read the control parameters from the controlDict_.

Reimplemented from GAMGSolver.

Definition at line 66 of file GAMGPreconditioner.C.

Referenced by GAMGPreconditioner::precondition().

Here is the caller graph for this function:

TypeName ( "GAMG"   ) 

Runtime type information.

Reimplemented from GAMGSolver.

void precondition ( scalarField &  wA,
const scalarField &  rA,
const direction  cmpt = 0 
) const [virtual]

Return wA the preconditioned form of residual rA.

Implements preconditioner.

Definition at line 74 of file GAMGPreconditioner.C.

References solver::controlDict_, dictionary::lookupOrDefault(), GAMGPreconditioner::nVcycles_, and GAMGPreconditioner::readControls().

Here is the call graph for this function:


Member Data Documentation

label nVcycles_ [protected]

Number of V-cycles to perform.

Definition at line 56 of file GAMGPreconditioner.H.

Referenced by GAMGPreconditioner::precondition().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd