|
[Sponsors] |
July 2, 2009, 11:58 |
How to represents terms
|
#1 |
Senior Member
|
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 |
|
July 3, 2009, 03:38 |
|
#2 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Hi Titio,
Code:
volTensorField DU = fvc::grad(U) volTensorField DUT = DU.T() Henrik |
|
|
|
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 |