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/)
-   -   What value is returned for gradUneighbourfaceI if faceI is at a boundary (http://www.cfd-online.com/Forums/openfoam-solving/60187-what-value-returned-graduneighbourfacei-if-facei-boundary.html)

sampaio June 1, 2006 13:04

Dear All, I am looping thro
 
Dear All,

I am looping through all faceI in "owner" list:


const unallocLabelList& owner = mesh.owner();
const unallocLabelList& neighbour = mesh.neighbour();

gradU = fvc::grad(U);

forAll(owner, faceI)
{

}

and I would like to use the value of gradU[neighbour[faceI]] for some operations....

The question is: when a boundary face is taken as "faceI", I know there is no neighbour associated with it, so what would be the value returned by gradU[neighbour[faceI]]?

sampaio June 1, 2006 13:14

Sorry, forgot to ask also abou
 
Sorry, forgot to ask also about U[neighbour[faceI]]...


All times are GMT -4. The time now is 05:30.