Distance ratio
distance_ratio
Distance ratio r2/r1
Scores if within ±3% of the reference value.
Calculates the free-field sound pressure level at a target distance from a known reference level and distance. The template uses inverse-square geometric spreading, expressed as L2 = L1 - 20 log10(r2/r1), for deterministic first-pass acoustic propagation checks.
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.
3 inputs
Included directly in every task prompt.
Reference spl
reference_spl_db
Sound pressure level at the reference distance
Reference distance
reference_distance_m
Reference distance from the point source
Target distance
target_distance_m
Target distance from the point source
3 outputs
distance_ratio
Distance ratio r2/r1
Scores if within ±3% of the reference value.
attenuation_db
Geometric spreading attenuation
Scores if within ±3% of the reference value.
target_spl_db
Sound pressure level at the target distance
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 services acoustics.2 3## Problem4 5Calculate the sound pressure level at a target distance from a point source using inverse-square distance attenuation.6 7## Given8 9| Parameter | Value | Unit |10|-----------|-------|------|11| Reference SPL L1 | {{ reference_spl_db }} | dB |12| Reference distance r1 | {{ reference_distance_m }} | m |13| Target distance r2 | {{ target_distance_m }} | m |14 15{% if archetype_description is defined %}16### Acoustic Context17 18{{ archetype_description }}19{% endif %}20 21{% if tool_available %}22## Available Tool23 24A distance attenuation calculation tool is available at `/workspace/{{ meta.name }}_calc.py`. Run it with:25 26```bash27python3 /workspace/{{ meta.name }}_calc.py --help28```29 30You may use this tool to verify your calculations or compute values directly.31{% endif %}32 33## Required34 35Calculate the following:36 371. Distance ratio r2/r1382. Geometric spreading attenuation (dB)393. Sound pressure level at the target distance (dB)40 41## Constraints42 43- No internet access is available. Work from engineering knowledge and the provided tool.44- Treat the source as a point source in free-field conditions.45- Use attenuation = 20 log10(r2/r1).46- Use L2 = L1 - attenuation.47- Do not add ground absorption, barrier, meteorological, facade, or directivity corrections.48 49## Output Format50 51Show 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:52 53```json54{55 "distance_ratio": <numeric_value>,56 "attenuation_db": <numeric_value>,57 "target_spl_db": <numeric_value>58}59```60 61Write your complete solution to `/workspace/output.md`.62 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.
plant_room_equipment
Mechanical plant item assessed at occupied-area setback
industrial_fan
Industrial fan or blower assessed at site boundary
construction_noise
Temporary construction equipment assessed at a receiver
water-treatment-plant-industrial-fan-preview — hard difficulty, all inputs given.
Industrial fan or blower assessed at site boundary. water-treatment-plant. Required outputs: distance_ratio, attenuation_db, target_spl_db
Scenario context and visible inputs.
Executable tool: distance-attenuation_calc.py
Inputs withheld at this difficulty.
Nothing. All inputs are supplied.
The scored JSON answer schema.
{
"distance_ratio": <number>,
"attenuation_db": <number>,
"target_spl_db": <number>
}