.fire-hydrant-flow-calculator {
font-family: sans-serif;
border: 1px solid #ccc;
padding: 20px;
border-radius: 8px;
max-width: 600px;
margin: 20px auto;
background-color: #f9f9f9;
}
.calculator-inputs, .calculator-results {
margin-bottom: 20px;
}
.input-group {
margin-bottom: 15px;
display: flex;
align-items: center;
}
.input-group label {
flex: 1;
margin-right: 10px;
font-weight: bold;
}
.input-group input[type="number"] {
flex: 2;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
}
.calculator-inputs button {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
width: 100%;
margin-top: 10px;
}
.calculator-inputs button:hover {
background-color: #45a049;
}
#flowRateResult {
font-size: 1.2em;
font-weight: bold;
color: #333;
margin-top: 10px;
}
#disclaimer {
font-size: 0.9em;
color: #666;
margin-top: 10px;
font-style: italic;
}
function calculateHydrantFlow() {
var staticPressure = parseFloat(document.getElementById("staticPressure").value);
var residualPressure = parseFloat(document.getElementById("residualPressure").value);
var dischargeCoefficient = parseFloat(document.getElementById("dischargeCoefficient").value);
var hydrantDiameter = parseFloat(document.getElementById("hydrantDiameter").value);
var flowRateResultElement = document.getElementById("flowRateResult");
var disclaimerElement = document.getElementById("disclaimer");
flowRateResultElement.innerHTML = "";
disclaimerElement.innerHTML = "";
if (isNaN(staticPressure) || isNaN(residualPressure) || isNaN(dischargeCoefficient) || isNaN(hydrantDiameter)) {
flowRateResultElement.innerHTML = "Please enter valid numbers for all fields.";
return;
}
if (staticPressure < 0 || residualPressure < 0 || dischargeCoefficient < 0 || hydrantDiameter staticPressure) {
flowRateResultElement.innerHTML = "Residual pressure cannot be greater than static pressure.";
return;
}
// Calculate the flow rate using the Hydrant Flow Equation (simplified version)
// Q = Cd * A * sqrt(2 * g * h)
// Where:
// Q = Flow rate (gallons per minute – GPM)
// Cd = Discharge Coefficient (dimensionless)
// A = Area of the nozzle (square inches)
// g = Acceleration due to gravity (approx. 32.2 ft/s^2)
// h = Pressure head (feet of water) – this is derived from PSI
// Convert pressure difference from PSI to feet of water
// 1 PSI = 2.31 feet of water
var pressureDifferencePSI = staticPressure – residualPressure;
var pressureHeadFeet = pressureDifferencePSI * 2.31;
// Calculate the area of the hydrant nozzle in square inches
// Area = pi * r^2
var hydrantRadiusInches = hydrantDiameter / 2;
var nozzleAreaSqInches = Math.PI * Math.pow(hydrantRadiusInches, 2);
// Calculate the flow rate in cubic feet per second (cfs)
// Q_cfs = Cd * A_sqft * sqrt(2 * g * h_ft)
// Need to convert nozzle area from sq inches to sq feet
var nozzleAreaSqFeet = nozzleAreaSqInches / 144.0; // 1 sq ft = 144 sq inches
var accelerationGravity = 32.2; // ft/s^2
var flowRateCFS = dischargeCoefficient * nozzleAreaSqFeet * Math.sqrt(2 * accelerationGravity * pressureHeadFeet);
// Convert flow rate from cfs to GPM (Gallons Per Minute)
// 1 cfs = 448.831 GPM
var flowRateGPM = flowRateCFS * 448.831;
// Display the result
flowRateResultElement.innerHTML = "Calculated Flow Rate: " + flowRateGPM.toFixed(2) + " GPM";
disclaimerElement.innerHTML = "Note: This is an estimated flow rate based on provided inputs and a simplified formula. Actual flow can be affected by many factors including pipe friction, hydrant valve opening, and system configuration.";
}
Understanding Fire Hydrant Flow Rate Calculations
The flow rate of a fire hydrant is a critical metric for firefighting operations, indicating how much water can be supplied to suppress a fire. Calculating this flow rate helps fire departments plan and assess their water supply capabilities. The calculation typically involves measuring pressure and understanding the characteristics of the hydrant itself.
Key Components of the Calculation:
- Static Pressure (PSI): This is the pressure of the water in the distribution system when no water is flowing. It represents the potential energy of the water.
- Residual Pressure (PSI): This is the pressure of the water remaining in the system when water is being discharged from the hydrant at a specific rate. The difference between static and residual pressure indicates the pressure available to move water.
- Pressure Difference: The difference between static and residual pressure (Static Pressure – Residual Pressure) is the driving force that pushes water through the hydrant and out into the discharge stream.
- Discharge Coefficient (Cd): This is a factor that accounts for energy losses due to friction and turbulence as water flows through the hydrant nozzle. It's a dimensionless number, often around 0.9 for well-designed hydrants, but can vary.
- Hydrant Nozzle Diameter (inches): The diameter of the main outlet on the hydrant from which water is discharged. A larger diameter allows for a greater volume of water flow, assuming sufficient pressure.
The Formula Used:
The calculation for fire hydrant flow rate often uses a variation of the Bernoulli's principle and orifice flow equations. A common simplified formula is:
Q = Cd * A * sqrt(2 * g * h)
Where:
- Q is the flow rate (typically measured in gallons per minute – GPM).
- Cd is the discharge coefficient.
- A is the cross-sectional area of the hydrant nozzle.
- g is the acceleration due to gravity (approximately 32.2 ft/s²).
- h is the pressure head, which is the height of a column of water equivalent to the pressure difference (derived from the difference between static and residual pressure).
In practical calculations, pressure (in PSI) is converted into a pressure head (in feet of water), and the area is calculated from the hydrant nozzle diameter. The units are then adjusted to yield the flow rate in GPM.
Interpreting the Results:
A higher GPM indicates a greater water supply capacity. Fire departments use these values to determine if a hydrant can support the required water flow for a specific fire scenario, considering the size of the fire and the type of firefighting equipment being used.
Disclaimer:
The calculated flow rate is an estimate. Real-world flow can be influenced by numerous factors including the condition of the water mains, the elevation of the hydrant relative to the water source, the condition and opening of the hydrant's valves, and the overall demand on the water system at the time of measurement.