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

InterFoam for open channel: High velocities in air phase

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By David*

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2021, 10:10
Default InterFoam for open channel: High velocities in air phase
  #1
New Member
 
Zürich
Join Date: Nov 2021
Posts: 5
Rep Power: 4
river_fish is on a distinguished road
Hi everybody,
I am trying to simulate open channel flow using InterFoam solver and RAS k-epsilon for turbulence modelling. What I know is the flowRate at the inlet and the water level at the outlet. I have tried all kinds of different BC (including splitting the inlet and outlet to air and water) but I always get problems with high velocities in the air phase, which lead to a very small time step and eventually to floating point error. I therefore assume a problem with my initial or boundary conditions:

Initial condition: constant water level at 443 m, zero velocity (0 0 0) everywhere

Inlet BC:
1. U: variableHeightFlowRateInletVelocity
2. p_rgh: zeroGradient
3. alpha_water: variableHeightFlowRate

Outlet BC:
1. U: zeroGradient
2. p_rgh: fixedValue uniform 0
3. alpha.water: zeroGradient

Besides inlet and outlet, I defined two patches, for the atmosphere and the channel bottom with the following BC:

Atmosphere:
1. U: zeroGradient
2. p_rgh: totalPressure
3. alpha.water: inletOutlet

Channel bottom:
1. U: fixedValue uniform (0 0 0)
2. p_rgh: zeroGradient
3. alpha.water: zeroGradient

I'm happy to provide you with more information (i.e. BC for k, epsilon and nut) and would be really grateful if I could get some advice on how to solve this problem. Thanks in advance!
Attached Images
File Type: png velocity_channel.png (165.4 KB, 81 views)
File Type: png pressure_channel.png (176.8 KB, 65 views)
river_fish is offline   Reply With Quote

Old   November 10, 2021, 01:14
Default
  #2
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 68
Rep Power: 16
David* is on a distinguished road
In my experience, two things are important to prevent such behavior:
  • initialize an absolutely flat water level, preferably within a small cell layer (~10-20 cm) or even at a cell boundary. For this, you need some effort in mesh generation though.
  • correct for deviation from z=0, either by using interFoam's href or by shifting the entire mesh, to have the water level in your model close (<10 m) to z=0.

Cheers, David
Drew.M likes this.
David* is offline   Reply With Quote

Old   November 13, 2021, 03:09
Default
  #3
New Member
 
Zürich
Join Date: Nov 2021
Posts: 5
Rep Power: 4
river_fish is on a distinguished road
Hi David,

Wow, that was very helpful. I did not realize I had to correct for deviation from z=0. Thanks a lot for pointing this out!

Quote:
Originally Posted by David* View Post
In my experience, two things are important to prevent such behavior:
  • initialize an absolutely flat water level, preferably within a small cell layer (~10-20 cm) or even at a cell boundary. For this, you need some effort in mesh generation though.
  • correct for deviation from z=0, either by using interFoam's href or by shifting the entire mesh, to have the water level in your model close (<10 m) to z=0.

Cheers, David
river_fish is offline   Reply With Quote

Reply

Tags
boundary condition, high air velocity, interfoam


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
High velocities near walls in a cross junction PoSchwarz OpenFOAM Running, Solving & CFD 0 June 14, 2021 13:13
interFoam high air phase velocities indy07cz OpenFOAM Running, Solving & CFD 1 November 8, 2017 05:00
Can people model 2 phase fluid flow (air water) in 6 mm tubing? gaiatechnician Main CFD Forum 0 August 25, 2015 14:20
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 07:59
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


All times are GMT -4. The time now is 00:54.