CFD Online Discussion Forums

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

titio February 5, 2010 12: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 06:27.