CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Representation of terms (http://www.cfd-online.com/Forums/openfoam-programming-development/72451-representation-terms.html)

titio February 5, 2010 13:48

Representation of terms
 
Hi Foamers,

I have a doubt about how to represent two terms in OpenFoam.

One is the transpose of grad(U). From my point of view, I can do it simply by writing:

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

However, I believe DUT can be written as DUT=fvc::grad(U)().T(); Is there any difference between the two terms.

The second concerns the calculation of the strain rate DR=grad(U) + transpose of grad(U). Are the following forms equivalent of different

- DR=DUT+DUT.T(); where DUT=DU.T() and DU=fvc::grad(U)
- DR=DU+DUT, where DU=fvc::grad(U) and DUT=fvc::grad(U)().T()

Regards,

António Martins


All times are GMT -4. The time now is 22:50.