CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Question about operators (http://www.cfd-online.com/Forums/openfoam-solving/109392-question-about-operators.html)

batta31 November 16, 2012 09:52

Question about operators
 
Hi to everybody! I've got a really simple question:

if I want to calculate a surface normal gradient is there a difference between

u.snGrad()

and

volVectorField gradu = fvc::grad(u)
gradu.boundaryField()[patchI].patchInternalField() & patch.n()
?

Thanks in advance,
Simone


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