CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Application of boundary conditions at cell center (

mchurchf February 2, 2010 17:56

Application of boundary conditions at cell center
Hello all,

I would like to implement a wall boundary condition such that nuSGS is specified at the CELL CENTER of the cell adjacent to the wall instead of the cell face.

Can anyone give me any direction in doing this?

Thank you,


hjasak February 3, 2010 05:49

Well, if it is in a cell centre, it is not a boundary condition, right?

I guess what you want to do is to fix a value in a cell by eliminating the equation from the matrix. For this purpose you need something called "constraint". Have a look at how eg a pressure equation fixes the reference level.

Good hunting,


herbert February 4, 2010 10:42


I think you can also use setValues() which is a member of fvScalarMatrix.


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