CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Application of boundary conditions at cell center (http://www.cfd-online.com/Forums/openfoam/72342-application-boundary-conditions-cell-center.html)

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,

Matt

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,

Hrv

herbert February 4, 2010 10:42

Hi,

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

Regards
Stefan


All times are GMT -4. The time now is 15:13.