FDICSmoother Class Reference

Simplified diagonal-based incomplete Cholesky smoother for symmetric matrices. More...

Inheritance diagram for FDICSmoother:
[legend]
Collaboration diagram for FDICSmoother:
[legend]

Public Member Functions

 TypeName ("FDIC")
 Runtime type information. More...
 
 FDICSmoother (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces)
 Construct from matrix components. More...
 
void smooth (solveScalarField &psi, const scalarField &source, const direction cmpt, const label nSweeps) const
 Smooth the solution for a given number of sweeps. More...
 
virtual void scalarSmooth (solveScalarField &psi, const solveScalarField &source, const direction cmpt, const label nSweeps) const
 Smooth the solution for a given number of sweeps. More...
 
- Public Member Functions inherited from lduMatrix::smoother
virtual const wordtype () const =0
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, smoother, symMatrix,(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces),(fieldName, matrix, interfaceBouCoeffs, interfaceIntCoeffs, interfaces))
 
 declareRunTimeSelectionTable (autoPtr, smoother, asymMatrix,(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces),(fieldName, matrix, interfaceBouCoeffs, interfaceIntCoeffs, interfaces))
 
 smoother (const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces)
 
virtual ~smoother ()=default
 Destructor. More...
 
const wordfieldName () const noexcept
 
const lduMatrixmatrix () const noexcept
 
const FieldField< Field, scalar > & interfaceBouCoeffs () const noexcept
 
const FieldField< Field, scalar > & interfaceIntCoeffs () const noexcept
 
const lduInterfaceFieldPtrsListinterfaces () const noexcept
 
virtual void smooth (solveScalarField &psi, const scalarField &source, const direction cmpt, const label nSweeps) const =0
 Smooth the solution for a given number of sweeps. More...
 
virtual void scalarSmooth (solveScalarField &psi, const solveScalarField &source, const direction cmpt, const label nSweeps) const =0
 Smooth the solution for a given number of sweeps. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from lduMatrix::smoother
static word getName (const dictionary &)
 Find the smoother name (directly or from a sub-dictionary) More...
 
static autoPtr< smootherNew (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 smoother. More...
 
- Protected Attributes inherited from lduMatrix::smoother
word fieldName_
 
const lduMatrixmatrix_
 
const FieldField< Field, scalar > & interfaceBouCoeffs_
 
const FieldField< Field, scalar > & interfaceIntCoeffs_
 
const lduInterfaceFieldPtrsListinterfaces_
 

Detailed Description

Simplified diagonal-based incomplete Cholesky smoother for symmetric matrices.

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

Source files

Definition at line 55 of file FDICSmoother.H.

Constructor & Destructor Documentation

◆ FDICSmoother()

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

Construct from matrix components.

Definition at line 46 of file FDICSmoother.C.

References UList< T >::begin(), DICPreconditioner::calcReciprocalD(), lduMatrix::diag(), Foam::diag(), lduMatrix::lduAddr(), lduAddressing::lowerAddr(), lduMatrix::smoother::matrix_, nFaces(), UList< T >::size(), lduMatrix::upper(), and lduAddressing::upperAddr().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "FDIC"  )

Runtime type information.

◆ smooth()

void smooth ( solveScalarField psi,
const scalarField source,
const direction  cmpt,
const label  nSweeps 
) const
virtual

Smooth the solution for a given number of sweeps.

Implements lduMatrix::smoother.

Definition at line 95 of file FDICSmoother.C.

References UList< T >::begin(), forAll, nFaces(), psi, and UList< T >::size().

Here is the call graph for this function:

◆ scalarSmooth()

void scalarSmooth ( solveScalarField psi,
const solveScalarField source,
const direction  cmpt,
const label  nSweeps 
) const
virtual

Smooth the solution for a given number of sweeps.

Implements lduMatrix::smoother.

Definition at line 149 of file FDICSmoother.C.

References psi.


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