CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Curl in OpenFoam (https://www.cfd-online.com/Forums/openfoam-solving/148346-curl-openfoam.html)

Carlen February 10, 2015 02:14

Curl in OpenFoam
 
Does anyone know how to find the curl of a velocity field in OpenFoam?

I tried but got this error

error: no matching function for call to ‘curl(Foam::vector&)’
vector curlUc = fvc::curl(Uc);

Can anyone please tell me how to solve this?

Thank you in advance

vigneshTG February 10, 2015 08:36

Quote:

Originally Posted by Carlen (Post 531188)
Does anyone know how to find the curl of a velocity field in OpenFoam?

I tried but got this error

error: no matching function for call to ‘curl(Foam::vector&)’
vector curlUc = fvc::curl(Uc);

Can anyone please tell me how to solve this?

Thank you in advance

I think you should write vectorField curlUc = fvc::curl(Uc);


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