Followers

Friday, October 23, 2026

Hydraulic Grade Line (HGL), elevation & pressure calculator

Fluid Mechanics & Hydraulics • Dual-Unit Solver

Hydraulic Grade Line (HGL), Elevation & Pressure Calculator

Interactive engineering application to compute Hydraulic Grade Line (\(\text{HGL}\)), Elevation Head (\(z\)), or Static Pressure (\(P\)) with full conversion between SI and British units.

Application Metadata
Author: Fernando Lastra
Date Created: October 19, 2026
Math Engine: LaTeX (MathJax 3)
✓ Real-Time Automated Hydraulic Solver • SI (Metric) & British (Imperial) Units

How to Use This Application (Instructions)

Self-Explanatory Guide
Step 1: Choose Parameter Select which unknown variable you want to calculate: HGL, Elevation (\(z\)), or Pressure (\(P\)).
Step 2: Select Units Enter data in SI Units (\(\text{m}, \text{kPa}, \text{Pa}\)) or British Units (\(\text{ft}, \text{psi}, \text{psf}\)).
Step 3: Fluid Properties Keep default Standard Water (\(\gamma = 9810\text{ N/m}^3\)) or select another fluid / custom Specific Gravity (\(\text{SG}\)).
Step 4: Automated Output Results, step-by-step LaTeX equations, and the piezometric diagram update automatically in real time.

Governing Hydraulic Equations (LaTeX Formulation)

In fluid mechanics, the Hydraulic Grade Line (\(\text{HGL}\))—or piezometric head—represents the sum of elevation head (\(z\)) and static pressure head (\(h_p = \frac{P}{\gamma}\)):

1. Hydraulic Grade Line (\(\text{HGL}\))
$$\text{HGL} = z + \frac{P}{\gamma} = z + \frac{P}{\rho g}$$
2. Elevation / Height (\(z\))
$$z = \text{HGL} - \frac{P}{\gamma}$$
3. Static Pressure (\(P\))
$$P = \gamma \cdot \left(\text{HGL} - z\right)$$

Input Parameters

B. Unit System Preset: SI Units Active
Equivalent: 15.0000 m = 49.2126 ft
Equivalent: 198.1000 kPa = 28.7320 psi
SG = 1.000
Example Scenarios (1-Click Test):

Calculated Results

Solving for: Hydraulic Grade Line (HGL)
Computed Hydraulic Grade Line (HGL)
International System (SI)
35.1937 m
3519.37 cm • Head hp = 20.1937 m
British Units (Imperial)
115.4648 ft
1385.58 in • Head hp = 66.2522 ft
Hydraulic Parameter SI Units (Metric) British Units (Imperial)
Hydraulic Grade Line (\(\text{HGL}\)) 35.1937 m 115.4648 ft
Elevation / Height (\(z\)) 15.0000 m 49.2126 ft
Pressure Head (\(h_p = P/\gamma\)) 20.1937 m 66.2522 ft
Static Pressure (\(P\)) 198.100 kPa 28.7320 psi
Specific Weight (\(\gamma\)) 9810.0 N/m³ 62.4280 lb/ft³

Step-by-Step Mathematical Solution (LaTeX)

SI Derivation
$$\text{HGL}_{\text{SI}} = z + \frac{P}{\gamma} = 15.00 + \frac{198100}{9810} = 35.1937\text{ m}$$
British Derivation
$$\text{HGL}_{\text{BG}} = z + \frac{P}{\gamma} = 49.21 + \frac{4137.4}{62.43} = 115.4648\text{ ft}$$

Interactive Hydraulic Grade Line Schematic

Positive Gauge Pressure (\(P > 0\))
Reference Datum Plane (z = 0 m | 0 ft) HGL = 35.19 m (115.46 ft) z = 15.00 m (49.21 ft) P/γ = 20.19 m (66.25 ft) HGL = 35.19 m (115.5 ft)
Developed by Fernando Lastra • Created on October 19, 2026
Blogger Standalone HTML5 Application • Dual SI & British Solver

Fanning friction factor calculator for Bingham plastic fluids

Fanning Friction Factor for a Bingham Plastic Fluid

Author: Erick Javier Fabela Cano  |  Date of creation: October 22, 2026

This app calculates the Fanning friction factor of a Bingham plastic fluid flowing in a circular pipe. It also gives the Reynolds and Hedström numbers, the flow regime (laminar or turbulent), the wall shear stress and the pressure drop per unit length. Enter your data in SI or British units; every result is shown in both unit systems.

How to use the app

  1. Choose the unit system of your data (SI or British).
  2. Type the density, pipe inside diameter, mean velocity, plastic viscosity and yield stress of the fluid. Use a dot as decimal separator.
  3. The results update automatically as you type. No button is needed.
  4. If you switch the unit system, the values you already typed are converted for you.
  5. Use Load example to see a worked case, or Clear to start over.

A yield stress of zero gives a Newtonian fluid (Bingham plastic with no yield). The velocity is the mean velocity in the pipe.

Physical model

A Bingham plastic does not flow until the shear stress exceeds its yield stress $\tau_y$. Above it, the shear stress grows linearly with the shear rate, $\tau=\tau_y+\mu_p\,\dot\gamma$. In laminar pipe flow the fluid moves as a rigid plug in the center, surrounded by a sheared annulus next to the wall.

D Plug (τ < τy): moves as a rigid core Annulus (τ > τy): sheared fluid Pipe wall, wall shear stress τw Flow direction →   (velocity profile drawn at the left)

Sketch (not to scale): the velocity profile has a flat central plug where the local shear stress is below the yield stress. The plug radius ratio is $\varphi=\tau_y/\tau_w$.

Equations used

Dimensionless groups

$$ Re_B=\frac{\rho\,v\,D}{\mu_p}\qquad\qquad He=\frac{\rho\,\tau_y\,D^{2}}{\mu_p^{2}} $$

where $\rho$ is the density, $v$ the mean velocity, $D$ the inside diameter, $\mu_p$ the plastic viscosity, $\tau_y$ the yield stress, $Re_B$ the Bingham Reynolds number and $He$ the Hedström number.

Transition from laminar to turbulent flow (Hanks)

$$ \frac{He}{16800}=\frac{\varphi_c}{\left(1-\varphi_c\right)^{3}}\qquad\qquad Re_{B,c}=\frac{He}{8\,\varphi_c}\left(1-\frac{4}{3}\varphi_c+\frac{\varphi_c^{4}}{3}\right) $$

The flow is laminar when $Re_B \le Re_{B,c}$ and turbulent when $Re_B > Re_{B,c}$. For $\tau_y=0$ the critical value reduces to $Re_{B,c}=2100$.

Laminar flow (Buckingham–Reiner)

$$ Re_B=\frac{He}{8\,\varphi}\left(1-\frac{4}{3}\varphi+\frac{\varphi^{4}}{3}\right)\qquad\qquad f=\frac{2\,He}{\varphi\,Re_B^{2}} $$

with $\varphi=\tau_y/\tau_w$. The first equation is solved numerically for $\varphi$ (bisection method). It is equivalent to the classical implicit form $f=\dfrac{16}{Re_B}\left(1+\dfrac{He}{6\,Re_B}-\dfrac{He^{4}}{3\,f^{3}\,Re_B^{7}}\right)$.

Turbulent flow (Darby–Melson)

$$ f=\frac{10^{a}}{Re_B^{0.193}}\qquad\qquad a=-1.47\left[1+0.146\,e^{-2.9\times10^{-5}\,He}\right] $$

Wall shear stress and pressure drop

$$ \tau_w=\frac{f\,\rho\,v^{2}}{2}\qquad\qquad \frac{\Delta P}{L}=\frac{4\,\tau_w}{D}=\frac{2\,f\,\rho\,v^{2}}{D}\qquad\qquad Q=\frac{\pi D^{2}}{4}\,v $$

The Darcy friction factor is four times the Fanning factor: $f_D=4f$.

Calculator

Fanning friction factor calculator for power-law fluids

Developed by Noe Chavez Vega — Created on October 22, 2026 — Chemical Engineering Apps, Fluid Mechanics.

Fanning Friction Factor Calculator for Power-Law Fluids

This tool computes the Fanning friction factor $f_F$ for a power-law (Ostwald–de Waele) fluid flowing in a smooth circular pipe. Enter your data in either SI or British (US customary) units; the results are always shown in both systems. Results update automatically.

How to use
  1. Select the unit system you want to type your data in (the fields are converted automatically if you switch).
  2. Choose whether you know the mean velocity or the volumetric flow rate.
  3. Enter the pipe diameter, fluid density, consistency index $m$, and flow behavior index $n$.
  4. Read the Reynolds number, flow regime, and friction factor in the results table.
Typical values: shear-thinning (pseudoplastic) fluids have $n < 1$; shear-thickening (dilatant) fluids have $n > 1$; a Newtonian fluid has $n = 1$ and $m = \mu$.

1. Input data

2. Results

QuantitySIBritish
Diameter, $D$ m ft
Mean velocity, $V$ m/s ft/s
Flow rate, $Q$ m³/s ft³/s
Density, $\rho$ kg/m³ lbm/ft³
Consistency index, $m$ Pa·sn lbf·sn/ft²
Reynolds number, $N_{Re}$
Critical Reynolds number, $N_{Re,c}$
Fanning friction factor, $f_F$

3. Equations used

The equations follow the hydraulic formulation for power-law fluids compiled in the post "Hydraulic equations for non Newtonian fluids" (Chem Eng stuff blog), based on Dodge & Metzner (1959) and Darby et al. (1992).

Reynolds number for a power-law fluid (Dodge & Metzner), written in a consistent unit system:

$$N_{Re}=\frac{(4n)^{n}\,D^{\,n}\,V^{\,2-n}\,\rho}{m\,(3n+1)^{n}\,8^{\,n-1}}$$

Critical Reynolds number (Darby et al.):

$$N_{Re,c}=2100+875\,(1-n)$$

Laminar flow ($N_{Re}\le N_{Re,c}$):

$$f_{F}=\frac{16}{N_{Re}}$$

Transition region ($N_{Re,c}<N_{Re}\le 4000$):

$$f_{F}=1.79\times10^{-4}\,e^{-5.24\,n}\,N_{Re}^{\,0.414+0.757\,n}$$

Turbulent flow ($4000<N_{Re}<10^{5}$):

$$f_{F}=\frac{0.0682\,n^{-1/2}}{N_{Re}^{\,1/(1.87+2.39\,n)}}$$

Here $f_F$ is the Fanning friction factor (the symbol $f_{FF}$ is used for it in the source post).

Unit conversions: 1 ft = 0.3048 m; 1 lbm/ft³ = 16.01846 kg/m³; 1 lbf·sn/ft² = 47.88026 Pa·sn. Internally the calculation is done in SI, which makes the factor $g_c$ unnecessary.

4. Assumptions and limitations

  • Steady, fully developed, isothermal flow of a time-independent power-law fluid, $\tau = m\dot{\gamma}^{\,n}$, in a smooth, straight, circular pipe.
  • The turbulent correlation is intended for $4000<N_{Re}<10^{5}$. Outside that range (and in the transition region) results are approximate. The transition and turbulent equations are separate empirical fits, so $f_F$ may show a small jump at $N_{Re}=4000$.
  • Pipe roughness, entrance effects, fittings and elevation changes are not considered.

References

  • Pérez Reyes, I. (2025). Hydraulic equations for non newtonian fluids. Chem Eng stuff. https://chemicalengstuff.blogspot.com/2025/04/hydraulic-equations-for-non-newtonian.html
  • Darby, R., Mun, R., & Boger, D. V. (1992). Predict friction loss in slurry pipes. Chemical Engineering, 99(9), 116–119.
  • Dodge, D. W., & Metzner, A. B. (1959). Turbulent flow of non-Newtonian systems. AIChE Journal, 5(2), 189–204.
  • Bird, R. B., Armstrong, R. C., & Hassager, O. (1987). Dynamics of Polymeric Liquids, Vol. 1. Wiley.

Power-law fluid consistency index (m) calculator

Power-Law Fluid Consistency Index (m) Calculator

Prepared by Luis Mario Chávez Jurado

Date completed: October 21, 2026


Enter the flow behavior index (n), the apparent (non-Newtonian) viscosity, and the shear rate. The consistency index, m, is calculated automatically and shown in both SI and British units.

n = 1 corresponds to a Newtonian fluid, n < 1 to a shear-thinning (pseudoplastic) fluid, and n > 1 to a shear-thickening (dilatant) fluid.

Formulas used

— power-law (Ostwald–de Waele) shear stress model
— apparent viscosity of the fluid
— consistency index, solved for m (used by this calculator)
Model: Ostwald–de Waele power law for non-Newtonian fluids. Shear rate is expressed in reciprocal seconds (s⁻¹) in both unit systems, so only the stress-related units of m change between SI (Pa·sn) and British (lb·sn/ft²) units. Conversion used: 1 Pa = 0.0208854 lb/ft².

Ideal gas mole calculator - SI

Ideal Gas Mole Calculator Created by: Nayomi Alvarez Contreras Date: November 15, 2026 Desc...