38 lduMatrix::preconditioner::addsymMatrixConstructorToTable
41 lduMatrix::preconditioner::addasymMatrixConstructorToTable
58 sol.interfaceBouCoeffs(),
59 sol.interfaceIntCoeffs(),
74 GAMGSolver::readControls();
112 finestCorrectionScratch
119 for (label cycle=0; cycle<nVcycles_; cycle++)
130 (ApsiScratch.
size() ? ApsiScratch : AwA),
132 finestCorrectionScratch.
size()
133 ? finestCorrectionScratch
142 if (cycle < nVcycles_-1)
145 matrix_.Amul(AwA, wA, interfaceBouCoeffs_, interfaces_, cmpt);
146 finestResidual = rA_ss;
147 finestResidual -= AwA;
void size(const label n)
Older name for setAddressableSize.
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 a number of values (eg...
Geometric agglomerated algebraic multigrid preconditioner.
virtual void readControls()
Read the control parameters from the controlDict_.
Abstract base-class for lduMatrix solvers.
lduMatrix::preconditioner::addasymMatrixConstructorToTable< GAMGPreconditioner > addGAMGPreconditionerAsymMatrixConstructorToTable_
label nVcycles_
Number of V-cycles to perform.
A const Field/List wrapper with possible data conversion.
defineTypeNameAndDebug(combustionModel, 0)
dictionary controlDict_
Dictionary of solution controls.
Geometric agglomerated algebraic multigrid solver.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
lduMatrix::preconditioner::addsymMatrixConstructorToTable< GAMGPreconditioner > addGAMGPreconditionerSymMatrixConstructorToTable_
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
virtual void precondition(solveScalarField &wA, const solveScalarField &rA, const direction cmpt=0) const
Return wA the preconditioned form of residual rA.
static constexpr const zero Zero
Global zero (0)