tpt-power

Rust

A Rust workspace for modeling, simulating, and (eventually) safely controlling power systems — PV/load models, storage, forecasting, dispatch optimization, telemetry, and control policies across composable crates.

0 stars0 forks0 watchers

Languages

Rust100.0%
README

tpt-power

A Rust workspace for modeling, simulating, optimizing, and eventually safely controlling local and distributed power systems: generation, storage, transmission/distribution, load, forecasting, dispatch optimization, telemetry ingestion, and control logic.

Local-first, simulation-before-actuation, and built from reusable crates rather than a single monolithic app.

Crates

CrateResponsibility
tpt-power-coreQuantities, units, IDs, time, errors
tpt-power-assetsSites, buses, assets, topology
tpt-power-modelsPV, load, loss, and generator models
tpt-power-storageBattery / storage state and constraints
tpt-power-forecastForecast types and naive forecasters
tpt-power-solveDispatch and power-flow solving
tpt-power-controlControl policies and safety limiters
tpt-power-telemetryTelemetry ingestion and replay
tpt-power-simSimulation orchestration
tpt-power-cliCommand-line interface (tpt-power)

Getting started

cargo build --workspace
cargo test --workspace

Run a simulation:

cargo run -p tpt-power-cli -- simulate --site examples/home-pv-battery/site.toml --scenario examples/home-pv-battery/scenario.toml

License

Licensed under either of

at your option.

Copyright (c) 2026 TPT Solutions.