LIVEdataset aec-bench@releasetasks 552models 18last submission · built
mechanicalwith-tool

Davis Resistance

Calculates train running resistance using the Davis equation with constant, speed-linear, and speed-squared coefficients. The template reports resistance per tonne, total resistance, converted speed, and the tractive power needed to overcome that resistance.

with-tool: The model is given an executable Python calculator script.

How this task is generated

One template produces many comparable benchmark tasks while keeping the scoring contract fixed.

  1. 01

    Template

    The reusable contract shown on this page.

  2. 02

    Scenario

    An archetype and site context are sampled.

  3. 03

    Difficulty tier

    Inputs may be hidden at harder tiers.

  4. 04

    Task prompt

    The model responds with the declared outputs.

Parameters

Inputs the model receives, and the outputs it is scored on.

Inputs

5 inputs

Always given

Included directly in every task prompt.

5
  • Train mass

    train_mass_t

    Train mass

    1 – 50000 t
  • Speed

    speed_km_h

    Train speed

    0 – 300 km/h
  • Coefficient a

    coefficient_a_n_t

    Davis constant resistance coefficient

    0 – 100 N/t
  • Coefficient b n t km h

    coefficient_b_n_t_km_h

    Davis speed-linear resistance coefficient

    0 – 5 N/t per km/h
  • Coefficient c n t km h2

    coefficient_c_n_t_km_h2

    Davis speed-squared resistance coefficient

    0 – 0.2 N/t per (km/h)^2

Scored outputs

4 outputs

Speed m s

speed_m_s

Train speed in metres per second

Scores if within ±3% of the reference value.

Resistance n per t

resistance_n_per_t

Running resistance per tonne

Scores if within ±3% of the reference value.

Total resistance kn

total_resistance_kn

Total running resistance

Scores if within ±3% of the reference value.

Tractive power

tractive_power_kw

Tractive power to overcome running resistance

Scores if within ±3% of the reference value.

Difficulty

Each template is sampled at three tiers. Harder tiers may hide inputs, forcing the model to infer them from the scenario description.

All inputs remain visible at every tier

For this template, difficulty scales through parameter and scenario ranges rather than hidden information.

easy:
All parameters given for a passenger train
medium:
All parameters given across train types
hard:
All parameters given for freight train resistance

Task bundle

The exact instruction and parameter contract used to generate this task, pinned to the published library source.

/workspace

  • instruction.md
  • davis-resistance_calc.py

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 rail vehicle dynamics.2 3## Task4 5Calculate Davis running resistance and tractive power for the train in {{ site_context }}.6 7## Given8 9| Parameter | Value | Unit |10| --- | ---: | --- |11| Train mass | {{ train_mass_t }} | t |12| Train speed | {{ speed_km_h }} | km/h |13| Davis A coefficient | {{ coefficient_a_n_t }} | N/t |14| Davis B coefficient | {{ coefficient_b_n_t_km_h }} | N/t per km/h |15| Davis C coefficient | {{ coefficient_c_n_t_km_h2 }} | N/t per (km/h)^2 |16 17## Constraints18 19- No internet access is available.20- Use `R = A + Bv + Cv^2` to calculate resistance in N/t, with speed in km/h.21- Convert speed to m/s using `v_m_s = v_km_h / 3.6`.22- Calculate total resistance in kN as `R * train mass / 1000`.23- Calculate tractive power in kW as `total resistance kN * speed m/s`.24 25{% if tool_available %}26## Available Tool27 28A calculation tool is available at `/workspace/{{ meta.name }}_calc.py`. Run it with:29 30```bash31python3 /workspace/{{ meta.name }}_calc.py --help32```33 34You may use this tool to verify your calculations or compute values directly.35{% endif %}36 37## Required38 39Calculate:40 41- Train speed in metres per second (`speed_m_s`)42- Running resistance per tonne (`resistance_n_per_t`)43- Total running resistance (`total_resistance_kn`)44- Tractive power to overcome running resistance (`tractive_power_kw`)45 46## Output Format47 48Show 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:49 50```json51{52 "speed_m_s": <numeric_value>,53 "resistance_n_per_t": <numeric_value>,54 "total_resistance_kn": <numeric_value>,55 "tractive_power_kw": <numeric_value>56}57```58 59Write your complete solution to `/workspace/output.md`.60

Scenario archetypes

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.

Passenger train

passenger_train

Passenger train Davis resistance check

passenger-rail-corridorinterurban-service
Parameter ranges
train_mass_t
100 – 800
speed_km_h
40 – 160
coefficient_a_n_t
10 – 30
coefficient_b_n_t_km_h
0.2 – 0.8
coefficient_c_n_t_km_h2
0.005 – 0.03

Freight train

freight_train

Freight train Davis resistance check

freight-rail-corridorheavy-haul-service
Parameter ranges
train_mass_t
1000 – 12000
speed_km_h
20 – 110
coefficient_a_n_t
15 – 45
coefficient_b_n_t_km_h
0.1 – 0.6
coefficient_c_n_t_km_h2
0.002 – 0.02

Example task

freight-rail-corridor-freight-train-previewhard difficulty, all inputs given.

Freight train Davis resistance check. freight-rail-corridor. Required outputs: speed_m_s, resistance_n_per_t, total_resistance_kn, tractive_power_kw

The model sees

Scenario context and visible inputs.

train_mass_t
1000 to 12000 t
speed_km_h
20 to 110 km/h
coefficient_a_n_t
15 to 45 N/t
coefficient_b_n_t_km_h
0.1 to 0.6 N/t per km/h
coefficient_c_n_t_km_h2
0.002 to 0.02 N/t per (km/h)^2

Executable tool: davis-resistance_calc.py

The model must infer

Inputs withheld at this difficulty.

Nothing. All inputs are supplied.

The model must produce

The scored JSON answer schema.

{
  "speed_m_s": <number>,
  "resistance_n_per_t": <number>,
  "total_resistance_kn": <number>,
  "tractive_power_kw": <number>
}
  • speed_m_s · scored within ±3%
  • resistance_n_per_t · scored within ±3%
  • total_resistance_kn · scored within ±3%
  • tractive_power_kw · scored within ±3%