Loading...
Searching...
No Matches
TGaussSeidelSmoother< Type, DType, LUType > Class Template Reference

Foam::TGaussSeidelSmoother. More...

#include <TGaussSeidelSmoother.H>

Inheritance diagram for TGaussSeidelSmoother< Type, DType, LUType >:
Collaboration diagram for TGaussSeidelSmoother< Type, DType, LUType >:

Public Member Functions

 TypeName ("GaussSeidel")
 Runtime type information.
 TGaussSeidelSmoother (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix)
 Construct from components.
virtual void smooth (Field< Type > &psi, const label nSweeps) const
 Smooth the solution for a given number of sweeps.
Public Member Functions inherited from LduMatrix< Type, DType, LUType >::smoother
virtual const wordtype () const =0
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, smoother, symMatrix,(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix),(fieldName, matrix))
 declareRunTimeSelectionTable (autoPtr, smoother, asymMatrix,(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix),(fieldName, matrix))
 smoother (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix)
 Construct for given field name and matrix.
virtual ~smoother ()=default
 Destructor.
const wordfieldName () const noexcept
const LduMatrix< Type, DType, LUType > & matrix () const noexcept

Static Public Member Functions

static void smooth (const word &fieldName, Field< Type > &psi, const LduMatrix< Type, DType, LUType > &matrix, const Field< DType > &rD, const label nSweeps)
 Smooth for the given number of sweeps.
Static Public Member Functions inherited from LduMatrix< Type, DType, LUType >::smoother
static autoPtr< smootherNew (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &smootherDict)
 Return a new smoother.

Additional Inherited Members

Protected Attributes inherited from LduMatrix< Type, DType, LUType >::smoother
word fieldName_
const LduMatrix< Type, DType, LUType > & matrix_

Detailed Description

template<class Type, class DType, class LUType>
class Foam::TGaussSeidelSmoother< Type, DType, LUType >

Foam::TGaussSeidelSmoother.

Source files

Definition at line 47 of file TGaussSeidelSmoother.H.

Constructor & Destructor Documentation

◆ TGaussSeidelSmoother()

template<class Type, class DType, class LUType>
TGaussSeidelSmoother ( const word & fieldName,
const LduMatrix< Type, DType, LUType > & matrix )

Member Function Documentation

◆ TypeName()

template<class Type, class DType, class LUType>
TypeName ( "GaussSeidel" )

Runtime type information.

References LduMatrix< Type, DType, LUType >::smoother::fieldName(), LduMatrix< Type, DType, LUType >::smoother::matrix(), and psi.

Here is the call graph for this function:

◆ smooth() [1/2]

template<class Type, class DType, class LUType>
void smooth ( const word & fieldName,
Field< Type > & psi,
const LduMatrix< Type, DType, LUType > & matrix,
const Field< DType > & rD,
const label nSweeps )
static

Smooth for the given number of sweeps.

Definition at line 54 of file TGaussSeidelSmoother.C.

References UList< T >::begin(), Foam::dot(), LduMatrix< Type, DType, LUType >::smoother::fieldName_, LduMatrix< Type, DType, LUType >::smoother::matrix_, UPstream::nRequests(), and psi.

Referenced by smooth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smooth() [2/2]

template<class Type, class DType, class LUType>
void smooth ( Field< Type > & psi,
const label nSweeps ) const
virtual

Smooth the solution for a given number of sweeps.

Implements LduMatrix< Type, DType, LUType >::smoother.

Definition at line 148 of file TGaussSeidelSmoother.C.

References LduMatrix< Type, DType, LUType >::smoother::fieldName_, LduMatrix< Type, DType, LUType >::smoother::matrix_, psi, and smooth().

Here is the call graph for this function:

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