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

Sludge Production

Estimates activated sludge production from BOD removal, observed biological yield, solids decay, primary TSS capture, and VSS-to-TSS conversion. The template reports BOD removed, observed yield, biomass VSS production, primary solids, and total sludge production.

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

Standards

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

9 inputs

Always given

Included directly in every task prompt.

9
Show 9 inputs
  • Flow rate

    flow_rate_m3_d

    Process flow rate

    10 – 1000000 m3/d
  • Influent bod

    influent_bod_mg_l

    Influent BOD concentration

    10 – 1000 mg/L
  • Effluent bod

    effluent_bod_mg_l

    Effluent BOD concentration

    0 – 100 mg/L
  • Influent tss

    influent_tss_mg_l

    Influent TSS concentration

    0 – 1000 mg/L
  • Primary tss removal pct

    primary_tss_removal_pct

    Primary treatment TSS removal

    0 – 80 %
  • Yield coefficient

    yield_coefficient

    Biomass yield coefficient

    0.1 – 0.9
  • Decay coefficient d inv

    decay_coefficient_d_inv

    Endogenous decay coefficient

    0 – 0.2 1/d
  • Srt days

    srt_days

    Solids retention time

    1 – 60 d
  • Vss to tss ratio

    vss_to_tss_ratio

    Biomass VSS to TSS ratio

    0.5 – 0.9

Scored outputs

5 outputs

Bod removed kg d

bod_removed_kg_d

BOD removed

Scores if within ±3% of the reference value.

Observed yield vss per bod

observed_yield_vss_per_bod

Observed biomass yield

Scores if within ±3% of the reference value.

Biomass production kg vss d

biomass_production_kg_vss_d

Biomass production as VSS

Scores if within ±3% of the reference value.

Primary solids kg tss d

primary_solids_kg_tss_d

Primary solids captured

Scores if within ±3% of the reference value.

Total sludge kg tss d

total_sludge_kg_tss_d

Total sludge production as TSS

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 package plant sludge production
medium:
All parameters given across package and municipal plants
hard:
All parameters given for municipal sludge production

Task bundle

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

/workspace

  • instruction.md
  • sludge-production_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 wastewater solids handling.2 3## Problem4 5Estimate activated sludge production from BOD removal, observed biomass yield, decay, and primary solids capture.6 7## Given8 9| Parameter | Value | Unit |10|-----------|-------|------|11| Flow rate | {{ flow_rate_m3_d }} | m3/d |12| Influent BOD | {{ influent_bod_mg_l }} | mg/L |13| Effluent BOD | {{ effluent_bod_mg_l }} | mg/L |14| Influent TSS | {{ influent_tss_mg_l }} | mg/L |15| Primary TSS removal | {{ primary_tss_removal_pct }} | % |16| Yield coefficient | {{ yield_coefficient }} | - |17| Decay coefficient | {{ decay_coefficient_d_inv }} | 1/d |18| SRT | {{ srt_days }} | d |19| VSS to TSS ratio | {{ vss_to_tss_ratio }} | - |20 21{% if archetype_description is defined %}22### Process Context23 24{{ archetype_description }}25{% endif %}26 27{% if tool_available %}28## Available Tool29 30A sludge production calculation tool is available at `/workspace/{{ meta.name }}_calc.py`. Run it with:31 32```bash33python3 /workspace/{{ meta.name }}_calc.py --help34```35 36You may use this tool to verify your calculations or compute values directly.37{% endif %}38 39## Required40 41Calculate the following:42 431. BOD removed (kg/d)442. Observed biomass yield (kg VSS/kg BOD removed)453. Biomass production as VSS (kg/d)464. Primary solids captured as TSS (kg/d)475. Total sludge production as TSS (kg/d)48 49## Constraints50 51- No internet access is available. Work from engineering knowledge and the provided tool.52- Use BOD removed = flow x (influent BOD - effluent BOD) / 1000.53- Use observed yield = yield coefficient / (1 + decay coefficient x SRT).54- Use biomass VSS production = observed yield x BOD removed.55- Use biomass TSS production = biomass VSS production / VSS to TSS ratio.56- Use primary solids = flow x influent TSS x primary removal percent / 100000.57- Use total sludge production = biomass TSS production + primary solids.58 59## Output Format60 61Show 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:62 63```json64{65 "bod_removed_kg_d": <numeric_value>,66 "observed_yield_vss_per_bod": <numeric_value>,67 "biomass_production_kg_vss_d": <numeric_value>,68 "primary_solids_kg_tss_d": <numeric_value>,69 "total_sludge_kg_tss_d": <numeric_value>70}71```72 73Write your complete solution to `/workspace/output.md`.74

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.

Package plant

package_plant

Package activated sludge plant

remote-community-wwtpindustrial-package-wwtp
Parameter ranges
flow_rate_m3_d
100 – 5000
influent_bod_mg_l
150 – 400
effluent_bod_mg_l
5 – 30
influent_tss_mg_l
100 – 400
primary_tss_removal_pct
0 – 50
yield_coefficient
0.35 – 0.65
decay_coefficient_d_inv
0.03 – 0.1
srt_days
4 – 25
vss_to_tss_ratio
0.65 – 0.85

Municipal plant

municipal_plant

Municipal activated sludge plant

regional-wwtpurban-nutrient-removal-plant
Parameter ranges
flow_rate_m3_d
5000 – 500000
influent_bod_mg_l
150 – 350
effluent_bod_mg_l
2 – 20
influent_tss_mg_l
150 – 450
primary_tss_removal_pct
30 – 70
yield_coefficient
0.35 – 0.65
decay_coefficient_d_inv
0.03 – 0.1
srt_days
6 – 35
vss_to_tss_ratio
0.65 – 0.85

Example task

regional-wwtp-municipal-plant-previewhard difficulty, all inputs given.

Municipal activated sludge plant. regional-wwtp. Required outputs: bod_removed_kg_d, observed_yield_vss_per_bod, biomass_production_kg_vss_d, primary_solids_kg_tss_d, total_sludge_kg_tss_d

The model sees

Scenario context and visible inputs.

flow_rate_m3_d
5000 to 500000 m3/d
influent_bod_mg_l
150 to 350 mg/L
effluent_bod_mg_l
2 to 20 mg/L
influent_tss_mg_l
150 to 450 mg/L
primary_tss_removal_pct
30 to 70 %
yield_coefficient
0.35 to 0.65
decay_coefficient_d_inv
0.03 to 0.1 1/d
srt_days
6 to 35 d
vss_to_tss_ratio
0.65 to 0.85

Executable tool: sludge-production_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.

{
  "bod_removed_kg_d": <number>,
  "observed_yield_vss_per_bod": <number>,
  "biomass_production_kg_vss_d": <number>,
  "primary_solids_kg_tss_d": <number>,
  "total_sludge_kg_tss_d": <number>
}
  • bod_removed_kg_d · scored within ±3%
  • observed_yield_vss_per_bod · scored within ±3%
  • biomass_production_kg_vss_d · scored within ±3%
  • primary_solids_kg_tss_d · scored within ±3%
  • total_sludge_kg_tss_d · scored within ±3%