CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   GradU at the faces (http://www.cfd-online.com/Forums/openfoam-solving/60601-gradu-faces.html)

sampaio May 11, 2005 15:21

Hi All, Does OpenFoam have an
 
Hi All,
Does OpenFoam have an explicit scheme to calculate the Grad(U) at cell faces, like simply taking the difference between the two values at adjacent center points and dividing by the distance?

Thanks
Luiz

hjasak May 11, 2005 15:27

Try snGrad: OpenFOAM-1.1/sr
 
Try snGrad:

OpenFOAM-1.1/src/OpenFOAM/lnInclude/snGradScheme.H

Enjoy,

Hrv

sampaio May 11, 2005 15:40

Thanks Hrvoje, But I wanted t
 
Thanks Hrvoje,
But I wanted the full gradient, i.e. the tensor, not the surface normal.

Probably I will have to implement one based on snGrad, right?

Thanks a lot,
Luiz

hjasak May 11, 2005 15:43

The difference between the two
 
The difference between the two values around the face gives you just the surface normal gradient.

For the full gradient, interpolate the cell centre gradient and if you're really keen, rip out the surface normal component and replace it with the face snGrad.

Hrv


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