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/)
-   -   Laplacian calculation (http://www.cfd-online.com/Forums/openfoam-programming-development/71162-laplacian-calculation.html)

mmahdinia December 17, 2009 10:29

Laplacian calculation
 
Hi,

I want to calculate d2U_i/(dx_j.dx_j) (j=1,2,3, i.e. summation convention). When I use:

volTensorField lapU=fvc::laplacian(U);

The code gives me an error. Does Anyone has an idea about its implementation?

Thanks in advance
Mani

mmahdinia December 17, 2009 10:31

Sorrry, I meant this:

volVectorField lapU=fvc::laplacian(U);

olwi December 29, 2009 15:17

Hi,

Please say what the error is, otherwise it's a bit difficult for someone to answer...

/Ola


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