CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   fvMatrix.A() (http://www.cfd-online.com/Forums/openfoam-programming-development/83238-fvmatrix.html)

santiagomarquezd December 20, 2010 17:03

fvMatrix.A()
 
Hi all, I was wondering why .A() divides the diag() values by mesh.V() values. Another question is how only n values are obtained by A even from a fvVectorMatrix which has 3*n equations for 3*n unknowns.

Thanks in advance.

santiagomarquezd December 25, 2010 01:17

Regarding the first question I was doing some dimensional analysis and it shows that in order to do things like:

Code:

00096            U -= rUA*fvc::grad(p);
in icoFoam.C it is necessary to remember that matrix coefficients in FVM are obtained from volume integrals, then if one operates with no integrated quantities like fvc::grad(p) this coefficients have to be divided one by one by the corresponding cell volume.

Can anybody confirm that?

Regards.

sharonyue June 6, 2013 23:16

Hi Santiago, I think my problem is the same with yours, http://www.cfd-online.com/Forums/ope...n-icofoam.html Did you find the solution?

Thanks


All times are GMT -4. The time now is 16:58.