Fluid only wave speed m s
fluid_only_wave_speed_m_s
Wave speed considering fluid compressibility only
Scores if within ±3% of the reference value.
Calculates pressure wave propagation speed in an elastic pipe from fluid bulk modulus, fluid density, pipe elastic modulus, diameter, wall thickness, and restraint condition. The template separates the fluid-only wave speed from the pipe flexibility reduction used in first-pass water hammer screening.
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.
6 inputs
Included directly in every task prompt.
Fluid bulk modulus
fluid_bulk_modulus_gpa
Fluid bulk modulus K
Fluid density
fluid_density_kg_m3
Fluid density rho
Pipe elastic modulus
pipe_elastic_modulus_gpa
Pipe material elastic modulus E
Pipe diameter
pipe_diameter_mm
Pipe internal diameter D
Pipe wall thickness
pipe_wall_thickness_mm
Pipe wall thickness e
Restraint condition
restraint_condition
Pipe restraint condition factor
4 outputs
fluid_only_wave_speed_m_s
Wave speed considering fluid compressibility only
Scores if within ±3% of the reference value.
flexibility_factor
Pipe flexibility reduction factor
Scores if within ±3% of the reference value.
wave_speed_m_s
Pressure wave speed in the pipe
Scores if within ±3% of the reference value.
pipe_flexibility_ratio
Dimensionless pipe flexibility contribution
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 hydraulic transients.2 3## Problem4 5Calculate pressure wave propagation speed in a pipe, accounting for both fluid compressibility and pipe-wall flexibility.6 7## Given8 9| Parameter | Value | Unit |10|-----------|-------|------|11| Fluid bulk modulus K | {{ fluid_bulk_modulus_gpa }} | GPa |12| Fluid density rho | {{ fluid_density_kg_m3 }} | kg/m3 |13| Pipe elastic modulus E | {{ pipe_elastic_modulus_gpa }} | GPa |14| Pipe internal diameter D | {{ pipe_diameter_mm }} | mm |15| Pipe wall thickness e | {{ pipe_wall_thickness_mm }} | mm |16| Restraint condition | {{ restraint_condition }} | - |17 18{% if archetype_description is defined %}19### Pipe Context20 21{{ archetype_description }}22{% endif %}23 24{% if tool_available %}25## Available Tool26 27A wave speed 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. Fluid-only wave speed (m/s)412. Pipe flexibility factor423. Pressure wave speed in the pipe (m/s)434. Pipe flexibility ratio44 45## Constraints46 47- No internet access is available. Work from engineering knowledge and the provided tool.48- Convert GPa to Pa by multiplying by 10^9.49- Convert mm to m by dividing by 1000.50- Use fluid-only speed a0 = sqrt(K / rho).51- Use pipe flexibility ratio = K x D / (E x e x restraint factor).52- Use restraint factors: fully_restrained = 1.0, anchored_with_expansion = 0.85, unrestrained = 0.7.53- Use flexibility factor = sqrt(1 + pipe flexibility ratio).54- Use wave speed = fluid-only speed / flexibility factor.55 56## Output Format57 58Show 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:59 60```json61{62 "fluid_only_wave_speed_m_s": <numeric_value>,63 "flexibility_factor": <numeric_value>,64 "wave_speed_m_s": <numeric_value>,65 "pipe_flexibility_ratio": <numeric_value>66}67```68 69Write your complete solution to `/workspace/output.md`.70 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.
steel_water_main
Steel water main with high wall stiffness
ductile_iron_main
Ductile iron water main with cement lining
hdpe_rising_main
Flexible HDPE rising main
urban-distribution-main-ductile-iron-main-preview — hard difficulty, all inputs given.
Ductile iron water main with cement lining. urban-distribution-main. Required outputs: fluid_only_wave_speed_m_s, flexibility_factor, wave_speed_m_s, pipe_flexibility_ratio
Scenario context and visible inputs.
Executable tool: wave-speed-calculation_calc.py
Inputs withheld at this difficulty.
Nothing. All inputs are supplied.
The scored JSON answer schema.
{
"fluid_only_wave_speed_m_s": <number>,
"flexibility_factor": <number>,
"wave_speed_m_s": <number>,
"pipe_flexibility_ratio": <number>
}