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

How to represents terms

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2009, 11:58
Default How to represents terms
  #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,

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?

Regards,

Titio
titio is offline   Reply With Quote

Old   July 3, 2009, 03:38
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
Hi Titio,

Code:
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
henrik 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
rotational and inviscid Mike Main CFD Forum 40 November 9, 2023 06:03
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 16: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:59.