LIVEdataset releasetasks 552models 18last submission · built
task library
built templatesprinkler-hydraulicswith-tool

Friction Loss Hazen Williams

Calculates sprinkler pipe friction loss using the imperial Hazen-Williams equation with flow in gpm, length in feet, and diameter in inches. The template includes fitting equivalent length and reports pipe-only and total pressure loss in psi.

inputs

5 fields

context

2 archetypes

engine

with-tool

outputs

4 scored fields

contract fields

Parameter Map

5 inputs to 4 scored outputs

  • flow_rate_gpm

    float

    Sprinkler pipe flow rate

    1 to 5000gpm
  • pipe_length_ft

    float

    Straight pipe length

    0.1 to 2000ft
  • pipe_internal_diameter_in

    float

    Internal pipe diameter

    0.25 to 24in
  • hazen_williams_c

    float

    Hazen-Williams C factor

    40 to 160
  • fitting_equivalent_length_ft

    float

    Equivalent length for fittings

    0 to 1000ft
friction_loss_per_ft_psitol 0.03

Friction loss per foot

equivalent_length_fttol 0.03

Total equivalent pipe length

pipe_friction_loss_psitol 0.03

Straight-pipe friction loss

total_pressure_loss_psitol 0.03

Total pressure loss including fittings

visibility contract

Difficulty Ladder

all_giveneasy

All parameters given for a sprinkler branch line

all fields visible
all_givenmedium

All parameters given across sprinkler pipe contexts

all fields visible
all_givenhard

All parameters given for a sprinkler feed main

all fields visible

scenario bands

Archetype Atlas

branch_line

2 contexts

Sprinkler branch line friction-loss calculation

flow_rate_gpm20 to 300
pipe_length_ft10 to 200
pipe_internal_diameter_in1 to 4
hazen_williams_c100 to 140

sprinkler-branch-line / fire-protection-zone

feed_main

2 contexts

Sprinkler feed main friction-loss calculation

flow_rate_gpm200 to 2000
pipe_length_ft50 to 800
pipe_internal_diameter_in4 to 12
hazen_williams_c100 to 140

sprinkler-feed-main / fire-main

rendered task

Generation Preview

sprinkler-feed-main-feed-main-preview

difficulty
hard
visibility
all_given
archetype
feed_main
site context
sprinkler-feed-main
instruction excerptfriction-loss-hazen-williams_calc.py

visible fields

  • flow_rate_gpm200 to 2000 gpm
  • pipe_length_ft50 to 800 ft
  • pipe_internal_diameter_in4 to 12 in
  • hazen_williams_c100 to 140
  • fitting_equivalent_length_ft20 to 300 ft

withheld schema

friction_loss_per_ft_psiequivalent_length_ftpipe_friction_loss_psitotal_pressure_loss_psi
Sprinkler feed main friction-loss calculation. sprinkler-feed-main. Required outputs: friction_loss_per_ft_psi, equivalent_length_ft, pipe_friction_loss_psi, total_pressure_loss_psi