Speed m s
speed_m_s
Train speed in metres per second
Scores if within ±3% of the reference value.
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.
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.
5 inputs
Included directly in every task prompt.
Train mass
train_mass_t
Train mass
Speed
speed_km_h
Train speed
Coefficient a
coefficient_a_n_t
Davis constant resistance coefficient
Coefficient b n t km h
coefficient_b_n_t_km_h
Davis speed-linear resistance coefficient
Coefficient c n t km h2
coefficient_c_n_t_km_h2
Davis speed-squared resistance coefficient
4 outputs
speed_m_s
Train speed in metres per second
Scores if within ±3% of the reference value.
resistance_n_per_t
Running resistance per tonne
Scores if within ±3% of the reference value.
total_resistance_kn
Total running resistance
Scores if within ±3% of the reference value.
tractive_power_kw
Tractive power to overcome running resistance
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 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 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 Davis resistance check
freight_train
Freight train Davis resistance check
freight-rail-corridor-freight-train-preview — hard 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
Scenario context and visible inputs.
Executable tool: davis-resistance_calc.py
Inputs withheld at this difficulty.
Nothing. All inputs are supplied.
The scored JSON answer schema.
{
"speed_m_s": <number>,
"resistance_n_per_t": <number>,
"total_resistance_kn": <number>,
"tractive_power_kw": <number>
}