Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
lduMatrix::smoother Class Referenceabstract

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

Inheritance diagram for lduMatrix::smoother:
Inheritance graph
[legend]
Collaboration diagram for lduMatrix::smoother:
Collaboration graph
[legend]

Public Member Functions

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 ()
 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 smooth (scalarField &psi, const scalarField &source, const direction cmpt, const label nSweeps) const =0
 Smooth the solution for a given number of sweeps. More...
 

Static Public Member Functions

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

word fieldName_
 
const lduMatrixmatrix_
 
const FieldField< Field, scalar > & interfaceBouCoeffs_
 
const FieldField< Field, scalar > & interfaceIntCoeffs_
 
const lduInterfaceFieldPtrsListinterfaces_
 

Detailed Description

Abstract base-class for lduMatrix smoothers.

Definition at line 267 of file lduMatrix.H.

Constructor & Destructor Documentation

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

Definition at line 156 of file lduMatrixSmoother.C.

Referenced by lduMatrix::smoother::New().

Here is the caller graph for this function:

virtual ~smoother ( )
inlinevirtual

Destructor.

Definition at line 361 of file lduMatrix.H.

Member Function Documentation

Foam::word getName ( const dictionary solverControls)
static

Find the smoother name (directly or from a sub-dictionary)

Definition at line 40 of file lduMatrixSmoother.C.

References entry::dict(), Foam::e, entry::isDict(), dictionary::lookup(), dictionary::lookupEntry(), Foam::name(), lduMatrix::smoother::New(), and entry::stream().

Here is the call graph for this function:

virtual const word& type ( ) const
pure virtual

Runtime type information.

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  
)
Foam::autoPtr< Foam::lduMatrix::smoother > New ( const word fieldName,
const lduMatrix matrix,
const FieldField< Field, scalar > &  interfaceBouCoeffs,
const FieldField< Field, scalar > &  interfaceIntCoeffs,
const lduInterfaceFieldPtrsList interfaces,
const dictionary solverControls 
)
static
const word& fieldName ( ) const
inline

Definition at line 369 of file lduMatrix.H.

References lduMatrix::solver::fieldName_.

const lduMatrix& matrix ( ) const
inline

Definition at line 374 of file lduMatrix.H.

References lduMatrix::solver::matrix_.

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

Definition at line 379 of file lduMatrix.H.

References lduMatrix::solver::interfaceBouCoeffs_.

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

Definition at line 384 of file lduMatrix.H.

References lduMatrix::solver::interfaceIntCoeffs_.

const lduInterfaceFieldPtrsList& interfaces ( ) const
inline

Definition at line 389 of file lduMatrix.H.

References lduMatrix::solver::interfaces_, psi, and Foam::fvc::smooth().

Here is the call graph for this function:

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

Member Data Documentation

word fieldName_
protected

Definition at line 273 of file lduMatrix.H.

const lduMatrix& matrix_
protected

Definition at line 274 of file lduMatrix.H.

const FieldField<Field, scalar>& interfaceBouCoeffs_
protected

Definition at line 275 of file lduMatrix.H.

const FieldField<Field, scalar>& interfaceIntCoeffs_
protected

Definition at line 276 of file lduMatrix.H.

const lduInterfaceFieldPtrsList& interfaces_
protected

Definition at line 277 of file lduMatrix.H.


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