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/)
-   -   Questions about the fvc and fvm (http://www.cfd-online.com/Forums/openfoam-programming-development/91180-questions-about-fvc-fvm.html)

starboy1985 August 2, 2011 15:52

Questions about the fvc and fvm
 
Hi, I am writing a code which need to generate the fvc space from fvm matrix.

For example, I have
fvVectorMatrix UEqn
(
fvm::ddt(U)
+fvm::div(phi, U)
- fvm::laplacian(nu, U)
);

How could I get the same geometricField (fvc::ddt(U)+fvc::div(phi, U)-fvc::laplacian(nu,U)+fvc::grad(p))) just use fvmatrix UEqn and volVectorField U?

I just do the UEqn.Amul for the internalField and add the aboundary terms, but I get different result. Anyone can help me to know hwo to do this?

Thank you very much.


All times are GMT -4. The time now is 03:51.