Energy

Tenzan Wyspa: power plan for a long outage

Which facilities keep power when the grid is down for days.

The Wyspa window at day 2, 06:00: the power map with the four priority 1 facilities on, the shop with fridges and the block of homes off by the plan, 10% battery and 203 L of diesel left.
The river town at day 2, 06:00, default settings: the plan has switched off the shop with fridges and the block of homes. The site is fictional; the weather is that of Kłodzko, Poland, from 14 to 16 September 2024 (Open-Meteo, ERA5, CC BY 4.0 (opens in a new tab)). Open this exact state.
Who it is for
Councils, emergency services and aid organisations that plan backup power
Data
Fictional sites, recorded weather from 2024 (Open-Meteo, ERA5)

Three questions to try

What happens hour by hour?

Open the town at its first hour and press Play. The map shows which facilities have power in each hour, and the event list says why the plan switches one off. With the default settings all four priority 1 facilities have power in 72 of 72 hours. Method: the Wyspa engine, river town scenario, default settings.

What if there is no diesel?

Open the town with no diesel. All 400 L of diesel is kept back: the window shows 0 L usable, 400 L kept back, so only the battery and solar remain. The Wyspa plan keeps the health centre powered for 72 h, the only-priority-1 rule for 40 h. All four priority 1 facilities together have power for 12 h with the plan and 40 h with that rule: the plan keeps the top facility on longest and switches lower priority 1 facilities off earlier. With no plan, 11 h. Method: the Wyspa engine, river town, default settings apart from the diesel kept back.

What does it cost to serve the homes first?

Open the town with this setting. The block of homes (priority 3) gets power before every other facility. Priority 3 then gets 74% of the energy it needs instead of 0%. But the health centre and the rest of priority 1 get no power at all (0 of 72 hours): the planner switches a facility on only if the facilities already on keep their power to the end, and the homes alone still lack power in 16 hours. The window marks priority 1 as a problem in red and lists the cost of the override: 7 facilities short. Serving first changes the order only; it cannot create energy. Method: the Wyspa engine, river town, default settings with the homes served first.

From the weather to a plan a person checks

A town cut off from the grid has only its local power system (a microgrid): solar panels, a battery and a generator that power a few facilities without the main grid. Engineers call this running as an island; wyspa is Polish for island. In our model, when all facilities together need more in an hour than the system can give, the whole system shuts down, like a blown fuse. Then the health centre and the water pumps go dark too. Wyspa decides earlier what to switch off, so the most important facilities keep power.

  1. Weather

    Hourly sunlight and temperature from Open-Meteo data (ERA5 reanalysis: past weather rebuilt from measurements and a weather model) give the solar output for each of the 72 hours.

  2. Forecast

    For future hours the planner takes the recorded weather and lowers solar output by 15%. The current hour uses the actual output.

  3. Priority list

    Every hour the planner goes down the list of facilities. It switches a facility on only if every facility already on still has power to the end of the 72 hours. Every switch-off gets a reason.

  4. Human review

    The planner only proposes and explains. A person checks who loses power, then prints a briefing; the demo does not switch anything.

The generator starts only when the battery cannot cover the hour. A facility that cannot run is skipped, and the planner still tests the smaller facilities below it. So a small facility of a lower priority can run while a large one of a higher priority is off.

Same result for priority 1; priority 2 costs the diesel reserve

We compare three ways to run the same local power system for 72 hours. Priority 1 is the health centre, water pumping station, sewage pumps and telecom mast in the town, and the medical tent, water purification and communications in the camp.

River town, three flood days (14 to 16 September 2024)
Result after 72 hNo plan (everything on)Only priority 1Wyspa plan
All priority 1 facilities, hours with power, of 7235 h72 h72 h
Health centre, hours with power, of 7235 h72 h72 h
Priority 2, share of needed energy45%0%48%
Priority 3, share of needed energy42%0%0%
Diesel left after 72 h, of 400 L4 L185 L0 L
Relief camp, three freezing days (8 to 10 January 2024)
Result after 72 hNo plan (everything on)Only priority 1Wyspa plan
All priority 1 facilities, hours with power, of 7245 h72 h72 h
Medical tent, hours with power, of 7245 h72 h72 h
Priority 2, share of needed energy57%0%48%
Priority 3, share of needed energy69%0%0%
Diesel left after 72 h, of 250 L0 L217 L0 L

The Wyspa plan adds energy for priority 2, most of it for the school shelter (which gets 69% of the energy it needs). If the outage may last longer, set "Diesel kept back for later" in the window: with 100 L kept back for later, the plan still keeps priority 1 powered for 72 of 72 hours and covers 19% of what priority 2 needs. Method: the Wyspa engine, river town, default settings apart from the diesel kept back.

Method: the Wyspa engine, 72 hours, each scenario's default settings. An hour counts only when every priority 1 facility got all the power it needed. The energy share is energy supplied divided by energy needed. With no plan, the whole system shuts down, like a blown fuse, in any hour it cannot cover everything. The forecast is the recorded weather lowered by 15%, and the plan knows the outage ends at hour 72. The 15% is an assumption, not a measured forecast error, and the results do not predict how a real site would hold up. These are model results, not measurements of a real outage.

For engineers: the technology stack
LayerChoiceWhat it does
EngineStrict TypeScript, no DOMOne-hour steps. The same input always gives the same plan. Tests check the energy-flow rule on cases computed by hand and re-check on the forecast every switch-off made to protect the facilities already on.
DataAn Open-Meteo snapshot in the repositoryWe fetched the weather once with a script. The demo calls no weather API.
Power mapSVG and HTMLOne drawing of the town: the state of each facility in the chosen hour and the flow from solar, battery and generator. A text table under it gives the same facts.
ChartOne SVGPower served by priority, solar output, battery charge, diesel generator power and switch-offs. A switch-off mark shows its reason on hover or when you reach it with the Tab key.
URL stateQuery parametersThe address holds the hour, the settings and your choices, so a link opens the same plan. The window reads only known values and ignores the rest.
WindowHTML, CSS and TypeScript, esbuildNo framework. Polish and English, full keyboard control, and the plan updates at once when you move a slider or change a priority.

Sources, scope and limits

What you can do in the window
  • Play the outage hour by hour, or jump to the next event.
  • Serve one facility before all the others, or exclude it from the plan.
  • Move a facility up or down the priority list.
  • Change the solar panels, the battery and the diesel tank.
  • Pick an outage of 1, 2 or 3 days.
  • Keep diesel back for later, or ask how much diesel the plan needs.
  • Mark the demo plan reviewed, in your browser only.
  • Print a short briefing of the plan.
  • Download the hourly data as a CSV file.
  • Copy a link that opens the same plan.
Real weather, fictional sites

Two scenarios: a fictional river town over three flood days, 14 to 16 September 2024, with the weather of Kłodzko, and a fictional relief camp over three cold days, 8 to 10 January 2024, with the weather of Suwałki. The town's local power system feeds a few public buildings, a shop, road lighting and one block of homes. The weather comes from the Open-Meteo historical API (ERA5 reanalysis) under the CC BY 4.0 (opens in a new tab) licence. Credit: "Weather data by Open-Meteo.com; ERA5 reanalysis, Copernicus Climate Change Service (C3S). PV output calculated by Wyspa." We compute the solar output ourselves from this data; it is not an Open-Meteo observation. Open-Meteo licence (opens in a new tab). We compute solar output in the style of PVWatts version 5 (NREL). The generator's fuel use is the curve from a manufacturer's table (Cummins C100 D2R), scaled to fictional 60 kW and 30 kW sets. The battery gives back 85% of the energy put into it (round-trip efficiency, after the NREL Annual Technology Baseline 2024). Facility sizes, schedules and the priority order are assumptions, and the window marks each one as assumed for this demo.

Civil protection and logistics only

Wyspa plans power for civilian facilities in civil protection and humanitarian logistics, such as a flooded town or a relief camp. There are no weapons, no targets and no identification of persons, and the sites and equipment are fictional. The priorities are an assumption, not guidance for real services. Simulation only. Not connected to equipment. Do not use as a switching instruction.

Built around a published challenge

Wyspa is built around the "Energy and Power" challenge published in the NATO DIANA 2026 call. It was not submitted to that call. It is not a NATO project, and NATO has not assessed it.

Describe the problem, we come back with a price

  • We reply within 48 hours of your message; a deadline on a weekend or public holiday moves to the next working day.
  • Free intro audit, fixed price, no surcharge if the work takes longer than quoted.

Or write: contact@tenzanlogic.com

The form data is used only to answer your enquiry. Details in the privacy notice.