How to Calculate Flow Rate from Pressure and Diameter

.flow-calc-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; max-width: 800px; margin: 20px auto; padding: 25px; border: 1px solid #e1e1e1; border-radius: 8px; background-color: #f9f9f9; color: #333; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .flow-calc-header { text-align: center; margin-bottom: 25px; } .flow-calc-header h2 { color: #0056b3; margin-bottom: 10px; } .flow-calc-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; } .flow-calc-field { flex: 1; min-width: 200px; } .flow-calc-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; } .flow-calc-field input, .flow-calc-field select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 16px; } .flow-calc-button { background-color: #0056b3; color: white; padding: 15px 25px; border: none; border-radius: 4px; cursor: pointer; font-size: 18px; font-weight: bold; width: 100%; transition: background-color 0.3s; } .flow-calc-button:hover { background-color: #004494; } .flow-calc-result { margin-top: 25px; padding: 20px; background-color: #e7f3ff; border-left: 5px solid #0056b3; border-radius: 4px; } .flow-calc-result h3 { margin-top: 0; color: #0056b3; } .flow-calc-value { font-size: 24px; font-weight: bold; color: #222; } .flow-calc-article { margin-top: 40px; line-height: 1.6; } .flow-calc-article h2, .flow-calc-article h3 { color: #333; border-bottom: 1px solid #ddd; padding-bottom: 10px; } .flow-calc-table { width: 100%; border-collapse: collapse; margin: 20px 0; } .flow-calc-table th, .flow-calc-table td { border: 1px solid #ddd; padding: 12px; text-align: left; } .flow-calc-table th { background-color: #f2f2f2; } @media (max-width: 600px) { .flow-calc-row { flex-direction: column; } }

Flow Rate Calculator

Calculate water flow rate based on pressure and pipe diameter.

0.61 (Sharp-edged orifice) 0.80 (Short tube) 0.98 (Well-rounded nozzle) 1.0 (Theoretical Maximum)

Calculated Results:

Understanding the Relationship Between Pressure and Flow

Calculating the flow rate from pressure and diameter is a fundamental task in fluid mechanics, civil engineering, and irrigation. The relationship is governed by the principles of energy conservation, specifically Bernoulli's equation and Torricelli's law.

The Flow Rate Formula

For a typical discharge into the atmosphere, we use a simplified version of the orifice equation:

Q = 29.84 × Cd × d² × √P

  • Q: Flow rate in Gallons Per Minute (GPM).
  • Cd: Discharge coefficient (dimensionless).
  • d: Diameter of the pipe or opening in inches.
  • P: Pressure at the source in Pounds per Square Inch (PSI).

How to Calculate Step-by-Step

  1. Measure Diameter: Determine the inside diameter of the pipe or the opening of the nozzle in inches.
  2. Measure Pressure: Use a pressure gauge to find the static or residual pressure in PSI.
  3. Select Coefficient: Determine the shape of the opening. A sharp-edged hole loses more energy (Cd ≈ 0.61) than a smooth, rounded nozzle (Cd ≈ 0.98).
  4. Apply the Formula: Square the diameter, multiply it by 29.84 and the coefficient, then multiply by the square root of the pressure.

Common Discharge Coefficients (Cd)

Type of Opening Coefficient (Cd)
Sharp-Edged Orifice 0.61 – 0.65
Short Flush-Mount Tube 0.80
Well-Rounded Nozzle 0.97 – 0.99
Smooth Pipe Exit 0.90

Practical Example

Suppose you have a 2-inch diameter fire hydrant outlet with a pressure reading of 40 PSI. Assuming a standard smooth-bore nozzle (Cd = 0.90):

  • d² = 2 × 2 = 4
  • √P = √40 ≈ 6.32
  • Calculation: 29.84 × 0.90 × 4 × 6.32 = 679.35 GPM

Limitations

This calculation assumes the fluid is water. It does not account for pipe friction losses over long distances (which require the Hazen-Williams or Darcy-Weisbach equations). It also assumes the pressure is measured immediately upstream of the discharge point.

function calculateFlow() { var d = parseFloat(document.getElementById('pipeDiameter').value); var p = parseFloat(document.getElementById('pressurePsi').value); var c = parseFloat(document.getElementById('dischargeCoeff').value); var resCont = document.getElementById('resultContainer'); var resGPM = document.getElementById('flowGPM'); var resLPM = document.getElementById('flowLPM'); var resCFS = document.getElementById('flowCFS'); if (isNaN(d) || d <= 0) { alert("Please enter a valid diameter greater than zero."); return; } if (isNaN(p) || p < 0) { alert("Please enter a valid pressure (0 or greater)."); return; } // The formula for GPM using PSI and Inches // Q = 29.84 * C * d^2 * sqrt(p) var gpm = 29.84 * c * Math.pow(d, 2) * Math.sqrt(p); // Conversions var lpm = gpm * 3.78541; // Liters per minute var cfs = gpm * 0.002228; // Cubic feet per second // Display results resGPM.innerHTML = gpm.toFixed(2) + " Gallons Per Minute (GPM)"; resLPM.innerHTML = "Metric Flow: " + lpm.toFixed(2) + " Liters Per Minute (L/min)"; resCFS.innerHTML = "Velocity Flow: " + cfs.toFixed(4) + " Cubic Feet Per Second (CFS)"; resCont.style.display = 'block'; // Scroll to result smoothly resCont.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }

Leave a Comment