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/)
-   -   Equation representation (https://www.cfd-online.com/Forums/openfoam-programming-development/124861-equation-representation.html)

luckycfd October 14, 2013 15:39

Equation representation
 
Hi FOAMer,

The code below is from icoFoam.C source code, what is PDEs form of the this code?


Code:

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

 solve(UEqn == -fvc::grad(p));

Regards,
Hassan

luckycfd October 15, 2013 07:02

Hi,
Is this correct?

\frac{\partial U}{\partial t}+ \nabla \cdot
( \phi U)- \nabla \cdot (\nu \nabla U) = - \nabla p

regards

ahmmedshakil October 15, 2013 07:32

Yes it's correct.


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