CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Setting BCs for Riverine Flows using Interfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree21Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 29, 2012, 17:54
Default Setting BCs for Riverine Flows using Interfoam
  #1
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 17
Rep Power: 16
kflora is on a distinguished road
Hi Foamers,

I am wanting to model open channel flow for a river and am unsure of the best means to define the inlet and outlet boundary conditions using VOF. With rivers one typically has the inflow rate and downstream water surface elevation (WSEL) defined as known values.

Using interFoam with OpenFoam 2.1.x, I can generate a specified flow rate using funkySetBoundaryFields by creating a known area at the inlet by setting alpha =1 and using a fixed velocity so long as I make sure that this area is fully submerged under water. However, I am not sure the best way to "fix" the downstream depth given that it is free surface flow. Using a zeroGradient for the velocity at the outlet leads to the water surface changing due to changes in the calculated velocites from the initial values near the outlet. I have had some success duplicating my inlet approach described above at the outlet as well (fixed area, fixed velocity) so that my Flow In must equal my Flow Out. To clarify my approach, I have attached a screen shot showing my outlet condition for a simplified geometry of a contracted bridge crossing. If I set my initial water surface using setFields, then the total volume of water in the system is constant though the water surface may adjust locally within the system which is OK.

This approach seems to work (sometimes, but other times it seems to be unstable); however, I understand that one normally prescribes the velocity (or flow rate) at the inlet and pressure at the outlet. Because my case uses VOF, I'm not sure if or how one can specify a pressure at the outlet to control the water surface elevation.

Any thoughts on how to use pressure at the outlet to achieve my goal of having a fixed WSEL or any other suggested changes that I could make to the BCs would be very helpful. I have included my basic files if you wold like to see the specifics. Thanks in Advance.
Attached Images
File Type: jpeg outlet.jpeg (16.4 KB, 1154 views)
Attached Files
File Type: zip 0.zip (3.6 KB, 659 views)
File Type: zip system.zip (3.3 KB, 351 views)
File Type: zip constant.zip (3.5 KB, 311 views)
File Type: txt Allrun.txt (123 Bytes, 235 views)
arnau1985, Yage, elli_pm and 3 others like this.
kflora is offline   Reply With Quote

 

Tags
interfoam, openfoam, river, vof


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up interFoam for sloshing santiagomarquezd OpenFOAM Running, Solving & CFD 2 August 11, 2017 04:08
[ICEM] Setting the BCs sreekargomatam ANSYS Meshing & Geometry 1 July 12, 2011 19:28
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
BC's for free flows kev FLUENT 0 November 8, 2005 23:02
Warning 097- AB Siemens 6 November 15, 2004 04:41


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