Build a District Cooling Heat Exchanger Inspection Evidence Workspace — implementation
Linked challenge: Build a District Cooling Heat Exchanger Inspection Evidence Workspace
Prompt source
implementation66 lines11 sectionsNo variables1 code block
## Build
Compare supplied heat exchanger performance estimates with baseline values. Prepare inspection requests, evidence gaps, and bilingual review notes without claiming confirmed fouling or dispatching maintenance crews.
## User
District Cooling Network Dispatcher
## Workflow
1. Import synthetic conductance estimates, measurement provenance, and fictional inspection thresholds.
2. Calculate percentage decline and flag missing or nonpositive baseline values.
3. Prepare inspection requests with possible alternative causes and missing evidence.
4. Export an engineer review packet with English-Arabic draft notes.
## Interface
Substation comparison table with provenance links, decline charts, inspection requests, and review notes.
## Data
Create simplified synthetic records with supplied baseline and current UA estimates in kW/K. Do not infer estimates from incomplete temperature readings.
Starter examples below are synthetic. They are not downloaded records.
## Source
[EnergyPlus](https://raw.githubusercontent.com/NREL/EnergyPlus/develop/README.md)
EnergyPlus provides a simulation integration reference. This application compares supplied estimates. DistrictCooling objects do not diagnose fouling.
## Tools
ollama, pandas, fastapi.
Ollama drafts local review notes. Deterministic code calculates decline and retains measurement provenance.
Use a currently available local open-weight model for English-Arabic notes. Keep calculations deterministic.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Computes decline as 100 times (baseline minus current) divided by baseline, rounded to one decimal place.
- Flags decline strictly above the supplied fictional inspection threshold.
- Rejects missing or nonpositive baseline values.
- Never confirms fouling or dispatches cleaning.
## Starter Examples
```json
[
{
"input": {
"substation_id": "SUB-01",
"baseline_ua_kw_k": 350,
"current_ua_kw_k": 280,
"fictional_threshold_pct": 15,
"provenance": "synthetic estimates"
},
"expected_output": {
"decline_percent": 20,
"inspection_proposed": true,
"fouling_status": "unverified",
"approval_required": true
}
},
{
"input": {
"substation_id": "SUB-02",
"baseline_ua_kw_k": 350,
"current_ua_kw_k": 345,
"fictional_threshold_pct": 15,
"provenance": "synthetic estimates"
},
"expected_output": {
"decline_percent": 1.4,
"inspection_proposed": false,
"fouling_status": "unverified",
"approval_required": true
}
}
]
```
## Safety
Use synthetic estimates and proposed inspections. No confirmed diagnosis, chemical flushing advice, valve control, or crew dispatch.
Use mock external writes. Require human review before any real deployment.