CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   boundary conditions in a 6 point 1D stencil (

sepp April 19, 2011 06:46

boundary conditions in a 6 point 1D stencil

I'm trying to implement a convection-scheme with a different stencil. this stencil is a 1d 6 cell stencil. for a faceI there are 3 cells right of faceI and 3 left of faceI.
Now I've got little trouble with boundary conditions.
before making the interpolation via summating weighted cell velocities I've got to replace the ones out of boundary.
I think I must differentiate between all the boundary conditions. Is there a implemented function I can use for or the replacement or I can adopt code of it?

actually I'm dealing with fixedGradient condition. is there a easy way to get the stored boundary condition of a boundary face?

thanks a lot

All times are GMT -4. The time now is 16:11.