CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   doubt in representation the transpose of the velocity gradient (http://www.cfd-online.com/Forums/openfoam-solving/70300-doubt-representation-transpose-velocity-gradient.html)

titio November 19, 2009 15:11

doubt in representation the transpose of the velocity gradient
 
Hi Foamers,

I have a problem where I have to use the gradient of the velocity and its transpose. To calculate the gradient of the velocity I can do it using the expression:

DU=fvc::grad(U);

However, the expression DUT=fvc::grad(U).T(); does not work. What I am doing is write DUT=DU.T();. Is this equivalent to the expression that I am writing. I believe it is as DUT as an variable will inherit all the characteristics of the variable DU. Both were defined as tensor fields initialized in the createFields.H file

If I am doing something, or there is a better way, please somebody tell how I can do this correctly.

Regards,

António Martins


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