CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Question about twoSymm Function (https://www.cfd-online.com/Forums/openfoam-solving/65932-question-about-twosymm-function.html)

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
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

henrik July 6, 2009 06:32

Dear Titio,

have a look here:

$FOAM_SRC/OpenFOAM/lnInclude/TensorI.H

Henrik

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()),
2*t.zz()
);
}

alimea June 11, 2018 03:11

Quote:

Originally Posted by titio (Post 221085)
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


I have this question too, is there any difference between

Code:

grad(U) + transpose (grad (U))
and

Code:

twoSymm (U)

gu1 December 9, 2018 06:23

Hello,

If I want to write Sē, how do I do it?

I need to write sqrt(Sijē)... but it has not worked.

amuzeshi April 28, 2020 03:11

Quote:

Originally Posted by alimea (Post 695427)
I have this question too, is there any difference between

Code:

grad(U) + transpose (grad (U))
and

Code:

twoSymm (U)

No;
Code:

twoSymm(U) = U + transpose (U)
twoSymm(grad (U)) = grad (U) + transpose (grad (U))


amuzeshi April 28, 2020 03:28

Quote:

Originally Posted by gu1 (Post 718469)
Hello,

If I want to write Sē, how do I do it?

I need to write sqrt(Sijē)... but it has not worked.

Hello,
Code:

sqr(S)
returns Sē. from here.


All times are GMT -4. The time now is 05:42.