CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Laplacian calculation (

mmahdinia December 17, 2009 10:29

Laplacian calculation

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

mmahdinia December 17, 2009 10:31

Sorrry, I meant this:

volVectorField lapU=fvc::laplacian(U);

olwi December 29, 2009 15:17


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


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