CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Outlet partially under water - correct BC?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2021, 10:24
Default Outlet partially under water - correct BC?
  #1
New Member
 
Dani
Join Date: Jan 2021
Posts: 4
Rep Power: 5
blackbow20 is on a distinguished road
Dear CFD friends


I have to simulate the discharge of a canal into a lake. In such cases, the canal (pipe) lies quite often partially below the water surface. This looks like this, for example: Link

I'd like to simulate this with a two-phase simulation (water/air) and stationary. Now I have some troubles finding a appropriate boundary condition. I tried to solve it with a pressure BC with pascal's law at the outlet patch using a step function (OutletStepFunction) as follows:

Let's assume we have a pipe diameter of 1 m. The lake water level is at 0.7 m. My step function returns:
- 1 if the z value is below 0.7 m (water phase)
- 0 if the z value is above 0.7 m (air phase)

At the outlet i defined the relative static pressure as follows:
Quote:
p_static = stepfunction*rho_water*g*h
implementet in CFX for the relative static pressure:

Quote:
OutletStepFunction*997[kg m^-3]*g*z
This should lead to the right static pressure below water surface and to the reference pressure above water surface. When i check the inlet pressure distribution after initialisation it looks quite right. But sadly this is not stable. I also tried it with two different patches at the outlet (water & air), but got the same problem.

Is there an error in my reasoning? Or what would be a good BC to solve this problem?

Thanks and best regards
blackbow
blackbow20 is offline   Reply With Quote

Old   November 24, 2021, 16:50
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,728
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Conceptually your approach is correct but as you noticed, getting this sort of thing to be numerically stable is very hard. Specifying a BC with both phases and a complex pressure field is always going to be challenging.

Often the best way to treat these cases is to include the pipe exit in your model and put the boundary condition further up the pipe (rather than making the pipe exit the BC). You then put a BC up the pipe which is purely a single phase. So bend the pipe so you can make the boundary completely under water or completely above the water. Then the BC is far simpler and much easier to converge.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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
pressure outlet on star ccm+ : water heater tank ensiame STAR-CCM+ 2 September 12, 2022 07:15
interFoam, water flowing down a curved surface: is it correct? be89 OpenFOAM Running, Solving & CFD 2 April 21, 2017 13:22
Water accumulation at outlet Henry Arrigo FLUENT 0 January 4, 2015 09:15
Water vapour condensation in CFX-5.7.1 hdj CFX 1 November 27, 2005 07:15
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


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