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

PCG Class Reference

Preconditioned conjugate gradient solver for symmetric lduMatrices using a run-time selectable preconditioner. More...

Inheritance diagram for PCG:
Collaboration diagram for PCG:

List of all members.


Public Member Functions

 TypeName ("PCG")
 Runtime type information.
 PCG (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls)
 Construct from matrix components and solver controls.
virtual ~PCG ()
virtual
lduMatrix::solverPerformance 
solve (scalarField &psi, const scalarField &source, const direction cmpt=0) const
 Solve the matrix with this solver.

Detailed Description

Preconditioned conjugate gradient solver for symmetric lduMatrices using a run-time selectable preconditioner.

Source files

Definition at line 45 of file PCG.H.


Constructor & Destructor Documentation

PCG ( const word &  fieldName,
const lduMatrix &  matrix,
const FieldField< Field, scalar > &  interfaceBouCoeffs,
const FieldField< Field, scalar > &  interfaceIntCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const dictionary &  solverControls 
)

Construct from matrix components and solver controls.

Definition at line 34 of file PCG.C.

virtual ~PCG (  )  [inline, virtual]

Definition at line 80 of file PCG.H.


Member Function Documentation

TypeName ( "PCG"   ) 

Runtime type information.

Foam::lduMatrix::solverPerformance solve ( scalarField &  psi,
const scalarField &  source,
const direction  cmpt = 0 
) const [virtual]

Solve the matrix with this solver.

Implements solver.

Definition at line 58 of file PCG.C.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/matrices/lduMatrix/solvers/PCG/PCG.H
  • src/OpenFOAM/matrices/lduMatrix/solvers/PCG/PCG.C
Copyright © 2000-2009 OpenCFD Ltd