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

smoothSolver Class Reference

Iterative solver for symmetric and assymetric matrices which uses a run-time selected smoother e.g. GaussSeidel to converge the solution to the required tolerance. More...

Inheritance diagram for smoothSolver:
Collaboration diagram for smoothSolver:

List of all members.


Public Member Functions

 TypeName ("smoothSolver")
 Runtime type information.
 smoothSolver (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 ~smoothSolver ()
virtual
lduMatrix::solverPerformance 
solve (scalarField &psi, const scalarField &source, const direction cmpt=0) const
 Solve the matrix with this solver.

Protected Member Functions

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

Protected Attributes

label nSweeps_
 Number of sweeps before the evaluation of residual.

Detailed Description

Iterative solver for symmetric and assymetric matrices which uses a run-time selected smoother e.g. GaussSeidel to converge the solution to the required tolerance.

To improve efficiency, the residual is evaluated after every nSweeps smoothing iterations.

Source files

Definition at line 49 of file smoothSolver.H.


Constructor & Destructor Documentation

smoothSolver ( 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 37 of file smoothSolver.C.

virtual ~smoothSolver (  )  [inline, virtual]

Definition at line 85 of file smoothSolver.H.


Member Function Documentation

void readControls (  )  [protected, virtual]

Read the control parameters from the controlDict_.

Reimplemented from solver.

Definition at line 62 of file smoothSolver.C.

Referenced by smoothSolver::solve().

Here is the caller graph for this function:

TypeName ( "smoothSolver"   ) 

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 70 of file smoothSolver.C.

References solver::controlDict_, dictionary::lookupOrDefault(), smoothSolver::nSweeps_, and smoothSolver::readControls().

Here is the call graph for this function:


Member Data Documentation

label nSweeps_ [protected]

Number of sweeps before the evaluation of residual.

Definition at line 58 of file smoothSolver.H.

Referenced by smoothSolver::solve().


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