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

Question about twoSymm Function

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree6Likes
  • 1 Post By titio
  • 2 Post By henrik
  • 3 Post By wiedangel

Reply
 
LinkBack Thread Tools 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: 8
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 likes this.
titio is offline   Reply With Quote

Old   July 6, 2009, 06:32
Default
  #2
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 275
Rep Power: 9
henrik is on a distinguished road
Dear Titio,

have a look here:

$FOAM_SRC/OpenFOAM/lnInclude/TensorI.H

Henrik
tiam and juaneco2710 like this.
henrik is offline   Reply With Quote

Old   July 23, 2012, 09:48
Default
  #3
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 7
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()
);
}
tiam, juaneco2710 and chengyu like this.
wiedangel is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 09: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 07:23.