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

OpenFOAM open channel flow downsteam boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2012, 08:34
Default OpenFOAM open channel flow downsteam boundary condition
  #1
New Member
 
Jeremy Bricker
Join Date: Jan 2012
Location: Tokyo
Posts: 2
Rep Power: 0
Brickman is on a distinguished road
Hi folks,

I'm using Interfoam to solve a simple subcritical open channel flow problem. My grid is regular, rectangular. Boundary conditions are:

Upstream boundary (inlet)
alpha1: timeVaryingMappedFixedValue (constant in time, for now)
p_rgh: buoyantPressure
U: fixedValue

Downstream boundary (outlet)
alpha1: timeVaryingMappedFixedValue (constant in time, for now)
p_rgh: buoyantPressure
U: zeroGradient

The upstream BC is basically a prescribed flow rate, while the downstream BC is a prescribed water level. For the alpha1 BC's, I specify points below the free surface as alpha1=1, and above the free surface as alpah1=0 (this is how I specify the water level). Since the flow is subcritical, I expect it to be controlled by the downstream boundary condition, and to cause water to back-up upstream. However, instead of this happening, a small lump with a large alpha1 develops just 1 cell upstream of my downstream boundary, as shown in the attached plot.

Can anyone tell me if I'm going about setting my boundaries incorrectly? Should I be specifying my water level and flow rate in another way? In the end, I'm trying to run the problem this way in order to simulate a time-varying water level in the correct way (with downstream control). Previously, I got the problem to run only with upstream control (all downstream boundary variables zeroGradient), but this is not really the correct way to run the problem of subcritical flow. Any guidance would be appreciated.

Thanks,
Jeremy
Attached Images
File Type: jpg alpha1.jpg (99.4 KB, 418 views)
Brickman is offline   Reply With Quote

Old   November 5, 2012, 11:16
Default Outlet BC
  #2
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 17
Rep Power: 16
kflora is on a distinguished road
Jeremy,

I too struggled with this issue for a while. My solution is posted here.

Let me know if it works for you as well.

Kevin
kflora is offline   Reply With Quote

Old   November 5, 2012, 20:14
Default Outlet BC
  #3
New Member
 
Jeremy Bricker
Join Date: Jan 2012
Location: Tokyo
Posts: 2
Rep Power: 0
Brickman is on a distinguished road
Hi Kevin,

Thank you very much for pointing me to your post. I understand your method. I reckon I could use that (fixed value velocity on the outlet boundary) to make a time-varying downstream water level by making a time-varying outflow speed.

For now, I've been trying the problem of a specified downstream water level by getting rid of the boundaries all together. I've got my domain set up like a flume now, with solid walls and a well at either end, upwelling into the flume on the upstream side, and downwelling out of the flume on the other (so the BC is fixed value velocity in both cases). Then I control the inflow and outflow flow rates in order to control the water level and flow speed in the test section.

Thanks again for your reply and help.

Jeremy
Brickman is offline   Reply With Quote

Reply


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
Open Channel Flow ElanMorin FLUENT 4 February 25, 2015 16:26
Open channel flow motaba Main CFD Forum 4 March 26, 2011 03:22
Wave generation using open channel wave boundary condition krishnaprasad Main CFD Forum 0 March 3, 2011 21:28
Yacht in Open Channel Flow andreimour FLUENT 1 October 14, 2010 23:54
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50


All times are GMT -4. The time now is 17:08.