CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Spatially varying inlet boundary conditions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 3, 2010, 23:02
Default Spatially varying inlet boundary conditions
  #1
New Member
 
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 8
c_blake is on a distinguished road
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
c_blake is offline   Reply With Quote

Old   August 4, 2010, 03:55
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,187
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
use "groovyBC" , you can find source file and more examples in wiki
http://openfoamwiki.net/index.php/Contrib_groovyBC
nimasam is offline   Reply With Quote

Old   August 4, 2010, 16:08
Default
  #3
New Member
 
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 8
c_blake is on a distinguished road
Thanks heaps!
c_blake is offline   Reply With Quote

Old   August 4, 2010, 21:11
Default
  #4
New Member
 
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 8
c_blake is on a distinguished road
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
c_blake is offline   Reply With Quote

Old   August 5, 2010, 01:37
Default
  #5
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,187
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
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
nimasam is offline   Reply With Quote

Old   August 5, 2010, 02:19
Default
  #6
New Member
 
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 8
c_blake is on a distinguished road
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
c_blake is offline   Reply With Quote

Old   August 5, 2010, 03:32
Default
  #7
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,187
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
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 )
nimasam is offline   Reply With Quote

Old   August 5, 2010, 15:07
Default
  #8
New Member
 
Chris Blake
Join Date: Jun 2010
Posts: 10
Rep Power: 8
c_blake is on a distinguished road
I installed a different version of bison, (not the recommended one) an then it compiled fine.
Thanks for your help, it was most appreciated.
c_blake is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 05:35
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 05:58
Turbulence inlet boundary conditions - eddy viscosity approximation zboud CFX 3 June 1, 2009 18:42
Time varying inlet boundary conditions gbansal OpenFOAM Running, Solving & CFD 1 August 16, 2008 22:47
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54


All times are GMT -4. The time now is 18:49.