35 lduMatrix::smoother::addsymMatrixConstructorToTable<FDICSmoother>
44 const word& fieldName,
60 rDuUpper_(matrix_.upper().size()),
61 rDlUpper_(matrix_.upper().size())
63 scalar* __restrict__ rDPtr = rD_.
begin();
64 scalar* __restrict__ rDuUpperPtr = rDuUpper_.
begin();
65 scalar* __restrict__ rDlUpperPtr = rDlUpper_.
begin();
67 const label*
const __restrict__ uPtr =
69 const label*
const __restrict__ lPtr =
71 const scalar*
const __restrict__ upperPtr =
106 const scalar*
const __restrict__ rDuUpperPtr = rDuUpper_.begin();
107 const scalar*
const __restrict__ rDlUpperPtr = rDlUpper_.begin();
109 const label*
const __restrict__ uPtr =
110 matrix_.lduAddr().upperAddr().begin();
111 const label*
const __restrict__ lPtr =
112 matrix_.lduAddr().lowerAddr().begin();
116 scalar* __restrict__ rAPtr = rA.
begin();
135 rAPtr[uPtr[
face]] -= rDuUpperPtr[
face]*rAPtr[lPtr[
face]];
138 label nFacesM1 = nFaces - 1;
141 rAPtr[lPtr[
face]] -= rDlUpperPtr[
face]*rAPtr[uPtr[
face]];
Simplified diagonal-based incomplete Cholesky smoother for symmetric matrices.
void smooth(scalarField &psi, const scalarField &source, const direction cmpt, const label nSweeps) const
Smooth the solution for a given number of sweeps.
FDICSmoother(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces)
Construct from matrix components.
void size(const label)
Override size to be inconsistent with allocated storage.
iterator begin()
Return an iterator to begin traversing the UList.
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
virtual const labelUList & upperAddr() const =0
Return upper addressing.
virtual const labelUList & lowerAddr() const =0
Return lower addressing.
const lduMatrix & matrix_
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
const lduAddressing & lduAddr() const
Return the LDU addressing.
A class for handling words, derived from string.
const volScalarField & psi
void sweep(volScalarField &field, const volScalarField &alpha, const label nLayers, const scalar alphaDiff=0.2)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
defineTypeNameAndDebug(combustionModel, 0)
lduMatrix::smoother::addsymMatrixConstructorToTable< FDICSmoother > addFDICSmootherSymMatrixConstructorToTable_