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

interFoam: defining boundary conditions (at inlet and outlet) based on water heights

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2024, 10:31
Red face interFoam: defining boundary conditions (at inlet and outlet) based on water heights
  #1
Senior Member
 
Join Date: Jun 2020
Posts: 100
Rep Power: 6
atul1018 is on a distinguished road
Hello CFD community

I am trying to set up a case where I know the water heights (free surface elevation) at the inlet and outlet, so the flow should be pressure-driven (water height difference). I am using interFOAM solver. I can initialize the water height using "setFields," but I am unsure how to set up the p_rgh for the inlet and outlet correctly. I have attached a picture describing my problem.

p_rgh (=p-(rho*g*h)) is the dynamic pressure, which should be based on velocity, which is not known. The total head is also not known, so specifying the dynamic head is not possible as no velocity is known at the inlet and outlet. There are some options to specify static or totalhead, which should be based on water height (e.g. prghTotalPressure, prghPressure, prghTotalHydrostaticPressure, etc.).

I tried with these options and specified as rho*g*h at the inlet and outlet. My main concern is that I have 3.2 m water height at the outlet and 2.5 m water height at the inlet (the inlet and outlet are located at different heights). This means I have 24525 Pa (rho*g*2.5) at the inlet and 31392 Pa (rho*g*3.2) at the outlet (outlet has higher static pressure than inlet). Simulations run, but results look non-physical and unrealistic. Random motion of water is observed. Please help me to set up the bc properly at the inlet and outlet, which should be based on water height.

PS: I see in the documents that when specifying p_rgh bc based on water height (prghTotalPressure, prghPressure, ...), there is an option to specify hRef. I wonder if I can use this to set up the pressure-based bc for my case.

Best Regards
Atul
Attached Images
File Type: jpg case.jpg (28.9 KB, 5 views)
atul1018 is offline   Reply With Quote

Reply

Tags
interfoam, pressure driven flow, water height


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
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
interFoam (HELYX-OS) pressure boundary conditions SFr OpenFOAM Running, Solving & CFD 8 June 23, 2016 17:36
Boundary conditions - same velocity boundary field in the inlet and outlet t.oliveira OpenFOAM Running, Solving & CFD 5 June 13, 2016 19:20
Using Outlet and Inlet Boundary Conditions tylerplowright CFX 8 January 28, 2014 18:22
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


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