Energy flux w
energy_flux_w_m
Wave energy flux at breaking (E*Cg)_b in W/m
Scores if within ±3% of the reference value.
Estimates annual volumetric longshore sediment transport using the CERC formula from the USACE Coastal Engineering Manual and Shore Protection Manual. Calculates wave energy flux at the breaker line and converts it to a sediment transport rate, accounting for wave angle, sediment and water densities, and porosity. Used in coastal engineering to predict littoral drift and inform beach nourishment or breakwater design.
with-tool: The model is given an executable Python calculator script.
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.
Breaking wave height
breaking_wave_height_m
Significant breaking wave height H_b
Wave angle at breaking deg
wave_angle_at_breaking_deg
Wave angle at breaking relative to shore-normal alpha_b (positive = left-to-right looking shoreward)
Sampled from the scenario and inferable from its description.
K coefficient
k_coefficient
CERC empirical transport coefficient K
Derived from the archetype scenario. Hidden at hard difficulty.
Used only when the sampled task needs this part of the contract.
Sediment density
sediment_density_kg_m3
Sediment grain density rho_s
Derived from the archetype scenario. Optional input. Hidden at hard difficulty.
Water density
water_density_kg_m3
Water density rho_w
Derived from the archetype scenario. Optional input. Hidden at hard difficulty.
Porosity
porosity
In-situ sediment porosity p
Derived from the archetype scenario. Optional input. Hidden at hard difficulty.
3 outputs
energy_flux_w_m
Wave energy flux at breaking (E*Cg)_b in W/m
Scores if within ±3% of the reference value.
transport_rate_m3_yr
Volumetric longshore transport rate Q_l (m³/year, absolute value)
Scores if within ±5% of the reference value.
transport_direction
Transport direction: 1.0 = left-to-right, -1.0 = right-to-left (looking shoreward)
Scores if within ±1% 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
Moderate wave height, all parameters given — straightforward CERC formula application
All inputs given
Larger waves, steeper angles, all parameters given — larger numbers but same formula
Some inputs hidden
K coefficient, sediment density, water density, and porosity hidden — agent must infer from site description
Hidden inputs
Prompt replacement text
The site is 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 coastal engineer specializing in littoral processes and sediment transport.2 3## Problem4 5Calculate the longshore sediment transport rate using the CERC formula (USACE Coastal Engineering Manual / Shore Protection Manual).6 7## Given8 9| Parameter | Value | Unit |10|-----------|-------|------|11| Breaking wave height (H_b) | {{ breaking_wave_height_m }} | m |12| Wave angle at breaking (α_b) | {{ wave_angle_at_breaking_deg }} | degrees |13{% if k_coefficient is defined %}14| CERC transport coefficient (K) | {{ k_coefficient }} | - |15{% endif %}16{% if sediment_density_kg_m3 is defined %}17| Sediment density (ρ_s) | {{ sediment_density_kg_m3 }} | kg/m³ |18{% endif %}19{% if water_density_kg_m3 is defined %}20| Water density (ρ_w) | {{ water_density_kg_m3 }} | kg/m³ |21{% endif %}22{% if porosity is defined %}23| Sediment porosity (p) | {{ porosity }} | - |24{% endif %}25{% if archetype_description is defined %}26 27### Site Conditions28 29{{ archetype_description }}30{% endif %}31 32{% if tool_available %}33## Available Tool34 35A longshore transport calculation tool is available at `/workspace/{{ meta.name }}_calc.py`. Run it with:36 37```bash38python3 /workspace/{{ meta.name }}_calc.py --help39```40 41You may use this tool to verify your calculations or compute values directly.42{% endif %}43 44## Required45 46Calculate the following:47 481. Wave energy flux at breaking (E × C_g)_b in W/m492. Volumetric longshore transport rate Q_l in m³/year (absolute value)503. Transport direction (1.0 = left-to-right looking shoreward, -1.0 = right-to-left)51 52## Applicable Standards53 54- USACE Coastal Engineering Manual (CEM)55- Shore Protection Manual (SPM)56 57## Constraints58 59- No internet access is available. Work from engineering knowledge and the provided tool.60- Use the CERC formula with breaker index γ_b = 0.78:61 - Breaking depth: d_b = H_b / γ_b62 - Shallow water group velocity at breaking: C_gb = √(g × d_b)63 - Wave energy flux: (E × C_g)_b = ρ_w × g × H_b² × C_gb / 864 - Longshore wave power component: P_ls = (E × C_g)_b × sin(2α_b) / 265 - Immersed weight transport rate: I_l = K × P_ls66 - Volumetric transport rate: Q_l = I_l / ((ρ_s − ρ_w) × g × (1 − p))67 - Convert Q_l from m³/s to m³/year using 365.25 × 24 × 3600 seconds per year68- Use g = 9.81 m/s²69- Transport direction: positive α_b means transport is left-to-right looking shoreward (direction = 1.0); negative α_b means right-to-left (direction = -1.0)70- Report transport_rate_m3_yr as an absolute value71 72## Output Format73 74Show 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:75 76```json77{78 "energy_flux_w_m": <numeric_value>,79 "transport_rate_m3_yr": <numeric_value>,80 "transport_direction": <numeric_value>81}82```83 84Write your complete solution to `/workspace/output.md`.85 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.
exposed_sandy_coast
High-energy exposed sandy coastline with quartz sand and large oblique swell
moderate_energy_beach
Moderate-energy beach with medium swell and modest wave angles
sheltered_embayment
Low-energy sheltered embayment with short-period wind waves and fine sand
high_energy_headland
High-energy headland-controlled pocket beach with coarse sand and strong oblique waves
nsw-south-coast-swell-exposed-sandy-coast-preview — hard difficulty, some inputs hidden.
High-energy exposed sandy coastline with quartz sand and large oblique swell. nsw-south-coast-swell. Required outputs: energy_flux_w_m, transport_rate_m3_yr, transport_direction
Scenario context and visible inputs.
Executable tool: cerc-longshore-transport_calc.py
Inputs withheld at this difficulty.
K coefficient
k_coefficient
Sediment density
sediment_density_kg_m3
Porosity
porosity
Water density
water_density_kg_m3
Stand-in text in the prompt
The site is a {{ archetype.description }} ({{ archetype.site_context }})
The scored JSON answer schema.
{
"energy_flux_w_m": <number>,
"transport_rate_m3_yr": <number>,
"transport_direction": <number>
}