Headloss
headloss_m
Energy loss through the flap gate (m)
Scores if within ±5% of the reference value.
Calculates energy loss through flap gates (tide gates / non-return valves) installed on stormwater outfalls using the orifice equation h = V^2/(2gCd^2). Determines the discharge coefficient from gate type, looks up unseating head from pipe diameter, and computes the effective capacity reduction compared to an open pipe. Used in drainage design to verify that outfall losses remain within acceptable limits for the catchment.
both: The model must reason numerically unaided.
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.
4 inputs
Included directly in every task prompt.
Pipe diameter
pipe_diameter_mm
Nominal pipe diameter at the outfall
Flow velocity m per s
flow_velocity_m_per_s
Mean flow velocity in the outfall pipe V
Upstream head
upstream_head_m
Upstream head driving flow through the gate
Sampled from the scenario and inferable from its description.
Gate type
gate_type
Flap gate hinge configuration
Derived from the archetype scenario. Hidden at hard difficulty.
4 outputs
headloss_m
Energy loss through the flap gate (m)
Scores if within ±5% of the reference value.
unseating_head_m
Minimum head to open the gate against its own weight (m)
Scores if within ±1% of the reference value.
capacity_reduction_percent
Effective capacity reduction compared to open pipe (%)
Scores if within ±3% of the reference value.
discharge_coefficient
Discharge coefficient Cd for the gate type
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.
All inputs given
All parameters given, common suburban gate and pipe size
All inputs given
All parameters given, any gate type and pipe size
Some inputs hidden
Gate type hidden, agent must infer from site description
Hidden inputs
Prompt replacement text
The outfall uses a {{ archetype.description }} ({{ archetype.site_context }})
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 civil engineer specializing in stormwater drainage and outfall hydraulics.2 3## Problem4 5Calculate the energy loss through a flap gate (non-return valve) installed on a stormwater outfall. Determine the discharge coefficient, headloss, unseating head, and effective capacity reduction.6 7## Given8 9| Parameter | Value | Unit |10|-----------|-------|------|11| Pipe diameter | {{ pipe_diameter_mm }} | mm |12| Flow velocity (V) | {{ flow_velocity_m_per_s }} | m/s |13{% if gate_type is defined %}14| Gate type | {{ gate_type }} | - |15{% endif %}16| Upstream head | {{ upstream_head_m }} | m |17{% if archetype_description is defined %}18 19### Site Conditions20 21{{ archetype_description }}22{% endif %}23 24{% if tool_available %}25## Available Tool26 27A flap gate headloss calculation tool is available at `/workspace/{{ meta.name }}_calc.py`. Run it with:28 29```bash30python3 /workspace/{{ meta.name }}_calc.py --help31```32 33You may use this tool to verify your calculations or compute values directly.34{% endif %}35 36## Required37 38Calculate the following:39 401. Discharge coefficient Cd for the gate type412. Energy loss through the flap gate (m)423. Minimum unseating head to open the gate (m)434. Effective capacity reduction compared to an open pipe (%)44 45## Applicable Standards46 47- Manufacturer data (Waterman, Hydro Gate, Mosbaek)48- Hydraulic references for flap gate discharge coefficients49 50## Constraints51 52- No internet access is available. Work from engineering knowledge and the provided tool.53- Use the orifice-based headloss equation:54 55 **Headloss:** h_loss = V² / (2 × g × Cd²)56 57 where:58 - V = mean flow velocity in the pipe (m/s)59 - g = 9.81 m/s²60 - Cd = discharge coefficient (depends on gate type)61 62- Discharge coefficient ranges by gate type:63 - Side-hinged: Cd = 0.60 – 0.65 (use midpoint 0.625)64 - Top-hinged: Cd = 0.55 – 0.60 (use midpoint 0.575)65 - Duckbill (elastomeric): Cd = 0.50 – 0.55 (use midpoint 0.525)66 67- Unseating head lookup by pipe diameter:68 69 | Diameter (mm) | Unseating head (m) |70 |---------------|--------------------|71 | 150 | 0.010 |72 | 225 | 0.012 |73 | 300 | 0.015 |74 | 375 | 0.020 |75 | 450 | 0.025 |76 | 600 | 0.030 |77 | 750 | 0.035 |78 | 900 | 0.040 |79 | 1200 | 0.050 |80 81- **Capacity reduction:** capacity_reduction_percent = (1 − Cd) × 10082 83## Output Format84 85Show your step-by-step working in Markdown, including the discharge coefficient selection, headloss calculation, unseating head lookup, and capacity reduction determination. At the end of your solution, include a JSON block with your final answers in exactly this format:86 87```json88{89 "headloss_m": <numeric_value>,90 "unseating_head_m": <numeric_value>,91 "capacity_reduction_percent": <numeric_value>,92 "discharge_coefficient": <numeric_value>93}94```95 96Write your complete solution to `/workspace/output.md`.97 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.
suburban_stormwater
Suburban stormwater outfall with side-hinged flap gate
tidal_outfall
Tidal outfall with top-hinged flap gate to prevent saltwater intrusion
small_lot_drainage
Small lot or car park drainage outfall with duckbill elastomeric valve
trunk_drainage
Trunk stormwater outfall with heavy-duty top-hinged flap gate
sydney-suburban-outfall-suburban-stormwater-preview — hard difficulty, some inputs hidden.
Suburban stormwater outfall with side-hinged flap gate. sydney-suburban-outfall. Required outputs: headloss_m, unseating_head_m, capacity_reduction_percent, discharge_coefficient
Scenario context and visible inputs.
Executable tool: flap-gate-headloss_calc.py
Inputs withheld at this difficulty.
Gate type
gate_type
Stand-in text in the prompt
The outfall uses a {{ archetype.description }} ({{ archetype.site_context }})
The scored JSON answer schema.
{
"headloss_m": <number>,
"unseating_head_m": <number>,
"capacity_reduction_percent": <number>,
"discharge_coefficient": <number>
}