- **OpenFOAM Running, Solving & CFD**
(*http://www.cfd-online.com/Forums/openfoam-solving/*)

- - **Question about twoSymm Function**
(*http://www.cfd-online.com/Forums/openfoam-solving/65932-question-about-twosymm-function.html*)

Question about twoSymm FunctionHi 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() ); } |

All times are GMT -4. The time now is 18:34. |