Public Member Functions | Static Public Member Functions | Private Member Functions
BICCG Class Reference

Diagonal incomplete LU preconditioned BiCG solver derived from the general preconditioned BiCG solver PBiCG but with the choice of preconditioner pre-selected. More...

Inheritance diagram for BICCG:
Inheritance graph
[legend]
Collaboration diagram for BICCG:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("BICCG")
 Runtime type information. More...
 
 BICCG (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 data stream. More...
 
 BICCG (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const scalar tolerance, const scalar relTol=0.0)
 Construct from matrix components and tolerances. More...
 
virtual ~BICCG ()
 Destructor. More...
 
- Public Member Functions inherited from PBiCG
 TypeName ("PBiCG")
 Runtime type information. More...
 
 PBiCG (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 data stream. More...
 
virtual ~PBiCG ()
 Destructor. More...
 
virtual solverPerformance solve (scalarField &psi, const scalarField &source, const direction cmpt=0) const
 Solve the matrix with this solver. More...
 
- Public Member Functions inherited from lduMatrix::solver
virtual const wordtype () const =0
 Runtime type information. More...
 
 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 ()
 Destructor. More...
 
const wordfieldName () const
 
const lduMatrixmatrix () const
 
const FieldField< Field, scalar > & interfaceBouCoeffs () const
 
const FieldField< Field, scalar > & interfaceIntCoeffs () const
 
const lduInterfaceFieldPtrsListinterfaces () const
 
virtual void read (const dictionary &)
 Read and reset the solver parameters from the given stream. More...
 
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. More...
 

Static Public Member Functions

static dictionary solverDict (const scalar tol, const scalar relTol)
 Return the dictionary constructed from the components. More...
 
static dictionary solverDict (Istream &)
 Return the dictionary constructed from the old-style data-stream. More...
 
- Static Public Member Functions inherited from lduMatrix::solver
static autoPtr< solverNew (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. More...
 

Private Member Functions

 BICCG (const BICCG &)
 Disallow default bitwise copy construct. More...
 
void operator= (const BICCG &)
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Protected Member Functions inherited from lduMatrix::solver
virtual void readControls ()
 Read the control parameters from the controlDict_. More...
 
- Protected Attributes inherited from lduMatrix::solver
word fieldName_
 
const lduMatrixmatrix_
 
const FieldField< Field, scalar > & interfaceBouCoeffs_
 
const FieldField< Field, scalar > & interfaceIntCoeffs_
 
lduInterfaceFieldPtrsList interfaces_
 
dictionary controlDict_
 Dictionary of controls. More...
 
label maxIter_
 Maximum number of iterations in the solver. More...
 
label minIter_
 Minimum number of iterations in the solver. More...
 
scalar tolerance_
 Final convergence tolerance. More...
 
scalar relTol_
 Convergence tolerance relative to the initial. More...
 

Detailed Description

Diagonal incomplete LU preconditioned BiCG solver derived from the general preconditioned BiCG solver PBiCG but with the choice of preconditioner pre-selected.

Deprecated:
This solver is present for backward-compatibility and the PBiCG solver should be used instead. (deprecated Apr 2008)
Source files

Definition at line 54 of file BICCG.H.

Constructor & Destructor Documentation

◆ BICCG() [1/3]

BICCG ( const BICCG )
private

Disallow default bitwise copy construct.

◆ BICCG() [2/3]

BICCG ( 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 data stream.

Definition at line 70 of file BICCG.C.

◆ BICCG() [3/3]

BICCG ( const word fieldName,
const lduMatrix matrix,
const FieldField< Field, scalar > &  interfaceBouCoeffs,
const FieldField< Field, scalar > &  interfaceIntCoeffs,
const lduInterfaceFieldPtrsList interfaces,
const scalar  tolerance,
const scalar  relTol = 0.0 
)

Construct from matrix components and tolerances.

Definition at line 92 of file BICCG.C.

◆ ~BICCG()

virtual ~BICCG ( )
inlinevirtual

Destructor.

Definition at line 112 of file BICCG.H.

Member Function Documentation

◆ operator=()

void operator= ( const BICCG )
private

Disallow default bitwise assignment.

◆ solverDict() [1/2]

Foam::dictionary solverDict ( const scalar  tol,
const scalar  relTol 
)
static

Return the dictionary constructed from the components.

Needed for backward compatibility

Definition at line 42 of file BICCG.C.

References dict.

Referenced by solution::upgradeSolverDict().

Here is the caller graph for this function:

◆ solverDict() [2/2]

Foam::dictionary solverDict ( Istream is)
static

Return the dictionary constructed from the old-style data-stream.

Needed for backward compatibility

Definition at line 56 of file BICCG.C.

References readScalar.

◆ TypeName()

TypeName ( "BICCG"  )

Runtime type information.


The documentation for this class was generated from the following files: