CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Question about twoSymm Function

Register Blogs Community New Posts Updated Threads Search

Like Tree14Likes
  • 3 Post By titio
  • 4 Post By henrik
  • 7 Post By wiedangel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2009, 09:56
Default Question about twoSymm Function
  #1
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 17
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
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
wangjl, adhiraj and amuzeshi like this.
titio is offline   Reply With Quote

Old   July 6, 2009, 06:32
Default
  #2
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Dear Titio,

have a look here:

$FOAM_SRC/OpenFOAM/lnInclude/TensorI.H

Henrik
henrik is offline   Reply With Quote

Old   July 23, 2012, 09:48
Default
  #3
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15
wiedangel is on a distinguished road
//- 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()
);
}
wiedangel is offline   Reply With Quote

Old   June 11, 2018, 03:11
Default
  #4
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by titio View Post
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)
alimea is offline   Reply With Quote

Old   December 9, 2018, 06:23
Default
  #5
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 225
Rep Power: 10
gu1 is on a distinguished road
Hello,

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

I need to write sqrt(Sijē)... but it has not worked.
gu1 is offline   Reply With Quote

Old   April 28, 2020, 03:11
Default
  #6
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by alimea View Post
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 is offline   Reply With Quote

Old   April 28, 2020, 03:28
Default
  #7
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by gu1 View Post
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.
amuzeshi is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 08:53
Elements that limit the Courant number skabilan OpenFOAM Running, Solving & CFD 9 July 3, 2008 12:07
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
UDF question Kerem FLUENT 0 April 3, 2006 19:24
Custom Field Function Question Jason FLUENT 0 August 4, 2004 10:23


All times are GMT -4. The time now is 09:52.