askvity

How do you calculate the velocity of a gas in a pipe from pressure?

Published in Fluid Dynamics 7 mins read

Calculating the velocity of a gas in a pipe from pressure requires considering several factors, including the type of flow (laminar or turbulent), the properties of the gas, and the pipe's characteristics. There isn't a single, simple formula that works universally. Instead, several equations and methods are used depending on the specific situation. Here's a breakdown:

1. Understanding the Relationship

The fundamental principle involves the relationship between pressure drop and flow rate. A pressure difference between two points in a pipe drives the gas flow. The greater the pressure difference, the higher the flow rate, and consequently, the velocity. However, friction within the pipe resists the flow, which is influenced by factors like pipe roughness and gas viscosity.

2. Key Parameters

To calculate the velocity, you'll need the following:

  • Pressure Difference (ΔP): The difference in pressure between two points in the pipe, typically measured in Pascals (Pa) or pounds per square inch (psi).
  • Pipe Diameter (d): The internal diameter of the pipe, measured in meters (m) or inches (in). This is crucial for determining the cross-sectional area.
  • Gas Density (ρ): The density of the gas at the given temperature and pressure, measured in kilograms per cubic meter (kg/m³) or pounds per cubic foot (lb/ft³).
  • Gas Viscosity (μ): The dynamic viscosity of the gas, which represents its resistance to flow, measured in Pascal-seconds (Pa·s) or poise (P).
  • Pipe Length (L): The distance between the two points where the pressure difference is measured, in meters (m) or feet (ft).
  • Pipe Roughness (ε): A measure of the internal roughness of the pipe. This is needed for calculating the friction factor in turbulent flow.

3. Calculating Flow Velocity (V)

Here are common methods to estimate gas velocity in a pipe:

3.1 Using Volumetric Flow Rate (Q)

If you know the volumetric flow rate (Q) of the gas, measured in cubic meters per second (m³/s) or cubic feet per minute (CFM), the average velocity (V) can be calculated directly:

  • Formula: V = Q / A

    Where:

    • V = Average velocity (m/s or ft/s)
    • Q = Volumetric flow rate (m³/s or ft³/s)
    • A = Cross-sectional area of the pipe (m² or ft²)

    The cross-sectional area (A) is calculated as:

    • A = π (d/2)² = (π/4)
    • Where d = pipe diameter.
  • Simplified Formula: Combining the above, we get:

    • *V = 4Q / (π d²)**

    This is the same formula as mentioned in the reference: V = 4Q/(3.1416 * d^2)

3.2 For Laminar Flow (Hagen-Poiseuille Equation)

Laminar flow occurs at lower velocities, where the gas flows in smooth layers. The Hagen-Poiseuille equation can be used to calculate the flow rate and then the velocity:

  • Formula (for Flow Rate): Q = (π ΔP r⁴) / (8 μ L)

    Where:

    • Q = Volumetric flow rate
    • ΔP = Pressure difference
    • r = Pipe radius (d/2)
    • μ = Gas viscosity
    • L = Pipe length
  • Calculating Velocity: Once you have Q, use V = Q / A as described above.

  • Reynolds Number: It's crucial to verify that the flow is truly laminar by calculating the Reynolds number (Re):

    • Re = (ρ V d) / μ

    For laminar flow, Re < 2300 (approximately). If Re is higher, the flow is likely turbulent, and this equation won't be accurate.

3.3 For Turbulent Flow (Darcy-Weisbach Equation)

Turbulent flow is more common in pipes, especially at higher velocities. The Darcy-Weisbach equation is used to calculate the pressure drop, which can then be related to the flow rate and velocity. This equation is more complex and often requires iterative solutions or the use of a Moody chart to determine the friction factor (f).

  • Formula (for Pressure Drop): ΔP = f (L/d) (ρ * V² / 2)

    Where:

    • ΔP = Pressure difference
    • f = Darcy friction factor (dimensionless)
    • L = Pipe length
    • d = Pipe diameter
    • ρ = Gas density
    • V = Average velocity
  • Solving for V: Rearranging the formula to solve for V:

    • V = √( (2 ΔP d) / (f L ρ) )
  • Finding the Friction Factor (f): The tricky part is determining the friction factor (f). For turbulent flow, 'f' depends on both the Reynolds number (Re) and the relative roughness (ε/d) of the pipe.

    • Moody Chart: A graphical tool used to find the friction factor based on Re and ε/d.

    • Colebrook Equation (Implicit): A more accurate, but implicit, equation:

      • 1 / √f = -2 log₁₀( (ε/d)/3.7 + 2.51 / (Re √f) )

      This equation requires iterative solving for 'f'.

    • Swamee-Jain Equation (Explicit Approximation): Provides a direct approximation of 'f':

      • f = 0.25 / [ log₁₀( (ε/d)/3.7 + 5.74 / Re⁰.⁹ ) ]²
  • Iterative Process: Because 'Re' depends on 'V', and 'V' depends on 'f', and 'f' depends on 'Re', you'll often need to use an iterative approach:

    1. Guess a value for 'f'.
    2. Calculate 'V' using the Darcy-Weisbach equation.
    3. Calculate 'Re' using the calculated 'V'.
    4. Calculate a new 'f' using the Colebrook or Swamee-Jain equation (or Moody Chart).
    5. Repeat steps 2-4 until 'f' converges (doesn't change significantly between iterations).

4. Example

Let's say you have a pipe with the following characteristics:

  • ΔP = 1000 Pa
  • d = 0.1 m
  • L = 10 m
  • ρ = 1.2 kg/m³ (air)
  • μ = 1.8 x 10⁻⁵ Pa·s
  • ε = 0.000045 m (Assume commercial steel)

To calculate the velocity, we would use the Darcy-Weisbach equation. Because the flow is likely turbulent, we would need to iterate to find 'f'. Here's a simplified, single-iteration approximation using the Swamee-Jain equation:

  1. Assume an initial 'f' = 0.02 (a common value for turbulent flow).
  2. Calculate V = √( (2 1000 0.1) / (0.02 10 1.2) ) = 28.87 m/s
  3. Calculate Re = (1.2 28.87 0.1) / (1.8 x 10⁻⁵) = 192466.67
  4. Calculate ε/d = 0.000045 / 0.1 = 0.00045
  5. Calculate f (Swamee-Jain) = 0.25 / [ log₁₀( (0.00045)/3.7 + 5.74 / 192466.67⁰.⁹ ) ]² = 0.0165

Since the new 'f' is significantly different from our initial guess, you would repeat the process using 0.0165 as the new 'f' until the 'f' value converges. After several iterations, the velocity will stabilize.

5. Important Considerations

  • Compressibility: For gases at high pressures or with significant pressure drops, compressibility effects become important. The equations above assume incompressible flow. For compressible flow, more advanced equations and thermodynamic considerations are necessary.
  • Real Gases: Real gases deviate from ideal gas behavior, especially at high pressures and low temperatures. Equations of state (e.g., Van der Waals equation) may be needed for accurate density calculations.
  • Fittings and Bends: The equations above are for straight pipe sections. Fittings (elbows, valves, etc.) introduce additional pressure drops that need to be accounted for. This is typically done by adding equivalent lengths of straight pipe to the total pipe length.
  • Elevation Changes: If the pipe has significant elevation changes, the hydrostatic pressure difference must also be considered.

Summary

Calculating gas velocity from pressure in a pipe is a multifaceted process. It necessitates understanding the flow regime (laminar or turbulent), accurately determining the gas properties, and using the appropriate equations (Hagen-Poiseuille or Darcy-Weisbach). For turbulent flow, iterative methods are often required to find the friction factor. For complex situations involving compressible flow, real gases, or significant elevation changes, more advanced techniques are needed.

Related Articles