CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Laplacian error (

mmahdinia December 17, 2009 10:29

Laplacian error

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

Sorrr I meant this:

volVectorField lapU=fvc::laplacian(U);

gwierink December 18, 2009 04:14

Hi Mani,

What is the error message you got? Do you use the right field type and/or should you use fvm instead of fvc?

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