|
[Sponsors] |
September 28, 2012, 08:52 |
Tank emptying
|
#1 |
Senior Member
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16 |
Hi,
I'm trying to simulate the emptying of a tank with OF. As I'm a newbie in OF, i have some doubt about the BCs. The tank is 25x25 cm and has an height of 7 cm; the water height is equal to 5 cm and is drained through an hole at its bottom (d=1.3 cm). The top of the tank is opened to atmosphere. My doubt are about the boundary conditions for pressure and alpha1. For the pressure I'm thinking to use a TotalPressure bc at the top (the same used in the DamBreak tutorial), zeroGradient at the outlet and zeroGradient at the wall (or should I use buoyantPressure for the walls?) For alpha1 I want to use 0 for the top (only air), 1 for the outlet (only water) and zeroGradient at the walls. Are this settings right? Any tips about this particular case are welcome! Thank you in advance. Andrea |
|
September 29, 2012, 05:35 |
|
#2 |
Member
|
i suggest totalPressure for pressure at the outlet. make the water flow out to the atmospheric pressure (probably 0 if you haven't defined it) or use fixedValue = 0. you can use pressureInletOutletVelocity for the velocity at the outlet
|
|
September 30, 2012, 05:38 |
|
#3 |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18 |
Hi,
I would set inletOutlet on alpha1 on the outlet. If you on some point get a vortex which transports air out through the outlet you'll get into trouble if you prescribe a fixedValue. Good luck! |
|
October 1, 2012, 08:16 |
problem with total pressure = 0
|
#4 |
New Member
Sam Mathew
Join Date: Apr 2010
Location: India
Posts: 19
Rep Power: 16 |
On a sample problem, I've tried the same boundary condition on the bottom outlet as top atmosphere; which effectively means,
p_rgh (p - rho*g*h) being totalPressure U being pressureInletOutletVelocity alpha1 being inletOutlet When I compare it to the analytical expression for the outlet flow rate and velocity {i.e., sqrt(2*g*h)}, the OpenFOAM results are around 1/3rd this value. I performed the simulation in ANSYS FLUENT with Pressure Inlet (total gauge pressure = 0) and Pressure Outlet (static pressure outlet = 0) and the results seem to be acceptable to the analytical expression with some slight reduction due to viscous and other losses. So, I am not quite sure if the boundary conditions suggested above are really correct?! Any comments from others who have experience? Thanks and regards, Sam |
|
October 1, 2012, 14:15 |
|
#5 |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18 |
Hi,
Have a look in Code:
...tutorials/multiphase/interFoam/ras/waterChannel For U on the outlet it's inletOutlet. They do set zeroGradient on alpha at the outlet. Which I think is fine unless there is any risk of reversed flow. In that case I would use inletOutlet. Let us know how it goes! /Nicolas |
|
October 2, 2012, 05:18 |
|
#6 |
Member
|
When, how and where did you measure the velocity of the outflow? If no water is flowing into the tank then the velocity is a function of the height of the remaining waterlevel ... did you take this into account?
__________________
~~~_/)~~~ |
|
October 2, 2012, 09:09 |
|
#7 |
Senior Member
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16 |
I have a fixed value for the flow rate at the outlet so I'm using a fixedValue for the velocity and zeroGradient for the pressure.
I think my problem is with the BCs at the wall, as I obtain a strange velocity field at the wall proximity using buoyantPressure (see attached picture, U contour at free surface). |
|
October 3, 2012, 03:11 |
|
#8 |
New Member
Sam Mathew
Join Date: Apr 2010
Location: India
Posts: 19
Rep Power: 16 |
Thanks for your responses.
I want to obtain the velocity at the outlet from the simulation and compare it with the analytical solution. v = sqrt(2*g*h)Unlike Andrea's case, my problem involves a tank draining under gravity; therefore, I have to have a boundary condition on the outlet similar to static pressure = 0 (in ANSYS FLUENT).where, h = height of the liquid presently in the column. I am expecting backflow at the outlet and gas to ingest into the domain. Primarily the aim is to verify whether, vortex from the top free-surface enters into the outlet. Regards, Sam Last edited by Sam-CFD; October 3, 2012 at 05:52. |
|
April 5, 2013, 10:29 |
|
#9 |
Member
Join Date: Mar 2013
Posts: 98
Rep Power: 13 |
Hi to all,
I have a problem with the setting of the boundary condition in a similar problem. My case is summarized as follow: at the initial time t=0 the right wall of a closed tube completely filled with liquid is removed, allowing the liquid to exit the domain and, at the same time, allowing the gas to enter. I set the BC in this way: left wall: "p" zero gradient "U" fixed value (0,0,0) "alpha1" fixed value 1 pipe wall: "p" zero gradient "U" fixed value (0,0,0) "alpha1" zero gradient right wall (outlet): "p" total pressure "U" pressureInletOutletVelocity "alpha1" inletOutlet but I obtain unphysical result Where is the error?Someone have an idea to set BC for this case? thank to all |
|
April 5, 2013, 13:43 |
|
#10 |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18 |
Hi giack,
I once hade a problem with interFoam where alpha was unphysically diffused through the walls. This was resolved (for Of 2.1) by setting Code:
walls { type buoyantPressure; gradient uniform 0; value uniform 0; } So for the patches that are walls (left and pipe) you should have the same bc's and they should be velocity: fixedValue (0 0 0) p_rgh: buoyantPressure (as above) alpha: zeroGradient I think the right wall is correct. Good luck Nicolas |
|
April 7, 2013, 06:56 |
|
#11 |
Member
Join Date: Mar 2013
Posts: 98
Rep Power: 13 |
thank you for your reply. I apply the suggestion that you give me but the problem remain the same...I think that there is something wrong in the set of pressure at the outlet but I don't understand what it is... Any ideas?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surge tank emptying using interFoam- Stops when surface reaches outlet | Ramnik | OpenFOAM Running, Solving & CFD | 1 | March 14, 2012 08:26 |
Surge tank emptying using InterFAOM- Stops when surface reaches outlet | Ramnik | OpenFOAM Running, Solving & CFD | 0 | May 26, 2010 11:42 |
Emptying tank & Multiphase | Ruggero | Siemens | 18 | October 24, 2007 13:23 |
How can i simulate a emptying bi-phasic tank? | Ruggero | FLUENT | 1 | July 9, 2007 03:17 |
Emptying of a tank | Mario | CFX | 2 | September 29, 2006 11:51 |