CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Spatially varying inlet boundary conditions (

c_blake August 3, 2010 23:02

Spatially varying inlet boundary conditions
does anyone know how to set the boundary conditions so that they are a function of the coordinate system. I need to have the inlet boundary condition for velocity, so that it is a function of the height in the domain. is this possible?

nimasam August 4, 2010 03:55

use "groovyBC" , you can find source file and more examples in wiki

c_blake August 4, 2010 16:08

Thanks heaps!

c_blake August 4, 2010 21:11

I tried installing groovyBC however I get an error saying that there is no such file or directory as PatchValueExpressionLexer.C. I have the recommended version of Bison installed 2.4.1,
does anyone know what the problem is or how I can fix this?

nimasam August 5, 2010 01:37

for compiling groovyBC in ur system:
1) install Bison (you can find it in package manger in ubuntu or fedora )
2) through terminal , go to the groovyBC directory and write bellow command
wmake libso

c_blake August 5, 2010 02:19

Thats exactly what I did, I have the latest version of Bison installed,
however when I run > wmake libso
thats when the error pops up saying that there is no such file or directory as PatchValueExpressionLexer.C

nimasam August 5, 2010 03:32

i dont whats ur linux distribution but i guess its not fedora :) because bison has been installed there before hand
but if you use ubuntu as operating system, in package manager, among different bison , u should use which one supported by ubuntu label !!!! (but im not sure :))

c_blake August 5, 2010 15:07

I installed a different version of bison, (not the recommended one) an then it compiled fine.
Thanks for your help, it was most appreciated.

All times are GMT -4. The time now is 10:55.