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

solver Class Reference

Abstract base-class for lduMatrix solvers. More...

Inheritance diagram for solver:
Collaboration diagram for solver:

List of all members.


Public Member Functions

virtual const word & type () const =0
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, solver, symMatrix,(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls),(fieldName, matrix, interfaceBouCoeffs, interfaceIntCoeffs, interfaces, solverControls))
 declareRunTimeSelectionTable (autoPtr, solver, asymMatrix,(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls),(fieldName, matrix, interfaceBouCoeffs, interfaceIntCoeffs, interfaces, solverControls))
 solver (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls)
virtual ~solver ()
const word & fieldName () const
const lduMatrix & matrix () const
const FieldField< Field, scalar > & interfaceBouCoeffs () const
const FieldField< Field, scalar > & interfaceIntCoeffs () const
const lduInterfaceFieldPtrsList & interfaces () const
virtual void read (const dictionary &)
 Read and reset the solver parameters from the given stream.
virtual solverPerformance solve (scalarField &psi, const scalarField &source, const direction cmpt=0) const =0
scalar normFactor (const scalarField &psi, const scalarField &source, const scalarField &Apsi, scalarField &tmpField) const
 Return the matrix norm used to normalise the residual for the.

Static Public Member Functions

static autoPtr< solver > New (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls)
 Return a new solver.

Protected Member Functions

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

Protected Attributes

word fieldName_
const lduMatrix & matrix_
const FieldField< Field, scalar > & interfaceBouCoeffs_
const FieldField< Field, scalar > & interfaceIntCoeffs_
lduInterfaceFieldPtrsList interfaces_
dictionary controlDict_
 dictionary of controls
label maxIter_
 Maximum number of iterations in the solver.
scalar tolerance_
 Final convergence tolerance.
scalar relTol_
 Convergence tolerance relative to the initial.

Detailed Description

Abstract base-class for lduMatrix solvers.

Definition at line 206 of file lduMatrix.H.


Constructor & Destructor Documentation

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

Definition at line 134 of file lduMatrixSolver.C.

virtual ~solver (  )  [inline, virtual]

Definition at line 321 of file lduMatrix.H.


Member Function Documentation

void readControls (  )  [protected, virtual]

Read the control parameters from the controlDict_.

Reimplemented in GAMGPreconditioner, and smoothSolver.

Definition at line 156 of file lduMatrixSolver.C.

Referenced by solver::normFactor().

Here is the caller graph for this function:

virtual const word& type (  )  const [pure virtual]

Runtime type information.

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

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

Foam::autoPtr< Foam::lduMatrix::solver > New ( const word &  fieldName,
const lduMatrix &  matrix,
const FieldField< Field, scalar > &  interfaceBouCoeffs,
const FieldField< Field, scalar > &  interfaceIntCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const dictionary &  solverControls 
) [static]

Return a new solver.

Definition at line 33 of file lduMatrixSolver.C.

References Foam::defineRunTimeSelectionTable().

Here is the call graph for this function:

const word& fieldName (  )  const [inline]

Definition at line 329 of file lduMatrix.H.

const lduMatrix& matrix (  )  const [inline]

Definition at line 334 of file lduMatrix.H.

References solver::fieldName_.

Referenced by DILUPreconditioner::calcReciprocalD(), and DICPreconditioner::calcReciprocalD().

Here is the caller graph for this function:

const FieldField<Field, scalar>& interfaceBouCoeffs (  )  const [inline]

Definition at line 339 of file lduMatrix.H.

References solver::matrix_.

const FieldField<Field, scalar>& interfaceIntCoeffs (  )  const [inline]

Definition at line 344 of file lduMatrix.H.

References solver::interfaceBouCoeffs_.

const lduInterfaceFieldPtrsList& interfaces (  )  const [inline]

Definition at line 349 of file lduMatrix.H.

References solver::interfaceIntCoeffs_.

void read ( const dictionary &  solverControls  )  [virtual]

Read and reset the solver parameters from the given stream.

Reimplemented in diagonalSolver.

Definition at line 164 of file lduMatrixSolver.C.

References solver::controlDict_, Foam::mathematicalConstant::e, dictionary::lookupOrDefault(), solver::maxIter_, solver::relTol_, and solver::tolerance_.

Here is the call graph for this function:

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

Implemented in diagonalSolver, GAMGSolver, PBiCG, PCG, and smoothSolver.

Foam::scalar normFactor ( const scalarField &  psi,
const scalarField &  source,
const scalarField &  Apsi,
scalarField &  tmpField 
) const

Return the matrix norm used to normalise the residual for the.

stopping criterion

Definition at line 172 of file lduMatrixSolver.C.

References solver::controlDict_, and solver::readControls().

Referenced by GAMGSolver::solve().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

word fieldName_ [protected]

Definition at line 212 of file lduMatrix.H.

Referenced by solver::matrix(), and GAMGSolver::solve().

const lduMatrix& matrix_ [protected]

Definition at line 213 of file lduMatrix.H.

Referenced by solver::interfaceBouCoeffs(), and GAMGSolver::solve().

Definition at line 214 of file lduMatrix.H.

Referenced by solver::interfaceIntCoeffs(), and GAMGSolver::solve().

Definition at line 215 of file lduMatrix.H.

Referenced by solver::interfaces().

Definition at line 216 of file lduMatrix.H.

Referenced by GAMGSolver::solve().

label maxIter_ [protected]

Maximum number of iterations in the solver.

Definition at line 222 of file lduMatrix.H.

Referenced by solver::read(), and GAMGSolver::solve().

scalar tolerance_ [protected]

Final convergence tolerance.

Definition at line 225 of file lduMatrix.H.

Referenced by solver::read(), and GAMGSolver::solve().

scalar relTol_ [protected]

Convergence tolerance relative to the initial.

Definition at line 228 of file lduMatrix.H.

Referenced by solver::read(), and GAMGSolver::solve().


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