CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Help with Implicit Underrelaxation (http://www.cfd-online.com/Forums/openfoam/121498-help-implicit-underrelaxation.html)

hulk July 30, 2013 03:59

Help with Implicit Underrelaxation
 
HI,


I've got a problem understanding the implicit under-relaxation procedure of OPENFOAM. I understand that it used to insure diagonal dominance of the system Matrix, by dividing the diagonal by alpha, and adding an explicit source term to the equation.


The problem that I am having is, that in the CODE of OPENFOAM there stands something like:



Quote:

// Store the current unrelaxed diagonal for use in updating the source
scalarField D0(D);
...



// Calculate the sum-mag off-diagonal from the interior faces
scalarField sumOff(D.size(), 0.0);
sumMagOffDiag(sumOff);
...


D[celli] = max(mag(D[celli]), sumOff[celli]);
...


// ... then relax
D /= alpha;
...
So as far as I understand this makes sure that the main diagonal is at least as big as the sum of all off diagonal elements in the matrix. But my main Question now is doesn't this procedure violate the consistency of discretisation of Faces (discretisation procedure is the same for both Cells sharing the face)?


My be some one can help me with this problem, or give me some hints for literature.




Thanks


All times are GMT -4. The time now is 00:39.