CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Spatially varying inlet boundary conditions (http://www.cfd-online.com/Forums/openfoam/78844-spatially-varying-inlet-boundary-conditions.html)

c_blake August 4, 2010 00:02

Spatially varying inlet boundary conditions
 
Hi,
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?
Thanks,
Chris

nimasam August 4, 2010 04:55

use "groovyBC" , you can find source file and more examples in wiki
http://openfoamwiki.net/index.php/Contrib_groovyBC

c_blake August 4, 2010 17:08

Thanks heaps!

c_blake August 4, 2010 22: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?
Thanks,
Chris

nimasam August 5, 2010 02: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 03: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
Thanks,
Chris

nimasam August 5, 2010 04: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 16: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 17:36.