- **OpenFOAM Running, Solving & CFD**
(*http://www.cfd-online.com/Forums/openfoam-solving/*)

- - **Non-orthogonality correction**
(*http://www.cfd-online.com/Forums/openfoam-solving/68789-non-orthogonality-correction.html*)

Non-orthogonality correctionHi all! I'm checking out the scalarTransportFoam code and I can't realize how non-orthogonality corrections are applied:
From code we read: Code:
` 00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ` Regards. |

Hi Santiago,
The linear solvers solve a system Ax=b, where A is a matrix, x is a vector of all your unknowns (your field varaible) and b is a vector of source terms. Solving gives you x. In the laplacian operator above, only the *orthogonal* contributions go into the matrix coeffcients of A. This keeps the "discretization molecule" small and the matrix A simple and sparse, with references only to the cells on either side of the respective faces. The non-orthogonal corrections instead go into the source term b. Although you don't see that. So, after you solve the equation once, you must recompute the explicit non-orthogonal contribution in the source term b again, with the latest values of your solution. And then solve again. Etcetera. The correction is hopefully small, so that only a small number of iterations are required for the correction to converge and stabilize. I warmly recommend downloading the PhD thesis of Hrvoje Jasak. All you want to know is in Chapter 3! You can download it from http://foamcfd.org/resources/theses.html (First link on the page; the PDF is a bit large, so be patient...) You can also look for the book of Versteeg et al on the Finite Volume method. The latest issue (2008?) has been updated with methods for unstructured grids. Hrv:s text is just as good, however, and corresponds well to what is actually inside Op-nFOAM. Happy FOAMing, Ola |

Ola, thanks for your support, It is invaluable for me! Your answer is very interesting and useful. I've been reading Jasak's thesis for the last weeks, is one of the best materials available about FVM I've ever read. I've read the books from Patankar, Versteerg and Ferziger, these are very good at the concepts but, some details in the implementation, specially for non-structured grids are not covered. The new edition of Versteeg you've indicated is welcome, I have to obtain a new copy, the one from my institute's library is the first.
As I put in my first post I know that non-orthogonal corrections are related with laplacian terms or diffusion terms as are named in Jasak's thesis. Although in this text the implementation is not present, and was looking for it in the code. I revised the code of fvm::laplacian and fvMatrix::solve but I couldnt't found it. You really surprised me, now I have new knowledge. Regarding this topic I would appreciate that you tell me in what source files are implemented the corrections. to continue my revising. Thanks in advance. |

All times are GMT -4. The time now is 19:50. |