CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Question about twoSymm Function (

titio July 1, 2009 09:56

Question about twoSymm Function
Hi Foamers,

In some turbulence models it is used the function twoSymm. I think that when applied to a tensor field
representing the gradient of the velocity, this function gives as a result the deformation rate. In OpenFoam

volTensorField DU = fvc :: grad (U);
volSymmTensorField DR = twoSymm (DU) ;

DR will be equal to grad(U) + transpose (grad (U)), right?

If I am wrong, can anyone explain what the function twoSymm does when applied to a tensor field. I looked in the
manuals, either in PDF and online and I did not find nothing.



henrik July 6, 2009 06:32

Dear Titio,

have a look here:



wiedangel July 23, 2012 09:48

//- Return twice the symmetric part of a tensor
template <class Cmpt>
inline SymmTensor<Cmpt> twoSymm(const Tensor<Cmpt>& t)
return SymmTensor<Cmpt>
2*t.xx(), (t.xy() + t.yx()), (t.xz() + t.zx()),
2*t.yy(), (t.yz() + t.zy()),

All times are GMT -4. The time now is 22:24.