How to represents terms
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?
|All times are GMT -4. The time now is 07:58.|