Skip to main content
Loading navigation

Build a District Cooling Customer Outage and Thermal Storage Dispatcher — implementation

Prompt source

implementation67 lines11 sectionsNo variables1 code block
## Build
Plan maintenance isolations of central chillers and primary feeder lines while utilizing customer thermal energy storage. Minimize contract chilled-water deficit penalties during peak cooling hours.

## User
District cooling operational dispatch engineer

## Workflow
1. Parse scheduled chiller maintenance work orders, customer peak cooling nominations, and network pipe connectivity.
2. Simulate hydraulic pressure drop and delivered water temperatures across customer branches using WNTR hydraulic principles.
3. Synthesize customer chilled-water storage discharge schedules to cover supply shortfalls during maintenance windows.
4. Generate a bilingual customer notification brief with expected temperature deltas and contingency cooling commitments.

## Interface
A timeline view showing maintenance windows, hydraulic zone pressure contours, thermal storage levels, and notification draft panes.

## Data
Create normalized JSON network graphs containing 12 district cooling customer branches, pipe diameters, chiller nominal capacities, and thermal tanks.
Starter examples below are synthetic. They are not downloaded records.

## Source
[Water Network Tool for Resilience](https://raw.githubusercontent.com/USEPA/WNTR/main/README.md)
Uses pipe isolation and pressure-dependent delivery algorithms derived from the Water Network Tool for Resilience (WNTR) architecture.

## Tools
langgraph, pydantic, fastapi.
Manages complex state transitions across maintenance scheduling, hydraulic simulation passes, and notification dispatch nodes.
Fast hosted model capable of multi-step workflow coordination and bilingual customer communication drafting.

## 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
- Identifies hydraulic branch pressure deficits below 2.0 bar gauge during single-line chiller isolation scenarios.
- Allocates customer thermal energy storage discharging to maintain building delta-T above 8.5 degrees Celsius.
- Generates bilateral Arabic and English outage notification packets with precise start, duration, and customer capacity quotas.

## Starter Examples
```json
[
  {
    "input": {
      "outage_duration_hours": 6,
      "isolated_chiller_tons": 3000,
      "peak_ambient_c": 44,
      "customer_demand_tons": 8500,
      "plant_active_tons": 6000,
      "storage_capacity_ton_hours": 18000
    },
    "expected_output": {
      "storage_discharge_rate_tons": 2500,
      "unmet_ton_hours": 0,
      "deficit_risk": "low",
      "notification_required": true
    }
  },
  {
    "input": {
      "outage_duration_hours": 8,
      "isolated_chiller_tons": 5000,
      "peak_ambient_c": 47,
      "customer_demand_tons": 10000,
      "plant_active_tons": 4000,
      "storage_capacity_ton_hours": 12000
    },
    "expected_output": {
      "storage_discharge_rate_tons": 1500,
      "unmet_ton_hours": 36000,
      "deficit_risk": "critical",
      "notification_required": true
    }
  }
]
```

## Safety
Generates advisory dispatch plans and notification drafts. Requires sign-off by a licensed district cooling plant superintendent.
Use mock external writes. Require human review before any real deployment.