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/)
-   -   Gradient Operator (https://www.cfd-online.com/Forums/openfoam-programming-development/108920-gradient-operator.html)

mohanamuraly November 5, 2012 03:51

Gradient Operator
 
Dear All,

Does the fvc::grad operator depend on the boundary type definition of the field variable on which it operates. For example, consider a scalar field variable "rho" and one of the boundaryField of "rho" has a zeroGradient specified.

I understand from a small piece of code I wrote that the boundaryField values of the gradient (fvc::grad(rho)) return zero vectors for this BC.

But will the internal gradient field of "rho" -> fvc::grad(rho) be in any way affected by this zeroGrad boundary condition ?

Regards,

Pavanakumar Mohanamuraly


All times are GMT -4. The time now is 17:20.