omni_darcy_weisbach_head_loss
Calculate Darcy-Weisbach pipe friction head loss, pressure drop, flow velocity, and Reynolds flow regime from flow rate, diameter, length, and friction factor to verify pressurized pipe performance.
Instructions
Darcy-Weisbach Pipe Friction Head Loss & Pressure Drop Calculator. Calculate friction head loss (h_f in feet), pressure drop (psi), and Reynolds number (laminar vs turbulent) for pressurized fluid flow in commercial pipe networks. Discipline: ENGINEERING. Governing mathematical model / formula: Head Loss h_f = f · (L / D) · (v² / [2 · g]) | Pressure Drop ΔP = h_f · ρ · g / 144.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of friction_head_loss_feet (Total Friction Head Loss), pressure_drop_psi (Total Pressure Drop across Run), fluid_flow_velocity_fps (Mean Flow Velocity), reynolds_flow_regime (Reynolds Number Flow Regime) using pipe_inside_diameter_in (Pipe Inside Diameter (Inches) in in), pipe_length_feet (Total Pipe Run Length (Feet) in ft), flow_rate_gpm (Volumetric Flow Rate (GPM) in GPM), darcy_friction_factor (Darcy Friction Factor (f)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Darcy-Weisbach Pipe Friction Head Loss & Pressure Drop Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "darcy-weisbach-head-loss"
category (string): "engineering"
name (string): "Darcy-Weisbach Pipe Friction Head Loss & Pressure Drop Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.friction_head_loss_feet (Total Friction Head Loss): Formatted display string (e.g. '14.28 ft H₂O')
metrics.pressure_drop_psi (Total Pressure Drop across Run): Formatted display string (e.g. '6.18 PSI Drop')
metrics.fluid_flow_velocity_fps (Mean Flow Velocity): Formatted display string (e.g. '7.23 ft / second')
metrics.reynolds_flow_regime (Reynolds Number Flow Regime): Formatted display string (e.g. 'Turbulent (Re ≈ 3.7 × 10⁵)')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_darcy_weisbach_head_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_rate_gpm | No | Volumetric Flow Rate (GPM) (GPM). Water flow rate through pipe. Default: 650. Min: 5. Max: 15000. | |
| pipe_length_feet | No | Total Pipe Run Length (Feet) (ft). Length of straight pipe run. Default: 500. Min: 10. Max: 50000. | |
| darcy_friction_factor | No | Darcy Friction Factor (f). Moody chart value (commercial steel water pipe typically 0.018 - 0.022). Default: 0.019. Min: 0.008. Max: 0.08. | |
| pipe_inside_diameter_in | No | Pipe Inside Diameter (Inches) (in). Nominal 6-inch Schedule 40 Steel = 6.065 inches ID. Default: 6.065. Min: 0.5. Max: 72. |