Foam::TGaussSeidelSmoother. More...
Public Member Functions | |
TypeName ("GaussSeidel") | |
Runtime type information. More... | |
TGaussSeidelSmoother (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix) | |
Construct from components. More... | |
virtual void | smooth (Field< Type > &psi, const label nSweeps) const |
Smooth the solution for a given number of sweeps. More... | |
![]() | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
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) | |
virtual | ~smoother () |
const word & | fieldName () const |
const LduMatrix< Type, DType, LUType > & | matrix () const |
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. More... | |
![]() | |
static autoPtr< smoother > | New (const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &smootherDict) |
Return a new smoother. More... | |
Private Attributes | |
Field< DType > | rD_ |
The inverse (reciprocal for scalars) diagonal. More... | |
Additional Inherited Members | |
![]() | |
word | fieldName_ |
const LduMatrix< Type, DType, LUType > & | matrix_ |
Definition at line 49 of file TGaussSeidelSmoother.H.
TGaussSeidelSmoother | ( | const word & | fieldName, |
const LduMatrix< Type, DType, LUType > & | matrix | ||
) |
Construct from components.
Definition at line 32 of file TGaussSeidelSmoother.C.
References LduMatrix::diag(), and Foam::inv().
TypeName | ( | "GaussSeidel" | ) |
Runtime type information.
|
static |
Smooth for the given number of sweeps.
Definition at line 59 of file TGaussSeidelSmoother.C.
References UList::begin(), Foam::dot(), forAll, LduMatrix::initMatrixInterfaces(), LduMatrix::interfaces(), LduMatrix::interfacesUpper(), LduMatrix::lduAddr(), LduMatrix::lower(), lduAddressing::ownerStartAddr(), patchi, psi, LduMatrix::source(), Foam::fvc::sweep(), LduMatrix::updateMatrixInterfaces(), LduMatrix::upper(), and lduAddressing::upperAddr().
Smooth the solution for a given number of sweeps.
Implements LduMatrix::smoother.
Definition at line 158 of file TGaussSeidelSmoother.C.
References psi, and Foam::fvc::smooth().
|
private |
The inverse (reciprocal for scalars) diagonal.
Definition at line 56 of file TGaussSeidelSmoother.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.