TAGGED: initial-conditions, transient, udf, vof
-
-
December 12, 2023 at 2:31 am
casey
SubscriberI am currently working on a Volume of Fluid (VOF) simulation. The setup comprises two inlets: a vertical oil pipe and a horizontal water jet inlet positioned 5 meters above the oil pipe orifice. The domain takes the form of a cylinder with a diameter of 20 meters and a height of 16 meters. The oil pipe has a height of 5 meters, with 1 meter extending into the domain. The water jet pipe is positioned 2 meters away from the center of the oil pipe and extends to the exterior of the domain.
I have simulated this scenario by specifying velocity inlets for both the oil and water jet pipes, setting pressure outlet at the top, and defining the domain sides as walls. Currently, I am exploring the utilization of a hydrostatic boundary condition on the domain sides instead of using a wall. This involves setting say a height of 1000 meters from the base (at 4 meters) to the top (16 meters). The reason is I want to model it in a more realistic way and may include a third phase: gas in subsequent simulations. i have written a udf that would distribute the pressure with atmospheric pressure at the top and increasing linearing down to the bottom of the domain. What is the right approach to hook this to the domain considering the physics and all the other boundary conditions specified at the inlets and outlet?
-
December 12, 2023 at 11:59 am
Rob
Forum ModeratorIt's a little complicated. What material is going to flow in through the sides of the domain? If it's all one phase (water?) then if you set the operating density to that of water you don't need the UDF: the term you're trying to account for is (density - operating density), so if they're exactly equal they cancel and there is no need to complicate the boundary set up.
-
December 12, 2023 at 12:19 pm
casey
SubscriberThank you Rob. The entire system is surrounded by water. While Water jet (pipe diameter = 0.05 m, density = 998.2 Kg/m3 &velocity = 26 m/s) go into the system via a horizontal pipe and oil (pipe diameter =0.5 m, density = 700 Kg/m3, velocity =1.5m/s) released into the system through the vertical pipe. The scenario is an oil spill in a subsea.
-
December 12, 2023 at 1:23 pm
casey
SubscriberThank you Rob. The entire system is surrounded by water. While Water jet (pipe diameter = 0.05 m, density = 998.2 Kg/m3 &velocity = 26 m/s) go into the system via a horizontal pipe and oil (pipe diameter =0.5 m, density = 700 Kg/m3, velocity =1.5m/s) released into the system through the vertical pipe. The scenario is an oil spill in a subsea. So we want to account for the flows (both phases) in and out of the domain from all sides. We also plan to introduce a third phase: gas in subsequent runs.
-
December 12, 2023 at 2:49 pm
Rob
Forum ModeratorOK, thanks. Set the operating density at 998.2 kg/m3 and you shouldn't need the UDF. Backflow setting for the boundary is then water.
-
December 12, 2023 at 3:44 pm
casey
SubscriberThank you, Rob. Initially, I implemented that with wall boundary conditions for the domain sides. However, my current issue is that I don't want the sides of the domain to be wall; instead, I want them defined by the hydrostatic pressure as atmospheric pressure + h * rho * g, with h set to say 1000 m. What boundary condition do I set the sides to in order to achieve this without using wall?
-
December 12, 2023 at 5:24 pm
Rob
Forum ModeratorYou just change the operating pressure, or leave that alone and alter the gas density. For a 10m high domain at 1000m down the effect of depth on gas density will be near enough zero.
-
December 12, 2023 at 6:06 pm
-
December 13, 2023 at 9:10 am
Rob
Forum ModeratorYou can change the wall to be a pressure outlet, and then set the operating density as discussed. In Fluent we're looking at the change in pressure, so unless the gas density is pressure dependent the actual operating pressure doesn't really matter.
Depending on how the oil inlet and cross flow interact you may find you pull water in from the sides due to entrainment effects. I'd also be very wary of modelling 1km of domain without access to a lot of compute. The cell count is going to be VERY high.
-
December 14, 2023 at 5:22 pm
casey
SubscriberThank you, Rob. I understand that. So, I modeled it with a 16-meter cylindrical tank. Now, I want the hydrostatic pressure distribution on the cylinder sides to simulate that of a 1000-meter height tank, where the top corresponds to the water surface (P = 101325 Pa).
-
December 14, 2023 at 5:28 pm
casey
SubscriberAs a follow-up question, can one modify the gravitational acceleration value (g) so that it is scaled to match what it would be for a 1000-meter height tank in comparison to a 16-meter height, and then use this modified g value in the simulation? The BC will then be as you stated earlier.
-
December 15, 2023 at 10:07 am
Rob
Forum ModeratorIf you adjust the pressure on the sides you'll then need to mess with operating density to counter - which defeats the original objective of altering the operating density.
If you're looking at gas expansion over the height, then you may need to model the whole lot. If you're looking at gas flow at a well head failure then you may be able to just model the local region. 1000m of bubbly flow is going to be incredibly expensive in both cpu and cell count.
-
- The topic ‘hydrostatic boundary condition: subsea VOF’ is closed to new replies.
-
6450
-
1906
-
1457
-
1308
-
1022
© 2026 Copyright ANSYS, Inc. All rights reserved.
