This blog was created to publish chemical engineering apps to aid calculations. The apps presented here were created by the chemical engineering community of the Facultad de Ciencias Químicas, Universidad Autónoma de Chihuahua.
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)$$
% 1. Solve for Hydraulic Grade Line (HGL):
$$\text{HGL} = z + \frac{P}{\gamma} = z + \frac{P}{\rho g}$$
% 2. Solve for Height / Elevation (z):
$$z = \text{HGL} - \frac{P}{\gamma}$$
% 3. Solve for Pressure (P):
$$P = \gamma \cdot \left(\text{HGL} - z\right)$$
Input Parameters
B. Unit System Preset:SI Units Active
Equivalent: 35.1937 m = 115.4648 ft
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)
Please enter valid numerical values and ensure Fluid Specific Weight (\(\gamma\)) is greater than zero.
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
Choose the unit system of your data (SI or British).
Type the density, pipe inside diameter, mean velocity, plastic viscosity and yield stress of the fluid. Use a dot as decimal separator.
The results update automatically as you type. No button is needed.
If you switch the unit system, the values you already typed are converted for you.
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.
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$.
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.
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)$.
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
Select the unit system you want to type your data in (the fields are converted automatically if you switch).
Choose whether you know the mean velocity or the volumetric flow rate.
Enter the pipe diameter, fluid density, consistency index $m$, and flow behavior index $n$.
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
Quantity
SI
British
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:
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.
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)