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

InterFOAM, restrittive subcritical downstream system. How to set up BCs?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2023, 06:30
Question InterFOAM, restrittive subcritical downstream system. How to set up BCs?
  #1
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Hello to everyone,

In interFOAM simulations, the problems I find tricky are where there is higher tailwater than you get with zeroGradient. E.g. restrictive subcritical downstream system.

In these kind of problems how do you set up the boundary conditions?

e.g.

How to set up a fixed water level at the outlet higher than what you get with zeroGradient?

I searched in the forum and on the internet to find the right boundary conditions to use, without any success.

Thanks...

Miguel
Miguel Hernandez is offline   Reply With Quote

Old   February 6, 2023, 04:21
Default The wrong question...
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by Miguel Hernandez View Post
How to set up a fixed water level at the outlet higher than what you get with zeroGradient?
The question shoudn't be about how to set a water depth, but how to set the correct specific energy that corresponds to a certain potential energy and a certain kinetic energy. Notice that, by corollary, a certain solution for specific energy proposes two water depths which, at the same time, have to respect mass conservation (obviously).

So you find yourself with 2 equations for 2 incognitas which can be exploited to enforce your specific energy at the outlet. There's one little problem: interFoam doesnt solve energy directly, so you must enforce energy at the boundaries via velocity or pressure.

In steady (as in d Q / D t = 0) simulations, the simplest form is to set up the velocity that corresponds to the "kinetic energy" contribution in the specific energy equation at the outlet (pressure and alpha remain Neumann). By corollary, mass conservation will enforce the water depth indirectly.

In transient (as in d Q / D t != 0) simulations, the total pressure (or specific energy times density) should be set along with alpha at the height that corresponds to the "potential energy" contribution to the specific energy IN WATER. The corrector step imposed at the outlet BC for velocity will adjust approximately to the pressure while enforcing mass conservation.
Santiago is offline   Reply With Quote

Old   February 6, 2023, 15:50
Default
  #3
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Thank you Santiago, very interesting… i have to manage transient simulations… can you “translate “ your answer in a more practical way? Which boundary conditions would you use to recreate that? I mean, for alpha, p_rgh and U…

Thank you very much…
Miguel Hernandez is offline   Reply With Quote

Old   February 7, 2023, 08:40
Default
  #4
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi Miguel,

I think this thread can be useful for you:

Boundary Condtions for Open Channel Flow with interFoam

Have a look at post #11

I hope it helps
vatavuk is offline   Reply With Quote

Reply

Tags
bounadry condition, 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
how to set BCs when u know p bcs but didn't know u bcs puppetbilly OpenFOAM Running, Solving & CFD 0 April 6, 2022 00:46
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
how to set initial pressure in a closed system ypbanjare FLUENT 1 March 12, 2007 11:34
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27
level set for multi-fluids system? Pei-Ying Hsieh Main CFD Forum 1 July 19, 2000 16:42


All times are GMT -4. The time now is 19:46.