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

solverPerformance Class Reference

Class returned by the solver, containing performance statistics. More...

Collaboration diagram for solverPerformance:

List of all members.


Public Member Functions

 solverPerformance ()
 solverPerformance (const word &solverName, const word &fieldName, const scalar iRes=0, const scalar fRes=0, const label nIter=0, const bool converged=false, const bool singular=false)
const word & solverName () const
 Return solver name.
scalar initialResidual () const
 Return initial residual.
scalar & initialResidual ()
 Return initial residual.
scalar finalResidual () const
 Return final residual.
scalar & finalResidual ()
 Return final residual.
label nIterations () const
 Return number of iterations.
label & nIterations ()
 Return number of iterations.
bool converged () const
 Has the solver converged?
bool singular () const
 Is the matrix singular?
bool checkConvergence (const scalar tolerance, const scalar relTolerance)
 Convergence test.
bool checkSingularity (const scalar residual)
 Singularity test.
void print () const
 Print summary of solver performance.

Detailed Description

Class returned by the solver, containing performance statistics.

Definition at line 85 of file lduMatrix.H.


Constructor & Destructor Documentation

solverPerformance (  )  [inline]

Definition at line 100 of file lduMatrix.H.

solverPerformance ( const word &  solverName,
const word &  fieldName,
const scalar  iRes = 0,
const scalar  fRes = 0,
const label  nIter = 0,
const bool  converged = false,
const bool  singular = false 
) [inline]

Definition at line 111 of file lduMatrix.H.


Member Function Documentation

const word& solverName (  )  const [inline]

Return solver name.

Definition at line 134 of file lduMatrix.H.

scalar initialResidual (  )  const [inline]

Return initial residual.

Definition at line 140 of file lduMatrix.H.

Referenced by GAMGSolver::solve().

Here is the caller graph for this function:

scalar& initialResidual (  )  [inline]

Return initial residual.

Definition at line 146 of file lduMatrix.H.

scalar finalResidual (  )  const [inline]

Return final residual.

Definition at line 153 of file lduMatrix.H.

Referenced by GAMGSolver::solve().

Here is the caller graph for this function:

scalar& finalResidual (  )  [inline]

Return final residual.

Definition at line 159 of file lduMatrix.H.

label nIterations (  )  const [inline]

Return number of iterations.

Definition at line 166 of file lduMatrix.H.

Referenced by GAMGSolver::solve().

Here is the caller graph for this function:

label& nIterations (  )  [inline]

Return number of iterations.

Definition at line 172 of file lduMatrix.H.

bool converged (  )  const [inline]

Has the solver converged?

Definition at line 179 of file lduMatrix.H.

bool singular (  )  const [inline]

Is the matrix singular?

Definition at line 185 of file lduMatrix.H.

bool checkConvergence ( const scalar  tolerance,
const scalar  relTolerance 
)

Convergence test.

Definition at line 27 of file lduMatrixTests.C.

References Foam::endl(), and Foam::Info.

Referenced by GAMGSolver::solve().

Here is the call graph for this function:

Here is the caller graph for this function:

bool checkSingularity ( const scalar  residual  ) 

Singularity test.

Definition at line 62 of file lduMatrixTests.C.

void print (  )  const

Print summary of solver performance.

Definition at line 79 of file lduMatrixTests.C.

Referenced by GAMGSolver::solve().

Here is the caller graph for this function:


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