CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

How to represents terms

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

LinkBack Thread Tools Display Modes
Old   July 2, 2009, 11:58
Default How to represents terms
Senior Member
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 10
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
Hi Foamers,

I have a question concerning C++ programing, when considering OpenFoam. In my modelling I have to consider
a term in the form grad(U)+Transpose(Grad(U)), that corresponds to the deformation rate. What I do is:

volTensorField DU = fvc::grad(U)
volTensorField DUT = DU.T()

I think in this way that when I do fvc::grad(U) for DU, the second expressions is equivalent to write
DUT = fvc::grad(U.T()). The first form works without problems, the second gives me a compilation error.

Am I doing something wrong? If so, somebody has some idea on how I should made the calculation of this term?


titio is offline   Reply With Quote

Old   July 3, 2009, 03:38
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 277
Rep Power: 11
henrik is on a distinguished road
Hi Titio,

volTensorField DU = fvc::grad(U)
 volTensorField DUT = DU.T()
Here you are missing ";". Please post the complete code if this is not the problem.

henrik is offline   Reply With Quote


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
rotational and inviscid Mike Main CFD Forum 7 April 20, 2011 02:25
Source Terms in Momentum Balance vidyaraja Main CFD Forum 0 May 25, 2009 15:24
Question in definition of terms in solve titio OpenFOAM Running, Solving & CFD 0 March 19, 2009 17:02
Point implicit treatment of k-e source terms andy Main CFD Forum 5 June 9, 2006 11:03
K-Epsilon model? Brindaban Ghosh Main CFD Forum 2 June 24, 2000 04:22

All times are GMT -4. The time now is 14:46.