Gradient at face center of a scalar volume field
Hello
How do I get the gradient vector at the face centers, given a scalar volume field ? |
Praveen, it's usually achieved by a linear interpolation of fvc::grad(field) at faces. The following is an example taken from:
src/transportModels/interfaceProperties/interfaceProperties.C Code:
00113 // Cell gradient of alpha |
Thanks. So I guess there is no available scheme to directly obtain face gradients by applying a green-gauss or least-squares scheme centered at the face-center.
|
What do you mean by directly? You set the discretization of grad(alpha) and interpolate(gradAlpha) in fvSchemes as you're used to.
|
Without interpolation. Define a volume around the face center and apply green-gauss theorem. Or least squares method.
|
If you're referring to a staggered kind of mesh, I don't think such a thing is possible in OpenFOAM
|
All times are GMT -4. The time now is 09:41. |