CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Gradient Operator (

mohanamuraly November 5, 2012 04: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 ?


Pavanakumar Mohanamuraly

All times are GMT -4. The time now is 00:59.