Model the flow of liquid through a pipe/tube and calculate the pressure

In summary, I need to compute the pressure drop over the pipe and use boundary conditions to simulate the flow.
  • #1
redargon
368
0
I want to model the flow of liquid through a pipe/tube and calculate the pressure drop over the pipe. What sort of boundary conditions should I be using?

I tried with a pressure inlet and a pressure outlet, but I'm not sure if that is the right way to go. Pressure at inlet = 1.8bar, pressure at outlet = 1 bar (open to atmosphere). When I check the results, I have a pressure of about 1.4bar in the middle of the pipe length. This seems intuitive as we are going from 1.8bar to 1 bar, but using pressure loss theory, shouldn't the pressure loss be more non linear than that due to friction factors? Like how Darcy-Weisbach equation describes.

The pressure of the fluid at the exit won't be exactly atmospheric, because the liquid has a velocity as it exits and therefore a pressure is required to generate that velocity. What am I missing?
 
Engineering news on Phys.org
  • #2
redargon said:
[...] When I check the results, I have a pressure of about 1.4bar in the middle of the pipe length. This seems intuitive as we are going from 1.8bar to 1 bar, but using pressure loss theory, shouldn't the pressure loss be more non linear [...]

That does depend on (at least) what is the fluid and the pipe diameter, i.e. Reynolds number. For a nice big Re (all turbulent flow, thin boundary layer) and incompressible fluid, the pressure drop will be linear. That's because the velocity of the fluid will be constant along the pipe (constant flow rate), the loss coefficient too (no laminar regions), so the pressure drop comes out as [itex]\Delta p = q A \xi \Delta l[/itex] ([itex]q[/itex] dynamic pressure, [itex]A[/itex] pipe cross section area, [itex]\xi[/itex] loss coefficient, [itex]\Delta l[/itex] pipe segment length), i.e. [itex]\Delta p \propto \Delta l[/itex].

The pressure of the fluid at the exit won't be exactly atmospheric, because the liquid has a velocity as it exits and therefore a pressure is required to generate that velocity. [...]

That's... a glitch in thinking I myself have made more times than I will admit :) The (static) pressure will be exactly atmospheric, as there is nothing any more to drive or act on the flow as it exits. The total pressure will be higher, of course, and dissipate to zero in the external environment. You can also look at it numerically -- if you have set the outlet boundary condition to 1 bar, then it will be 1 bar.

I tried with a pressure inlet and a pressure outlet, but I'm not sure if that is the right way to go. [...]

If it works, why not; but basically it depends on what you know, and what you want to compute. A more usual thing to know is the flow rate and the exit conditions (atmosphere), and to need to compute the pressure drop. Then you would specify flow rate at inlet and pressure at outlet, and get pressure at inlet as the result of the computation (i.e. you would have computed the pressure drop, rather than specifying it).

Another thing is that pressure-pressure condition can be numerically difficult to compute, since the solver has no idea of the flow features beforehand (what is the velocity, what is the Re...) So even if these two pressures are what you know (and you want to compute the flow rate), then it's better to first make an educated guess on the flow rate, compute with flow rate-pressure, and take that result as initial solution for the next simulation with pressure-pressure.

--
Chusslove Illich (Часлав Илић)
 
  • #3
Thanks for the help caslav,

I'm getting the hang of dynamic pressure vs static pressure and I understand now about the exit properties of the flow.

For added info, I am working with water in a 2mm to 6mm diameter tube at flowrates of about 2l/min, so from my Reynolds calcs, Re > 4000 so I'm in the turbulent region.

I will try with the flowrate inlet and pressure outlet, I thought about this a little later and the simulations had already started, but will try it on the next runs.
 

Related to Model the flow of liquid through a pipe/tube and calculate the pressure

1. How is the flow rate of liquid through a pipe/tube calculated?

The flow rate of liquid through a pipe/tube can be calculated using the equation Q = A * V, where Q is the flow rate, A is the cross-sectional area of the pipe/tube, and V is the velocity of the liquid. This equation is known as the continuity equation.

2. What factors affect the flow of liquid through a pipe/tube?

The flow of liquid through a pipe/tube is affected by several factors, including the diameter and length of the pipe/tube, the viscosity of the liquid, the pressure difference between the two ends of the pipe/tube, and any obstructions or bends in the pipe/tube.

3. How is pressure calculated in a pipe/tube system?

The pressure in a pipe/tube system can be calculated using the Bernoulli's equation, which takes into account the velocity, elevation, and pressure of the liquid at different points in the system. The equation is P + 1/2 * ρ * V^2 + ρ * g * h = constant, where P is the pressure, ρ is the density of the liquid, V is the velocity, g is the gravitational acceleration, and h is the elevation.

4. How does the viscosity of the liquid affect the flow through a pipe/tube?

The viscosity of the liquid affects the flow through a pipe/tube by creating resistance to the flow, which in turn reduces the velocity of the liquid. This results in a decrease in the flow rate and an increase in pressure.

5. Are there any assumptions made when modeling the flow of liquid through a pipe/tube?

Yes, there are some assumptions made when modeling the flow of liquid through a pipe/tube. These include assuming the liquid is incompressible, the flow is steady and laminar (no turbulence), and the pipe/tube is smooth and has a constant cross-sectional area. These assumptions may not hold true in all situations and can affect the accuracy of the model.

Similar threads

  • Mechanical Engineering
2
Replies
38
Views
886
Replies
2
Views
478
  • Mechanical Engineering
Replies
20
Views
1K
  • Mechanical Engineering
Replies
8
Views
738
  • Mechanical Engineering
Replies
31
Views
2K
  • Mechanical Engineering
Replies
3
Views
855
  • Mechanical Engineering
Replies
3
Views
2K
  • Mechanical Engineering
Replies
20
Views
7K
  • Mechanical Engineering
Replies
3
Views
2K
Replies
13
Views
2K
Back
Top