34 lduMatrix::preconditioner::addsymMatrixConstructorToTable
37 lduMatrix::preconditioner::addasymMatrixConstructorToTable
76 GAMGSolver::readControls();
77 nVcycles_ = controlDict_.lookupOrDefault<
label>(
"nVcycles", 2);
114 finestCorrectionScratch
117 for (
label cycle=0; cycle<nVcycles_; cycle++)
128 (ApsiScratch.
size() ? ApsiScratch : AwA),
130 finestCorrectionScratch.
size()
131 ? finestCorrectionScratch
140 if (cycle < nVcycles_-1)
143 matrix_.Amul(AwA, wA, interfaceBouCoeffs_, interfaces_, cmpt);
145 finestResidual -= AwA;
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
GAMGPreconditioner(const lduMatrix::solver &, const dictionary &solverControls)
Construct from matrix components and preconditioner solver controls.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Geometric agglomerated algebraic multigrid preconditioner.
virtual void readControls()
Read the control parameters from the controlDict_.
void size(const label)
Override size to be inconsistent with allocated storage.
const lduMatrix & matrix() const
const FieldField< Field, scalar > & interfaceBouCoeffs() const
virtual ~GAMGPreconditioner()
Destructor.
const FieldField< Field, scalar > & interfaceIntCoeffs() const
virtual void precondition(scalarField &wA, const scalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
Abstract base-class for lduMatrix solvers.
const lduInterfaceFieldPtrsList & interfaces() const
lduMatrix::preconditioner::addasymMatrixConstructorToTable< GAMGPreconditioner > addGAMGPreconditionerAsymMatrixConstructorToTable_
defineTypeNameAndDebug(combustionModel, 0)
Geometric agglomerated algebraic multigrid solver.
Abstract base-class for lduMatrix preconditioners.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
lduMatrix::preconditioner::addsymMatrixConstructorToTable< GAMGPreconditioner > addGAMGPreconditionerSymMatrixConstructorToTable_
const word & fieldName() const