CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   inner product of two vectors in OpenFoam (https://www.cfd-online.com/Forums/openfoam/102607-inner-product-two-vectors-openfoam.html)

sam1364 May 29, 2012 19:28

inner product of two vectors in OpenFoam
 
Hi,

I have a mathematical operation in the form of (depsilon/dxi*depsilon/dxi) in which d(epsilon)/dxi is the gradient of epsilon. So, I have a inner product of two gradient vectors?!
Can I show this inner product as the follwoing way?!

fvc(grad(epsilon))&fvc(grad(epsilon))

nimasam May 30, 2012 03:47

yes, it depends on the operator between two! vector , if it is inner product, then
it would be fvc::grad(epsilon) & fvc::grad(epsilon)


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