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 script 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. Regards, Titio |
Dear Titio,
have a look here: $FOAM_SRC/OpenFOAM/lnInclude/TensorI.H Henrik |
//- 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()), 2*t.zz() ); } |
Quote:
I have this question too, is there any difference between Code:
grad(U) + transpose (grad (U)) Code:
twoSymm (U) |
Hello,
If I want to write Sē, how do I do it? I need to write sqrt(Sijē)... but it has not worked. |
Quote:
Code:
twoSymm(U) = U + transpose (U) |
Quote:
Code:
sqr(S) |
All times are GMT -4. The time now is 05:42. |