|
[Sponsors] |
August 4, 2010, 00:02 |
Spatially varying inlet boundary conditions
|
#1 |
New Member
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 15 |
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 |
|
August 4, 2010, 04:55 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
use "groovyBC" , you can find source file and more examples in wiki
http://openfoamwiki.net/index.php/Contrib_groovyBC |
|
August 4, 2010, 17:08 |
|
#3 |
New Member
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 15 |
Thanks heaps!
|
|
August 4, 2010, 22:11 |
|
#4 |
New Member
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 15 |
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 |
|
August 5, 2010, 02:37 |
|
#5 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
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 |
|
August 5, 2010, 03:19 |
|
#6 |
New Member
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 15 |
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 |
|
August 5, 2010, 04:32 |
|
#7 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
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 ) |
|
August 5, 2010, 16:07 |
|
#8 |
New Member
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 15 |
I installed a different version of bison, (not the recommended one) an then it compiled fine.
Thanks for your help, it was most appreciated. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
non reflective boundary conditions for incompresible flow | Pascal_doran | OpenFOAM Programming & Development | 16 | August 25, 2015 06:35 |
Implementation of boundary conditions for FVM | Tom | Main CFD Forum | 7 | August 26, 2014 06:58 |
Turbulence inlet boundary conditions - eddy viscosity approximation | zboud | CFX | 3 | June 1, 2009 19:42 |
Time varying inlet boundary conditions | gbansal | OpenFOAM Running, Solving & CFD | 1 | August 16, 2008 23:47 |
Boundary conditions? | Tom | Main CFD Forum | 0 | November 5, 2002 02:54 |