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

Darcy Weisbach Headloss

Calculates friction head loss in pressurised pipe flow using the Darcy-Weisbach equation hf = f * (L/D) * V^2/(2g), with the friction factor determined by the Swamee-Jain explicit approximation for turbulent flow or f = 64/Re for laminar flow. Computes Reynolds number and flow velocity as intermediate results. Used in water supply and hydraulic pipeline design to size pipes and evaluate pressure losses.

inputs

5 fields

context

4 archetypes

engine

with-tool

outputs

4 scored fields

contract fields

Parameter Map

5 inputs to 4 scored outputs

  • flow_rate_m3_s

    float

    Volumetric flow rate Q

    0.01 to 2m³/s
  • pipe_diameter_m

    float

    Internal pipe diameter D

    0.05 to 2m
  • pipe_length_m

    float

    Pipe length L

    10 to 5000m
  • roughness_height_mm

    floatfrom archetypehidden in hard

    Absolute roughness height epsilon

    0.01 to 5mm
  • kinematic_viscosity_m2_s

    floatoptional

    Kinematic viscosity of the fluid nu

    5e-7 to 0.000015m²/s
flow_velocity_m_stol 0.03

Mean flow velocity V (m/s)

reynolds_numbertol 0.03

Reynolds number Re

friction_factortol 0.05

Darcy friction factor f

head_loss_mtol 0.03

Friction head loss hf (m)

visibility contract

Difficulty Ladder

all_giveneasy

All parameters given, smooth pipe, moderate flow

all fields visible
all_givenmedium

All parameters given, any pipe material and flow regime

all fields visible
partialhard

Roughness hidden, agent must infer from pipe material description

roughness_height_mm

scenario bands

Archetype Atlas

new_pvc

2 contexts

New PVC or HDPE pipeline

roughness_height_mm0.01 to 0.03

sydney-greenfield / brisbane-suburban

new_ductile_iron

2 contexts

New cement-lined ductile iron pipeline

roughness_height_mm0.03 to 0.1

melbourne-trunk-main / adelaide-distribution

aged_cast_iron

2 contexts

Aged unlined cast iron pipeline with moderate tuberculation

roughness_height_mm0.5 to 2

sydney-inner-west-legacy / melbourne-inner-legacy

corrugated_steel

2 contexts

Corrugated steel drainage culvert

roughness_height_mm1.5 to 5

darwin-rural-crossing / cairns-rural-crossing

rendered task

Generation Preview

sydney-greenfield-new-pvc-preview

difficulty
hard
visibility
partial
archetype
new_pvc
site context
sydney-greenfield
instruction excerptdarcy-weisbach-headloss_calc.py

visible fields

  • flow_rate_m3_s0.01 to 2 m³/s
  • pipe_diameter_m0.05 to 2 m
  • pipe_length_m10 to 5000 m
  • kinematic_viscosity_m2_s1.004e-06 m²/s

withheld schema

roughness_height_mmflow_velocity_m_sreynolds_numberfriction_factorhead_loss_m
New PVC or HDPE pipeline. sydney-greenfield. Required outputs: flow_velocity_m_s, reynolds_number, friction_factor, head_loss_m