# chaffybird56/batterypack architecture

> Architecture diagram of the GitHub repository chaffybird56/batterypack, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chaffybird56/batterypack
- Repository: https://github.com/chaffybird56/batterypack

## Overview

BatteryPack is a Python library for **offline electro-thermal simulation** of lithium-ion packs, not a deployed service. The architecture is centered on a pipeline that starts with chemistry/configuration data, feeds a cell-and-pack model, then runs drive-cycle or charge simulations, and finally emits metrics, plots, exports, and safety evaluations.

1. **Entry points and user-facing surface**
   The main public API appears to be `battery_pack.pack.BatteryPack`, with supporting helpers in `config.py` such as `cell_params_for_chemistry()`. Scripts in `scripts/` provide reproducible demos, sweeps, UPS sizing runs, ML training, and README plot generation.

2. **Configuration and chemistry presets**
   `config.py` and `config_loader.py` define how cell and pack parameters are loaded and standardized. This is the boundary where chemistry-specific values like LFP, NMC811, NCA, and LCO are turned into model inputs for the rest of the system.

3. **Core cell model**
   `cell.py` likely implements the first-order equivalent-circuit model described in the README: an ECM with `R0 + R1||C1`, plus SoC/temperature-dependent behavior. This is the lowest-level physical abstraction used by pack-level simulation.

4. **Pack-level electrical model**
   `pack.py` is the main composition layer, assembling cells into an `Ns × Np` pack. This is where pack voltage, current, power, state of charge, and efficiency are computed from the cell model and operating profile.

5. **Thermal modeling**
   `thermal.py` and `thermal_network.py` handle lumped and optionally multi-node thermal behavior. Electrical losses from the pack model are translated into heat generation, then into temperature rise and thermal gradients.

6. **Simulation orchestration**
   `simulation.py` appears to orchestrate charge/discharge runs and round-trip efficiency calculations. It is the primary “engine” that accepts a pack, a load/charge profile, and time-step settings, then produces time-series results.

7. **Load, mission, and drive-cycle inputs**
   `drive_cycles.py`, `drive_cycles_real.py`, and `mission.py` define the external demand imposed on the pack. These modules convert synthetic cycles, CSV-like profiles, and automotive-style duty cycles into simulation inputs; they are the main upstream data source for the engine.

8. **Charging and power-limit behavior**
   `charging.py`, `limits.py`, and `bms.py` define operational constraints and charge behavior. This is the boundary where max charge/discharge power, voltage/current/temperature limits, and BMS-style protection logic influence whether the pack can continue operating.

9. **Safety and fault screening**
   `safety.py` adds failure-mode and thermal-runaway screening, including hazard-style outputs and likely FMEA-oriented checks. This is a separate safety analysis layer rather than part of the base electrical model, which matters for diagramming the safety boundary.

10. **Post-processing and reporting**
   `metrics.py`, `export.py`, and `plots.py` handle result summarization and output formats. The repo generates CSV/JSON/HDF5-style artifacts and figures; the `outputs/` tree shows these are saved as run-specific experiment outputs rather than source code.

11. **Advanced analysis modules**
   `aging.py`, `economics.py`, `ups_backup.py`, `sweep.py`, `uncertainty.py`, `variation.py`, `validation.py`, and `ml.py` extend the core simulation into adjacent analysis domains:
   - aging/lifetime behavior
   - economics and LCOE-style analysis
   - UPS backup sizing
   - Monte Carlo / parameter sweeps
   - cell-to-cell or parameter variation
   - validation against expected behavior
   - ML-based surrogate or support tooling

12. **External adapter boundary**
   `pybamm_adapter.py` is a notable integration point. It suggests optional interop with PyBaMM, so the repo can either run its own lightweight ECM stack or adapt to a more detailed battery modeling backend.

13. **Developer and automation layer**
   `.github/workflows/ci.yml` runs the test and formatting checks in CI. `tests/` provides coverage for basic behavior, advanced flows, and safety rules, which mirrors the library’s main architectural slices.

14. **Overall data flow**
   The canonical flow is: **chemistry/config → cell model → pack + thermal model → drive cycle/charge profile → simulation engine → safety/limits/metrics → export/plots/analysis**. Advanced modules branch off after or alongside simulation results rather than replacing the core model.

15. **Artifact and run structure**
   `outputs/` contains generated demo, sweep, ML, and advanced-demo results, which indicates the repo is organized around reproducible batch experiments. These outputs are downstream artifacts and should be treated as generated data, not part of the core runtime.

Main entry points: [`battery_pack/simulation.py`](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/simulation.py) (Simulation), [`battery_pack/pack.py`](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pack.py) (Pack model), [`battery_pack/thermal.py`](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/thermal.py) (Thermal model), [`battery_pack/config.py`](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/config.py) (Config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Core simulation"]
  node_battery_pack_config["Config<br/>chemistry presets<br/>[config.py]"]
  node_battery_pack_config_loader["Loader<br/>config io<br/>[config_loader.py]"]
  node_battery_pack_cell["Cell model<br/>ecm cell<br/>[cell.py]"]
  node_battery_pack_pack["Pack model<br/>pack composition<br/>[pack.py]"]
  node_battery_pack_pack_advanced["Advanced pack<br/>extended pack<br/>[pack_advanced.py]"]
  node_battery_pack_thermal["Thermal model<br/>lumped thermal<br/>[thermal.py]"]
  node_battery_pack_thermal_network["Thermal net<br/>multi-node thermal<br/>[thermal_network.py]"]
  node_battery_pack_simulation["Simulation<br/>runtime engine<br/>[simulation.py]"]
end

subgraph group_inputs["Inputs"]
  node_battery_pack_drive_cycles["Drive cycles<br/>cycle inputs<br/>[drive_cycles.py]"]
  node_battery_pack_drive_cycles_real["Real cycles<br/>profile loader"]
  node_battery_pack_mission["Mission<br/>demand profile<br/>[mission.py]"]
end

subgraph group_analysis["Analysis"]
  node_battery_pack_charging["Charging<br/>charge logic<br/>[charging.py]"]
  node_battery_pack_limits["Limits<br/>[limits.py]"]
  node_battery_pack_bms["BMS<br/>protection logic<br/>[bms.py]"]
  node_battery_pack_safety["Safety<br/>fault screening<br/>[safety.py]"]
  node_battery_pack_metrics["Metrics<br/>summaries<br/>[metrics.py]"]
  node_battery_pack_export["Export<br/>[export.py]"]
  node_battery_pack_plots["Plots<br/>visualization<br/>[plots.py]"]
  node_battery_pack_aging["Aging<br/>lifetime analysis<br/>[aging.py]"]
  node_battery_pack_economics["Economics<br/>cost analysis<br/>[economics.py]"]
  node_battery_pack_ups_backup["UPS sizing<br/>backup sizing<br/>[ups_backup.py]"]
  node_battery_pack_sweep["Sweeps<br/>parameter sweep<br/>[sweep.py]"]
  node_battery_pack_uncertainty["Uncertainty<br/>monte carlo<br/>[uncertainty.py]"]
  node_battery_pack_variation["Variation<br/>[variation.py]"]
  node_battery_pack_validation["Validation<br/>model checks<br/>[validation.py]"]
  node_battery_pack_ml["ML<br/>surrogate tooling<br/>[ml.py]"]
  node_battery_pack_pybamm_adapter["PyBaMM<br/>external adapter<br/>[pybamm_adapter.py]"]
end

subgraph group_tooling["Tooling"]
  node_scripts_run_demo["Demo<br/>script<br/>[run_demo.py]"]
  node_scripts_run_advanced_demo["Advanced demo<br/>script"]
  node_scripts_run_sweeps["Sweeps run<br/>script<br/>[run_sweeps.py]"]
  node_scripts_run_ups_demo["UPS demo<br/>script<br/>[run_ups_demo.py]"]
  node_scripts_train_ml["Train ML<br/>script<br/>[train_ml.py]"]
  node_scripts_generate_readme_plots["README plots<br/>script"]
  node_github_ci["CI<br/>workflow<br/>[ci.yml]"]
end

subgraph group_artifacts["Artifacts"]
end

node_battery_pack_config_loader -->|"normalizes"| node_battery_pack_config
node_battery_pack_config -->|"feeds"| node_battery_pack_cell
node_battery_pack_cell -->|"builds"| node_battery_pack_pack
node_battery_pack_pack -->|"losses to heat"| node_battery_pack_thermal
node_battery_pack_thermal -->|"extends"| node_battery_pack_thermal_network
node_battery_pack_pack -->|"simulates"| node_battery_pack_simulation
node_battery_pack_thermal -->|"couples"| node_battery_pack_simulation
node_battery_pack_drive_cycles -->|"profiles"| node_battery_pack_simulation
node_battery_pack_drive_cycles_real -->|"profiles"| node_battery_pack_simulation
node_battery_pack_mission -->|"profiles"| node_battery_pack_simulation
node_battery_pack_charging -->|"controls"| node_battery_pack_simulation
node_battery_pack_limits -->|"constrains"| node_battery_pack_bms
node_battery_pack_bms -->|"gates"| node_battery_pack_simulation
node_battery_pack_safety -->|"evaluates"| node_battery_pack_simulation
node_battery_pack_simulation -->|"produces"| node_battery_pack_metrics
node_battery_pack_simulation -->|"emits"| node_battery_pack_export
node_battery_pack_simulation -->|"visualizes"| node_battery_pack_plots
node_battery_pack_simulation -->|"analyzes"| node_battery_pack_aging
node_battery_pack_simulation -->|"analyzes"| node_battery_pack_economics
node_battery_pack_simulation -->|"sizes"| node_battery_pack_ups_backup
node_battery_pack_simulation -->|"explores"| node_battery_pack_sweep
node_battery_pack_simulation -->|"samples"| node_battery_pack_uncertainty
node_battery_pack_simulation -->|"varies"| node_battery_pack_variation
node_battery_pack_simulation -->|"checks"| node_battery_pack_validation
node_battery_pack_simulation -->|"trains"| node_battery_pack_ml
node_battery_pack_pybamm_adapter -.->|"adapts"| node_battery_pack_pack
node_scripts_run_demo -->|"drives"| node_battery_pack_simulation
node_scripts_run_advanced_demo -->|"drives"| node_battery_pack_pack_advanced
node_scripts_run_sweeps -->|"runs"| node_battery_pack_sweep
node_scripts_run_ups_demo -->|"runs"| node_battery_pack_ups_backup
node_scripts_train_ml -->|"trains"| node_battery_pack_ml
node_scripts_generate_readme_plots -->|"renders"| node_battery_pack_plots
node_github_ci -.->|"checks"| node_scripts_run_demo

click node_battery_pack_config "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/config.py"
click node_battery_pack_config_loader "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/config_loader.py"
click node_battery_pack_cell "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/cell.py"
click node_battery_pack_pack "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pack.py"
click node_battery_pack_pack_advanced "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pack_advanced.py"
click node_battery_pack_thermal "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/thermal.py"
click node_battery_pack_thermal_network "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/thermal_network.py"
click node_battery_pack_simulation "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/simulation.py"
click node_battery_pack_drive_cycles "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/drive_cycles.py"
click node_battery_pack_drive_cycles_real "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/drive_cycles_real.py"
click node_battery_pack_mission "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/mission.py"
click node_battery_pack_charging "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/charging.py"
click node_battery_pack_limits "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/limits.py"
click node_battery_pack_bms "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/bms.py"
click node_battery_pack_safety "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/safety.py"
click node_battery_pack_metrics "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/metrics.py"
click node_battery_pack_export "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/export.py"
click node_battery_pack_plots "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/plots.py"
click node_battery_pack_aging "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/aging.py"
click node_battery_pack_economics "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/economics.py"
click node_battery_pack_ups_backup "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/ups_backup.py"
click node_battery_pack_sweep "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/sweep.py"
click node_battery_pack_uncertainty "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/uncertainty.py"
click node_battery_pack_variation "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/variation.py"
click node_battery_pack_validation "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/validation.py"
click node_battery_pack_ml "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/ml.py"
click node_battery_pack_pybamm_adapter "https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pybamm_adapter.py"
click node_scripts_run_demo "https://github.com/chaffybird56/batterypack/blob/main/scripts/run_demo.py"
click node_scripts_run_advanced_demo "https://github.com/chaffybird56/batterypack/blob/main/scripts/run_advanced_demo.py"
click node_scripts_run_sweeps "https://github.com/chaffybird56/batterypack/blob/main/scripts/run_sweeps.py"
click node_scripts_run_ups_demo "https://github.com/chaffybird56/batterypack/blob/main/scripts/run_ups_demo.py"
click node_scripts_train_ml "https://github.com/chaffybird56/batterypack/blob/main/scripts/train_ml.py"
click node_scripts_generate_readme_plots "https://github.com/chaffybird56/batterypack/blob/main/scripts/generate_readme_plots.py"
click node_github_ci "https://github.com/chaffybird56/batterypack/blob/main/.github/workflows/ci.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_battery_pack_config,node_battery_pack_config_loader,node_battery_pack_cell,node_battery_pack_pack,node_battery_pack_pack_advanced,node_battery_pack_thermal,node_battery_pack_thermal_network,node_battery_pack_simulation toneBlue
class node_battery_pack_drive_cycles,node_battery_pack_drive_cycles_real,node_battery_pack_mission toneAmber
class node_battery_pack_charging,node_battery_pack_limits,node_battery_pack_bms,node_battery_pack_safety,node_battery_pack_metrics,node_battery_pack_export,node_battery_pack_plots,node_battery_pack_aging,node_battery_pack_economics,node_battery_pack_ups_backup,node_battery_pack_sweep,node_battery_pack_uncertainty,node_battery_pack_variation,node_battery_pack_validation,node_battery_pack_ml,node_battery_pack_pybamm_adapter toneMint
class node_scripts_run_demo,node_scripts_run_advanced_demo,node_scripts_run_sweeps,node_scripts_run_ups_demo,node_scripts_train_ml,node_scripts_generate_readme_plots,node_github_ci toneRose
```

## Components

### Core simulation

Chemistry, cell, pack, thermal, and simulation engine.

- [Config](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/config.py): chemistry presets · Loads and standardizes cell and pack parameters for supported chemistries. · `battery_pack/config.py`
- [Loader](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/config_loader.py): config io · Configuration loading and normalization boundary. · `battery_pack/config_loader.py`
- [Cell model](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/cell.py): ecm cell · Equivalent-circuit cell behavior with SoC and temperature dependence. · `battery_pack/cell.py`
- [Pack model](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pack.py): pack composition · Assembles cells into an Ns x Np pack and computes pack-level electrical behavior. · `battery_pack/pack.py`
- [Advanced pack](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pack_advanced.py): extended pack · Higher-level pack behaviors built on the core pack model. · `battery_pack/pack_advanced.py`
- [Thermal model](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/thermal.py): lumped thermal · Maps electrical losses into heat and temperature rise. · `battery_pack/thermal.py`
- [Thermal net](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/thermal_network.py): multi-node thermal · Thermal network representation for gradients and coupled nodes. · `battery_pack/thermal_network.py`
- [Simulation](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/simulation.py): runtime engine · Orchestrates charge and discharge runs over profiles and time steps. · `battery_pack/simulation.py`

### Inputs

Profiles and mission sources that drive simulation.

- [Drive cycles](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/drive_cycles.py): cycle inputs · Synthetic and standard drive-cycle inputs for simulation. · `battery_pack/drive_cycles.py`
- [Real cycles](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/drive_cycles_real.py): profile loader · Real-world or CSV-like duty-cycle inputs. · `battery_pack/drive_cycles_real.py`
- [Mission](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/mission.py): demand profile · Mission-style operating profiles and workload definitions. · `battery_pack/mission.py`

### Analysis

Post-processing, extensions, safety, and external adapters.

- [Charging](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/charging.py): charge logic · Charge behavior and operating transitions during charging. · `battery_pack/charging.py`
- [Limits](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/limits.py): operating limits · Current, voltage, power, and temperature constraints. · `battery_pack/limits.py`
- [BMS](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/bms.py): protection logic · BMS-style protection and decision logic around allowable operation. · `battery_pack/bms.py`
- [Safety](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/safety.py): fault screening · Safety evaluation and thermal-runaway style screening. · `battery_pack/safety.py`
- [Metrics](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/metrics.py): summaries · Result aggregation and performance metrics. · `battery_pack/metrics.py`
- [Export](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/export.py): data export · Writes simulation results to files and external formats. · `battery_pack/export.py`
- [Plots](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/plots.py): visualization · Generates figures and report graphics from results. · `battery_pack/plots.py`
- [Aging](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/aging.py): lifetime analysis · Battery degradation and lifetime-related analysis. · `battery_pack/aging.py`
- [Economics](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/economics.py): cost analysis · Economic and lifecycle cost analysis. · `battery_pack/economics.py`
- [UPS sizing](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/ups_backup.py): backup sizing · UPS backup sizing and runtime estimation. · `battery_pack/ups_backup.py`
- [Sweeps](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/sweep.py): parameter sweep · Batch exploration of model parameters and scenarios. · `battery_pack/sweep.py`
- [Uncertainty](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/uncertainty.py): monte carlo · Uncertainty and stochastic variation analysis. · `battery_pack/uncertainty.py`
- [Variation](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/variation.py): parameter variation · Cell-to-cell or parameter variation analysis. · `battery_pack/variation.py`
- [Validation](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/validation.py): model checks · Validation against expected behavior and reference outcomes. · `battery_pack/validation.py`
- [ML](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/ml.py): surrogate tooling · Machine-learning support or surrogate modeling. · `battery_pack/ml.py`
- [PyBaMM](https://github.com/chaffybird56/batterypack/blob/main/battery_pack/pybamm_adapter.py): external adapter · Optional integration boundary to PyBaMM-based modeling. · `battery_pack/pybamm_adapter.py`

### Tooling

Scripts and CI around the library.

- [Demo](https://github.com/chaffybird56/batterypack/blob/main/scripts/run_demo.py): script · Reproducible demo run for the core simulation pipeline. · `scripts/run_demo.py`
- [Advanced demo](https://github.com/chaffybird56/batterypack/blob/main/scripts/run_advanced_demo.py): script · Runs extended scenarios and advanced analysis flows. · `scripts/run_advanced_demo.py`
- [Sweeps run](https://github.com/chaffybird56/batterypack/blob/main/scripts/run_sweeps.py): script · Executes batch parameter sweeps. · `scripts/run_sweeps.py`
- [UPS demo](https://github.com/chaffybird56/batterypack/blob/main/scripts/run_ups_demo.py): script · Runs UPS backup sizing demonstrations. · `scripts/run_ups_demo.py`
- [Train ML](https://github.com/chaffybird56/batterypack/blob/main/scripts/train_ml.py): script · Trains ML support models or surrogates. · `scripts/train_ml.py`
- [README plots](https://github.com/chaffybird56/batterypack/blob/main/scripts/generate_readme_plots.py): script · Builds documentation figures and example plots. · `scripts/generate_readme_plots.py`
- [CI](https://github.com/chaffybird56/batterypack/blob/main/.github/workflows/ci.yml): workflow · Continuous integration for tests and checks. · `.github/workflows/ci.yml`

## Connections

- Loader → Config: normalizes · Loads and standardizes chemistry and pack parameters.
- Config → Cell model: feeds · Provides cell parameter sets to the cell model.
- Cell model → Pack model: builds · Cell model is composed into pack-level simulation.
- Pack model → Thermal model: losses to heat · Electrical losses become thermal inputs.
- Thermal model → Thermal net: extends · Thermal network refines lumped thermal behavior.
- Pack model → Simulation: simulates · Pack model is executed by the simulation engine.
- Thermal model → Simulation: couples · Thermal state feeds time-step simulation.
- Drive cycles → Simulation: profiles · Drive-cycle inputs drive simulation runs.
- Real cycles → Simulation: profiles · Real-world profiles are converted into simulation inputs.
- Mission → Simulation: profiles · Mission definitions act as upstream demand.
- Charging → Simulation: controls · Charging behavior shapes simulation trajectories.
- Limits → BMS: constrains · Operating limits inform BMS protection decisions.
- BMS → Simulation: gates · Protection logic can stop or limit operation.
- Safety → Simulation: evaluates · Safety screening analyzes simulation outcomes.
- Simulation → Metrics: produces · Simulation results are summarized into metrics.
- Simulation → Export: emits · Results are exported to files and artifacts.
- Simulation → Plots: visualizes · Time series and summaries are plotted.
- Simulation → Aging: analyzes · Simulation outputs can be reused for aging studies.
- Simulation → Economics: analyzes · Outputs feed economic analysis.
- Simulation → UPS sizing: sizes · Simulation supports UPS runtime sizing.
- Simulation → Sweeps: explores · Batch sweeps vary model parameters and scenarios.
- Simulation → Uncertainty: samples · Uncertainty analysis wraps repeated simulations.
- Simulation → Variation: varies · Variation analysis probes pack and cell differences.
- Simulation → Validation: checks · Validation compares outputs against expectations.
- Simulation → ML: trains · ML tooling consumes simulation data for surrogates.
- PyBaMM → Pack model: adapts · Optional adapter boundary for alternate battery backend integration.
- Demo → Simulation: drives · Demo script exercises the main simulation pipeline.
- Advanced demo → Advanced pack: drives · Advanced demo exercises extended pack behaviors.
- Sweeps run → Sweeps: runs · Sweep script executes parameter exploration.
- UPS demo → UPS sizing: runs · UPS demo executes backup sizing flows.
- Train ML → ML: trains · Training script builds ML artifacts.
- README plots → Plots: renders · Documentation script generates showcase figures.
- CI → Demo: checks · CI validates the demo path and basic behavior.
