double dot tensor product (double inner product) implementation
I'm trying to solve energy equation using a modified icoFoam solver.
I would like to take into account viscous dissipations in energy equation and to do that I need to calculate the double inner product between the viscous stress tensor and gradient of velocity.
I tried this:
So it's seems to be the double dot product implementation which doesn't work...
Any ideas ? (I use OpenFoam1.7.1)
Thanks in advance
just a suggestion but I not sure it works:
Thank you Amir,
I understood my mistake !
T was declared as a vector field in my createField.H !
I don't understand anymore why it successed to compile without the inner product term. Although laplacian can be a vector field, I believed that the divergence one cannot...
Maybe the divergence of a tensor field is a vector field ?
Anyway, that's working perfectly now.
|All times are GMT -4. The time now is 04:31.|