Velocity m s
velocity_m_s
Pipe flow velocity
Scores if within ±3% of the reference value.
Calculates water pipe pressure loss using the Hazen-Williams equation for straight-pipe friction and a total K value for fittings and valves. The template reports pipe velocity, friction loss, fitting loss, and total pressure loss in kPa.
with-tool: The model is given an executable Python calculator script.
Standards
One template produces many comparable benchmark tasks while keeping the scoring contract fixed.
01
The reusable contract shown on this page.
02
An archetype and site context are sampled.
03
Inputs may be hidden at harder tiers.
04
The model responds with the declared outputs.
Inputs the model receives, and the outputs it is scored on.
6 inputs
Included directly in every task prompt.
Flow rate
flow_rate_l_s
Water flow rate
Pipe internal diameter
pipe_internal_diameter_mm
Internal pipe diameter
Pipe length
pipe_length_m
Pipe length
Hazen williams c
hazen_williams_c
Hazen-Williams roughness coefficient
Total fitting k
total_fitting_k
Total fitting and valve K value
Fluid density
fluid_density_kg_m3
Fluid density
4 outputs
velocity_m_s
Pipe flow velocity
Scores if within ±3% of the reference value.
friction_loss_kpa
Straight-pipe friction pressure loss
Scores if within ±3% of the reference value.
fitting_loss_kpa
Fitting and valve pressure loss
Scores if within ±3% of the reference value.
total_pressure_loss_kpa
Total pipe pressure loss
Scores if within ±3% of the reference value.
Each template is sampled at three tiers. Harder tiers may hide inputs, forcing the model to infer them from the scenario description.
For this template, difficulty scales through parameter and scenario ranges rather than hidden information.
The exact instruction and parameter contract used to generate this task, pinned to the published library source.
/workspace
Teal lines show Jinja input conditions, not task visibility policy. A line renders only when that input or tool is visible.
1You are a senior mechanical engineer specializing in building water hydraulics.2 3## Task4 5Calculate the pressure loss through the water pipework in {{ site_context }}.6 7## Given8 9| Parameter | Value | Unit |10| --- | ---: | --- |11| Flow rate | {{ flow_rate_l_s }} | L/s |12| Internal pipe diameter | {{ pipe_internal_diameter_mm }} | mm |13| Pipe length | {{ pipe_length_m }} | m |14| Hazen-Williams C value | {{ hazen_williams_c }} | - |15| Total fitting K value | {{ total_fitting_k }} | - |16| Fluid density | {{ fluid_density_kg_m3 }} | kg/m3 |17 18## Constraints19 20- No internet access is available.21- Use `h_f = 10.67 L Q^1.852 / (C^1.852 d^4.871)` with Q in m3/s and d in m.22- Use `h_k = K v^2 / (2g)` for fittings and valves.23- Use `g = 9.81 m/s2`.24- Convert pressure losses from head using `delta_p = rho g h`.25 26{% if tool_available %}27## Available Tool28 29A calculation tool is available at `/workspace/{{ meta.name }}_calc.py`. Run it with:30 31```bash32python3 /workspace/{{ meta.name }}_calc.py --help33```34 35You may use this tool to verify your calculations or compute values directly.36{% endif %}37 38## Required39 40Calculate:41 42- Pipe velocity (`velocity_m_s`)43- Straight-pipe friction pressure loss (`friction_loss_kpa`)44- Fitting and valve pressure loss (`fitting_loss_kpa`)45- Total pipe pressure loss (`total_pressure_loss_kpa`)46 47## Output Format48 49Show your step-by-step working in Markdown. At the end of your solution, include a JSON block with your final answers in exactly this format:50 51```json52{53 "velocity_m_s": <numeric_value>,54 "friction_loss_kpa": <numeric_value>,55 "fitting_loss_kpa": <numeric_value>,56 "total_pressure_loss_kpa": <numeric_value>57}58```59 60Write your complete solution to `/workspace/output.md`.61 Each generated task is drawn from one of these realistic scenario bands.
Site contexts ground each scenario in a real locale the model can use to infer hidden values.
building_water_service
Building water service pressure-loss check
site_water_main
Site water main pressure-loss check
site-water-main-site-water-main-preview — hard difficulty, all inputs given.
Site water main pressure-loss check. site-water-main. Required outputs: velocity_m_s, friction_loss_kpa, fitting_loss_kpa, total_pressure_loss_kpa
Scenario context and visible inputs.
Executable tool: pressure-loss-calculation_calc.py
Inputs withheld at this difficulty.
Nothing. All inputs are supplied.
The scored JSON answer schema.
{
"velocity_m_s": <number>,
"friction_loss_kpa": <number>,
"fitting_loss_kpa": <number>,
"total_pressure_loss_kpa": <number>
}