CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   laplacian(A,p) and div(A*fvc::grad(p))? difference? (https://www.cfd-online.com/Forums/openfoam-programming-development/122686-laplacian-p-div-fvc-grad-p-difference.html)

sharonyue August 25, 2013 21:57

laplacian(A,p) and div(A*fvc::grad(p))? difference?
 
Hi All,

In mathematics, I think laplacian(A,p) and div(A*fvc::grad(p)) are the same,

so can I turn this code into:
Code:

fvScalarMatrix pEqn
            (
                fvm::laplacian(rAU, p) == fvc::div(phiHbyA)
            );

fvScalarMatrix pEqn
            (
                fvm::div(A*fvc::grad(p)) == fvc::div(phiHbyA)
            );

Thanks for your attention.


All times are GMT -4. The time now is 13:04.