38 lduMatrix::preconditioner::addsymMatrixConstructorToTable
41 lduMatrix::preconditioner::addasymMatrixConstructorToTable
58 sol.interfaceBouCoeffs(),
59 sol.interfaceIntCoeffs(),
80 GAMGSolver::readControls();
81 nVcycles_ = controlDict_.getOrDefault<label>(
"nVcycles", 2);
118 finestCorrectionScratch
125 for (label cycle=0; cycle<nVcycles_; cycle++)
136 (ApsiScratch.
size() ? ApsiScratch : AwA),
138 finestCorrectionScratch.
size()
139 ? finestCorrectionScratch
148 if (cycle < nVcycles_-1)
151 matrix_.Amul(AwA, wA, interfaceBouCoeffs_, interfaces_, cmpt);
152 finestResidual = rA_ss;
153 finestResidual -= AwA;
A const Field/List wrapper with possible data conversion.
Geometric agglomerated algebraic multigrid preconditioner.
virtual ~GAMGPreconditioner()
Destructor.
virtual void precondition(solveScalarField &wA, const solveScalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
virtual void readControls()
Read the control parameters from the controlDict_.
Geometric agglomerated algebraic multigrid solver.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for lduMatrix solvers.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
lduMatrix::preconditioner::addasymMatrixConstructorToTable< GAMGPreconditioner > addGAMGPreconditionerAsymMatrixConstructorToTable_
lduMatrix::preconditioner::addsymMatrixConstructorToTable< GAMGPreconditioner > addGAMGPreconditionerSymMatrixConstructorToTable_