Go to the documentation of this file.
35 lduMatrix::smoother::addasymMatrixConstructorToTable<DILUSmoother>
44 const word& fieldName,
61 DILUPreconditioner::calcReciprocalD(rD_, matrix_);
75 const scalar*
const __restrict__ rDPtr = rD_.begin();
77 const label*
const __restrict__ uPtr =
78 matrix_.lduAddr().upperAddr().begin();
79 const label*
const __restrict__ lPtr =
80 matrix_.lduAddr().lowerAddr().begin();
82 const scalar*
const __restrict__ upperPtr = matrix_.upper().begin();
83 const scalar*
const __restrict__ lowerPtr = matrix_.lower().begin();
87 scalar* __restrict__ rAPtr = rA.begin();
103 label nFaces = matrix_.upper().size();
107 rAPtr[u] -= rDPtr[u]*lowerPtr[
face]*rAPtr[lPtr[
face]];
110 label nFacesM1 = nFaces - 1;
114 rAPtr[l] -= rDPtr[l]*upperPtr[
face]*rAPtr[uPtr[
face]];
A class for handling words, derived from string.
lduMatrix::smoother::addasymMatrixConstructorToTable< DILUSmoother > addDILUSmootherAsymMatrixConstructorToTable_
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
void smooth(scalarField &psi, const scalarField &source, const direction cmpt, const label nSweeps) const
Smooth the solution for a given number of sweeps.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Abstract base-class for lduMatrix smoothers.
const volScalarField & psi
A face is a list of labels corresponding to mesh vertices.
DILUSmoother(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces)
Construct from matrix components.
defineTypeNameAndDebug(combustionModel, 0)
void sweep(volScalarField &field, const volScalarField &alpha, const label nLayers, const scalar alphaDiff=0.2)