CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   gradient component (http://www.cfd-online.com/Forums/openfoam/83037-gradient-component.html)

johndeas December 12, 2010 16:03

gradient component
 
Hi,

This is a very simple question. Can you confirm to me that grad(U).component(tensor::YZ) returns dV/dZ ? Although it seems logical, it is not that clear from the 1.6 programmer guide.

Regards,

John

ehsan August 4, 2016 01:06

Formula in OF
 
Hello,
May I ask you whether is it correct to code the below formula in OF
as:
Gij=(sqr(delta_X())*fvc::grad(U).component(tensor: :XX)*fvc::grad(U).component(tensor::YX))+(sqr(delt a_Y())*fvc::grad(U).component(tensor::XY)*fvc::gra d(U).component(tensor::YY))+(sqr(delta_Z())*fvc::g rad(U).component(tensor::XZ)*fvc::grad(U).componen t(tensor::YZ))
Best Regards
Ehsan


All times are GMT -4. The time now is 03:28.