CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   boundary conditions in a 6 point 1D stencil (http://www.cfd-online.com/Forums/openfoam-programming-development/87389-boundary-conditions-6-point-1d-stencil.html)

sepp April 19, 2011 06:46

boundary conditions in a 6 point 1D stencil
 
hello

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 08:14.