Battery thermal reference handbook

Inspect the native equations, reproduce the examples, and separate software evidence from the synthetic teaching lessons.

Reviewed 2026-11-19 · Source 37cb3c16069b. This is a dated documentation snapshot.

Browse reference chapters

Documentation index

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Start with the preserved native model guide, then follow the audience routes below. The static handbook is a dated derived view; canonical Markdown/CFF remains authoritative. Existing interactive thermal lab, native catalogue, learning paths and animation gallery remain available.

Canonical mapping of the 24 required outputs

The existing model guide and substantive notes/templates are preserved. New entry points add current-source contracts and evidence and link to that material; they do not replace it with a second independently maintained feature narrative. CFF is retained verbatim.

Requested entry point Canonical purpose
README.md Existing project narrative plus handbook navigation
CONTRIBUTING.md Existing contribution checklist plus documentation maintenance
CHANGELOG.md Unreleased documentation scope and observed source history
CITATION.cff Existing authorship/citation preserved and schema-validated
SECURITY.md Observed reporting/access boundaries without invented contacts
ROADMAP.md Nine evidence-backed proposed items over twelve calendar months
docs/INDEX.md Canonical mapping and audience routes
docs/developer/ARCHITECTURE.md Native/browser/data/publication boundaries
docs/developer/SETUP_AND_REPRODUCIBILITY.md Source checkout, environment and reproducible commands
docs/developer/API_CLI_AND_INTERFACES.md Native entry points, CLI, input/export contracts
docs/developer/WORKED_EXAMPLES_AND_LABS.md Executed source-specific laboratories
docs/developer/TROUBLESHOOTING.md Source-based symptoms and practical diagnosis
docs/math-and-physics/EQUATIONS_AND_DERIVATIONS.md Balance, exact/Euler/RK4 and reporting derivations
docs/math-and-physics/PARAMETERS_AND_SYMBOLS.md Defaults, units, signs and template mapping
docs/math-and-physics/ASSUMPTIONS_AND_LIMITS.md Validity envelope and unestablished claims
docs/maintainer/VERIFICATION_EVIDENCE_LEDGER.md Observed checks, source criteria and revision limits
docs/maintainer/CI_CD_AND_RELEASE_PLAYBOOK.md Actual workflows and guarded existing publication
docs/maintainer/TOOLCHAIN_AND_DEPENDENCY_MATRIX.md Declared/tested tools and license/data boundaries
docs/maintainer/FAILURE_MODES_AND_TECH_DEBT.md Evidence-backed discrepancies and proposals
docs/maintainer/DOCS_MAINTENANCE_RUNBOOK.md Canonical updates, reproducible renderer and drift checks
docs/owner/ADR/ADR-0000-INDEX.md Reconstructed observations, not historical approvals
docs/owner/GOVERNANCE_AND_SCOPE.md Documented author and proposed responsibilities
docs/owner/BUS_FACTOR_RECOVERY_RUNBOOK.md Concrete source/docs/access restoration
docs/owner/PORTFOLIO_INTEGRATION.md Public interface boundaries and qualified future connections

Supporting reference material

The review distinguishes software verification, synthetic teaching results, measured validation and live publication. The source contains no measured-cell validation package, and an exceeded teaching threshold is not a safety recommendation.

Canonical file: docs/INDEX.md · Back to guide navigation

Lumped Cell Thermal Reference

This dependency-free Python model turns the repository's simplest documented thermal assumptions into an executable calculation. It is intended for education, early screening, and validation-workflow examples, not cell design or safety qualification.

Governing Balance

For each time interval, the model evaluates:

Q_irreversible = I^2 R
Q_reversible = -I T_kelvin dU_oc/dT
Q_generation = Q_irreversible + Q_reversible + Q_external
R(T) = R_ref [1 + alpha (T_cell - T_ref)]
Q_convection = h(t) (T_cell - T_ambient)
Q_radiation = epsilon sigma A (T_cell_kelvin^4 - T_surroundings_kelvin^4)
Q_rejection = Q_convection + Q_radiation
C_thermal dT/dt = Q_generation - Q_rejection
C_thermal = mass * specific_heat

The default method advances temperature with an explicit Euler step. The optional exact linear method solves each interval analytically when current, ambient, entropic coefficient, and heat-transfer coefficient are piecewise constant. The returned result includes stored thermal energy, net heat derived from the computed temperature increments, and their absolute bookkeeping residual. This residual does not measure discretization error or independently validate the heat balance; see the distinction below.

Run The Reference Case

From the repository root with Python 3.12 or later:

python models/lumped_cell_thermal.py `
  --current-a 75 `
  --duration-s 600 `
  --time-step-s 1

The default case represents a 75 A constant-current interval applied to a 1.05 kg lumped cell with 1000 J/(kg K) specific heat, 4 mOhm resistance, zero resistance temperature coefficient, zero entropic coefficient, 1.2 W/K heat transfer, zero surface radiation, and 25 degC initial and ambient temperature.

Run the regression checks with:

python -m unittest discover -s tests -v

Energy Bookkeeping And Numerical Accuracy

For every integration method, interval_net_heat_j is thermal capacity times the computed interval temperature increment. integrated_net_heat_j sums those values; it is not a separate quadrature of the heat rates. Comparing this sum with C_thermal * (T_final - T_initial) gives energy_bookkeeping_residual_j, which is zero apart from floating-point accumulation effects. A small residual does not establish numerical accuracy. The old energy_balance_error_j property remains a compatibility alias with the same value. The CLI now labels these quantities as state-derived net heat and the energy bookkeeping residual. CSV net_heat_j values are unchanged.

For example, with thermal capacity 10 J/K, external heat 10 W, heat transfer 1 W/K, ambient and initial temperature 20 degC, and no electrical heating, the analytic solution is T(t) = 30 - 10 * exp(-t / 10) degC. At 10 s it is 26.3212056 degC. One 10 s Euler step gives 30 degC (3.6787944 degC error), while two 5 s steps give 27.5 degC (1.1787944 degC error). Both runs have a zero bookkeeping residual. Use an independent analytic solution where available, or a reviewed time-step refinement study, to assess integration accuracy.

Exact Linear Integration

Use --integration-method exact-linear when a coarse interval would make an explicit Euler approximation unnecessarily sensitive to time-step size:

python models/lumped_cell_thermal.py `
  --current-a 75 --duration-s 600 --time-step-s 600 `
  --integration-method exact-linear

With constant current, ambient, and entropic coefficient over an interval, linear heat rejection, reversible heat, and the configured linear resistance-temperature relation produce a linear ODE. An interval-specific heat-transfer coefficient is included in that interval's exact feedback slope. The exact method evaluates its exponential solution with expm1 for numerical stability. It also stores the exact net interval heat as thermal capacity times the temperature change. CSV heat rates, resistance_ohm, and entropic_coefficient_v_per_k remain start-of-interval values; net_heat_j is the integrated interval quantity.

The exact method removes integration error for this model equation, but it does not make piecewise-constant current, ambient, parameter, or one-node assumptions more accurate. Keep explicit Euler for educational recurrence comparisons or backward-compatible result reproduction.

Nonlinear Surface Radiation

Set both --emissivity and --radiating-area-m2 to add net diffuse-gray surface radiation. The implementation uses the exact NIST CODATA Stefan-Boltzmann constant, 5.670374419e-8 W/(m^2 K^4), from the 2022 CODATA recommended values. The supplied ambient temperature is also the effective radiative-surroundings temperature for each interval unless a separate boundary is supplied. Use --radiative-surroundings-temperature-c for a constant enclosure temperature, or add radiative_surroundings_temperature_c to a profile for an independent piecewise-constant schedule.

Radiation makes the temperature balance nonlinear, so it requires the fourth-order Runge-Kutta method. --rk4-max-step-s bounds the internal solver step independently of the profile interval width:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/radiative_cooling_profile.csv `
  --emissivity 0.85 --radiating-area-m2 0.03 `
  --integration-method rk4 --rk4-max-step-s 0.5 `
  --output-csv results/radiative_cooling_intervals.csv

The committed illustrative case separates a 25 to 35 degC convection boundary from a 10 to 50 degC radiative-surroundings schedule. It reports a final temperature of 33.323 degC, a peak of 55.433 degC, and start-of-interval radiative heat rejection from -4.342 W to 6.200 W. Negative rejection means the cooler cell receives net radiative heat from warmer surroundings. The result and CSV keep both boundary temperatures, convection, radiation, and total heat rejection separate; integrated net heat remains the thermal-capacity change over each RK4 interval.

The default emissivity and area are both zero, preserving every existing linear case. The two parameters must either both be zero or both be positive, emissivity is constrained to [0, 1], and area must be nonnegative. The exact-linear method rejects enabled radiation rather than silently dropping the nonlinear term. This is a screening boundary: surface emissivity and area are constant, each interval has one effective radiative-surroundings temperature, and view factors, reflections, enclosure exchange, and wavelength dependence are excluded.

Run A Current And Ambient Profile

The CLI accepts a strict CSV containing interval-start timestamps and current commands, with optional interval duration, ambient temperature, entropic coefficient, radiative-surroundings temperature, and heat-transfer coefficient columns. Without a duration_s column, timestamps must start at zero and use one uniform step; positive and negative currents both produce irreversible I^2 R heat.

time_s,current_a
0,0
60,75
120,-50

Run the committed pulse example and export one auditable row per interval:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/pulse_current_profile.csv `
  --output-csv results/pulse_thermal_intervals.csv

The output records interval boundaries and duration, current, start/end temperature, ambient and radiative-surroundings temperatures, heat-transfer coefficient, radiation parameters, evaluated resistance, entropic coefficient, irreversible, reversible, total generated, convective, radiative, and total rejected heat rates, and net interval heat. Profile mode derives the time step from the CSV and rejects --current-a, --duration-s, or --time-step-s overrides.

Run the ambient-step example to make the thermal boundary condition traceable in both the input and exported interval records:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/ambient_step_current_profile.csv `
  --output-csv results/ambient_step_thermal_intervals.csv

A profile without an ambient column uses --ambient-temperature-c or its 25 degC default. A profile containing ambient_temperature_c cannot be combined with that option because the interval values are authoritative. Likewise, a profile without a radiative-surroundings column uses --radiative-surroundings-temperature-c; when neither source is supplied, radiation follows ambient for backward compatibility. A profile containing radiative_surroundings_temperature_c cannot be combined with the constant option. All supplied temperatures must be finite and above absolute zero.

For measurements or dispatch commands with irregular operating windows, add a positive duration_s value to every row. Each time_s must equal the previous interval's end, which rejects gaps and overlaps while making the final interval's duration explicit:

time_s,current_a,duration_s,ambient_temperature_c
0,0,30,25
30,75,90,30
120,-50,15,35

Run the committed irregular profile with exact within-interval integration:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/irregular_current_profile.csv `
  --integration-method exact-linear `
  --output-csv results/irregular_thermal_intervals.csv

The Python API accepts the same schedule through interval_durations_s. The simulation exposes every interval duration, cumulative time boundaries, and the total elapsed duration. Its time_step_s compatibility property returns the common duration for a uniform grid and None for a variable grid.

Variable Cooling Boundary

Add heat_transfer_w_per_k to a profile to represent a supplied sequence of effective cooling conditions such as staged airflow, coolant-flow operating points, or conservative sensitivity cases:

time_s,current_a,duration_s,ambient_temperature_c,heat_transfer_w_per_k
0,100,300,35,0.6
300,100,300,35,1.2
600,100,300,35,4.0
900,50,300,30,6.0
1200,0,600,25,6.0

Run the committed staged-cooling example with exact integration:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/variable_cooling_profile.csv `
  --integration-method exact-linear `
  --output-csv results/variable_cooling_intervals.csv

The Python API accepts the same values through heat_transfers_w_per_k. Values must be finite and nonnegative. A profile column takes precedence over the constant boundary, so combining it with --heat-transfer-w-per-k is rejected instead of silently choosing one source. Every interval result and exported row preserves the applied value.

This input is an effective conductance boundary, not a fan, pump, coolant-loop, or feedback-controller model. Step changes occur only at supplied interval boundaries; derive values from measurements, correlations, or a separately validated cooling model before drawing design conclusions.

Reversible Entropic Heat

Use --entropic-coefficient-v-per-k to add the reversible Bernardi heat term. This model defines positive current as discharge and evaluates Q_reversible = -I * T_kelvin * dU_oc/dT; therefore reversing current reverses the reversible term while I^2 R remains nonnegative. A positive coefficient produces reversible cooling during positive-current discharge and heating during negative-current charge under this convention.

The equation and interpretation follow the electrode-sandwich heat balance in the NREL Li-Ion Battery Thermal Characterization paper, which separates irreversible overpotential heat from reversible entropic heat. Coefficient sign and magnitude vary with chemistry, SOC, and test method, so replace the illustrative values with cell-specific measurements.

Run the committed charge/discharge example with an interval-varying coefficient:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/reversible_heat_current_profile.csv `
  --integration-method exact-linear `
  --output-csv results/reversible-heat-intervals.csv

The Python API accepts entropic_coefficients_v_per_k with one value per current interval. A profile may add entropic_coefficient_v_per_k after the optional duration and ambient columns, allowing an externally prepared SOC-dependent coefficient schedule without claiming an electrical SOC model. Every result preserves the coefficient and separate irreversible, reversible, and total heat-source traces. For exact-linear integration, all reported heat rates are start-of-interval values while net_heat_j remains the exact integrated thermal-energy change.

Temperature-Dependent Resistance

Set --resistance-temperature-coefficient-per-k to evaluate a linear temperature correction around --resistance-reference-temperature-c. A positive coefficient increases irreversible heat as the cell warms, making the electrical-to-thermal feedback visible while preserving a one-node model:

python models/lumped_cell_thermal.py `
  --current-a 100 --duration-s 600 `
  --resistance-temperature-coefficient-per-k 0.01 `
  --resistance-reference-temperature-c 25

Expected key values for that illustrative case:

Final temperature: 43.351 degC
Peak temperature: 43.351 degC
Resistance range: 0.004000 to 0.004733 ohm

The coefficient defaults to zero, so all existing reference cases retain their constant-resistance behavior. Every interval records the evaluated resistance, and a configuration that produces negative resistance at an evaluated temperature is rejected. Replace the reference resistance, coefficient, and temperature with values fitted or measured for the target cell and operating window before engineering use.

External Heat-Source Profile

Use --external-heat-w for a constant signed heat flow into the lumped node, or add external_heat_w to a current-profile CSV for a piecewise-constant schedule. Positive values add heat; negative values represent an independently specified heat sink. This can represent a controlled heater, neighboring component, interconnect estimate, or calibrated parasitic source without folding that term into electrical resistance.

Run the committed profile through the exact linear integrator:

python models/lumped_cell_thermal.py `
  --profile-csv models/data/external_heat_profile.csv `
  --integration-method exact-linear `
  --output-csv results/external_heat_intervals.csv

The exported external_heat_w column remains separate from irreversible and reversible heat. heat_generation_w is their signed sum, and net_heat_j continues to close the stored thermal-energy balance for explicit Euler, exact linear, and RK4 integration. A profile source takes precedence over the default zero source; combining a profile column with --external-heat-w is rejected so the boundary condition remains unambiguous.

This input is a prescribed source, not a conduction network or a solved heater controller. Its sign, location, time alignment, and physical basis must be documented before engineering use. A negative source can remove more heat than the electrical terms generate, but it does not enforce coolant, surface, or absolute-temperature constraints beyond the model's existing validation.

Temperature-Limit Exposure

Assess one or more project-defined temperature limits after a simulation and write one summary row per limit:

python models/lumped_cell_thermal.py `
  --current-a 75 --duration-s 600 `
  --temperature-limit-c 30 `
  --temperature-limit-c 35 `
  --limit-report-csv results/temperature-limits.csv

Each assessment reports whether the limit was exceeded, the first-crossing time, final recovery time when the trace ends at or below the limit, total time above the limit, exposure fraction, peak temperature, and signed margin from the peak to the limit. A negative margin means the simulated peak exceeded the limit. The limit itself is not counted as an exceedance.

Use repeated --minimum-temperature-c values to report the corresponding cold-limit violations. These summaries interpolate the first below-limit crossing and time below the threshold; touching the minimum temperature passes.

Crossing times and exposure duration use piecewise-linear interpolation between the reported temperature states. This makes the calculation deterministic for uniform and variable-duration profiles, but it does not reconstruct motion inside an integration interval. Use a reviewed time-step sensitivity study when a short excursion or precise threshold timing matters. Temperature limits are project inputs, not safety recommendations from this educational model.

Explicit Limitations

  • Resistance may use an optional linear temperature coefficient, but it does not vary with SOC or age and does not represent a nonlinear measured map.
  • Reversible heat uses a supplied constant or piecewise-constant entropic coefficient; the model does not derive its SOC or chemistry dependence.
  • External heat is prescribed rather than derived from a neighboring thermal node, heater controller, or interconnect model.
  • Mixing, phase-change, and side-reaction heat are excluded.
  • The cell is represented by one uniform temperature state.
  • Convection is linear; optional diffuse-gray radiation uses constant surface emissivity and area with ambient as the radiative-surroundings temperature. Fluid dynamics, coolant thermal mass, view factors, reflections, actuator dynamics, and feedback control are not represented.
  • Electrical SOC and voltage dynamics are outside this reference model.
  • Parameters are educational placeholders and require sourced replacement for engineering decisions.
  • Current-profile timestamps are treated as interval starts with piecewise constant current, ambient temperature, coefficients, and heat transfer over each interval. Explicit durations may vary, but the model does not interpolate within an interval.
  • Temperature-limit exposure is linearly interpolated between reported states; an unreported within-step excursion can be missed.
  • Exact integration applies only to the model's linear within-interval equation. Surface radiation uses bounded-step RK4; nonlinear resistance maps would require a separately validated extension.

Canonical file: models/README.md · Back to guide navigation

Source evidence and coverage boundaries

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The immutable input is source 37cb3c16069b21c373efc17ed202352ab69224dd, Git tree 127037ea757181c6baa8db8290d2f978838dd636. The complete recursive tree contains 751 entries: 718 blobs and 33 directories. All 718 payloads are available, UTF-8 text and verified against their pinned Git blob identities. Full accounting is not full semantic or visual certification.

Review dispositions are 69 analyzed and 682 indexed only. The complete native engine, native tests, substantive model guide/notes/templates/references, workflow contracts, relevant browser logic and primary configuration were inspected. The 598 historical badge/workflow markers (573 TXT and 25 Markdown) were payload-read and classified through six normalized forms, but remain indexed historical evidence rather than engineering content or a current-achievement claim. SVG/CSS presentation assets and generated catalogues retain bounded structural/provenance inspection.

There are four Python files, 121 AST definitions across native code/tests, 30 public native declarations, 70 dataclass fields, two constants, 23 explicitly registered CLI options, seven illustrative CSVs, 43 SVGs, eight JSON files and five HTML pages. No notebooks, binary payloads, symlinks, submodules or LFS pointers were found in this canonical tree. Public API coverage is separately recorded from file coverage.

Claim-to-source map

Claim / object Immutable source locator
Parameter defaults/validation models/lumped_cell_thermal.py:17–119
Heat signs and radiation models/lumped_cell_thermal.py:130–185
State-derived energy models/lumped_cell_thermal.py:247–277
Upper/lower assessments models/lumped_cell_thermal.py:283–394
RK4 integration models/lumped_cell_thermal.py:507–547
Strict profile contract models/lumped_cell_thermal.py:550–747
Scheduled inputs / integrators models/lumped_cell_thermal.py:750–993
CSV exports models/lumped_cell_thermal.py:996–1117
CLI registration / dispatch models/lumped_cell_thermal.py:1120–1437
Native tests tests/test_lumped_cell_thermal.py:1–1768
Preserved model narrative models/README.md:1–403
Active thermal browser model docs/index.html:167–172
Pure browser API implementation docs/index.html:231–335
Native catalogue provenance docs/native-lessons.json:8–19
Model and Markdown CI .github/workflows/markdown-maintenance.yml:1–89
Existing Pages route .github/workflows/deploy-dashboard.yml:1–82
Template applicability templates/thermal-parameter-traceability-matrix.md:1–18

Input fixtures

File Rows / elapsed seconds Source
ambient_step_current_profile.csv 6 / 360 models/data/ambient_step_current_profile.csv:1–7
external_heat_profile.csv 3 / 300 models/data/external_heat_profile.csv:1–4
irregular_current_profile.csv 4 / 180 models/data/irregular_current_profile.csv:1–5
pulse_current_profile.csv 10 / 600 models/data/pulse_current_profile.csv:1–11
radiative_cooling_profile.csv 4 / 1800 models/data/radiative_cooling_profile.csv:1–5
reversible_heat_current_profile.csv 4 / 360 models/data/reversible_heat_current_profile.csv:1–5
variable_cooling_profile.csv 5 / 1800 models/data/variable_cooling_profile.csv:1–6

All 36 fixture data rows were read and run using the documented methods. They prescribe currents and boundaries; no measured provenance is inferred. No simulation result bundle is committed at this source; local run outputs and hashes remain in the external review record.

Metadata and evidence limits

On 2026-11-19, read-only GitHub observations found main at the reviewed source, three completed successful source-head check runs, and empty release, tag-ref, open-PR, open-issue and legacy-status lists. Paginated list requests used 100 entries per page and returned short/empty complete first pages; the checks total was three and all three were returned. The rulesets list contained one active ruleset, whose detail required signatures on all branches without bypass actors. Classic branch-protection read access returned an integration permission error; current delivery must resolve that gate through an authorized supported route.

The public repository metadata declares GitHub Pages and its homepage, and the tracked workflow supplies a publication route. Neither observation proves delivery of this new documentation. The author performed no remote mutation and does not claim live publication, full GUI verification, measurement validation or present-day badge status.

Canonical file: docs/SOURCE_EVIDENCE.md · Back to guide navigation

Architecture and execution boundaries

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The repository combines a dependency-free Python one-node cell model, seven illustrative input profiles, source-backed teaching notes/templates, and three static learning surfaces. The existing model guide is the canonical feature narrative; this page maps execution and ownership. models/lumped_cell_thermal.py:1–42; README.md:175–240.

Component Data flow and responsibility Boundary
LumpedThermalSpec Immutable parameters; validation, resistance, reversible heat and radiation methods One temperature state; no electrical SOC/voltage model
CSV loader Strict ordered headers → finite, contiguous piecewise-constant schedules No interpolation or measured-data provenance inference
simulate_lumped_temperature Parameters/schedules → start rates → Euler, exact-linear or internally subdivided RK4 → interval/state arrays No adaptive error tolerance or controller
ThermalSimulation N+1 times/temperatures, N interval quantities; derived energy and limit metrics Stored interval rates are sampled at interval starts
CLI and CSV writers Resolve input conflicts, run model, write selected outputs, print summaries Runs locally; a printed exceeded limit still returns 0
Browser lab Embedded JSON → pure JavaScript thermal response → chart/checkpoints/CSV download Does not call Python or consume the native CSV fixtures
Native catalogue and portfolio guide Source links, search, copied commands; portfolio personal notes/study-plan export Learning progress does not certify command execution

Implementation: models/lumped_cell_thermal.py:23–185; models/lumped_cell_thermal.py:215–457; models/lumped_cell_thermal.py:550–993; models/lumped_cell_thermal.py:1172–1437; docs/index.html:147–154; docs/portfolio/index.html:265–294.

Native sequence

main resolves profile-versus-constant inputs before constructing a specification. The simulator validates the specification and the length, finiteness and relevant positivity of every schedule, evaluates start-of-interval rates, advances temperature, validates the endpoint, and appends state-derived interval heat. The limit assessors run afterward and do not alter integration. Output files are written only when requested. models/lumped_cell_thermal.py:750–861; models/lumped_cell_thermal.py:874–993; models/lumped_cell_thermal.py:1172–1327.

There is no server, database, package installer, native plugin system, MATLAB/Simulink implementation or notebook in the reviewed tree. results/ is ignored; the committed CSVs are inputs. Browser bundles include nine inactive teaching model kinds as well as thermal; their presence does not establish implemented native capabilities or cross-repository integration. See browser inventory and source accounting. .gitignore:1–15; docs/index.html:159–230.

Publication and provenance

The existing Pages workflow publishes the entire docs directory from main after its static validation. The handbook adds navigation and a derived static reading view to that route. The current native catalogue and lesson configurations retain older provenance identities; the new handbook's source review is the SHA in this page's banner. A passed historical deployment does not establish publication of this package. .github/workflows/deploy-dashboard.yml:6–82; docs/portfolio/README.md:19–24.

Canonical file: docs/developer/ARCHITECTURE.md · Back to guide navigation

Setup and reproducibility

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The native guide declares Python 3.12 or later and no third-party runtime packages. The review executed Python 3.12.14 on Linux. That observed run is not a compatibility matrix for every later Python or other OS. CI selects Python 3.12. models/README.md:32–53; models/lumped_cell_thermal.py:1–10; .github/workflows/markdown-maintenance.yml:37–43.

Obtain the reviewed source

git clone https://github.com/mohammadrezwankhan/battery-thermal-modeling-notes.git
cd battery-thermal-modeling-notes
git checkout --detach 37cb3c16069b21c373efc17ed202352ab69224dd
python --version
python -m unittest discover -s tests -v
python models/lumped_cell_thermal.py --help
python models/lumped_cell_thermal.py --current-a 75 --duration-s 600 --time-step-s 600 --integration-method exact-linear

Use that checkout for the reviewed native behavior. The new handbook files are introduced by a later documentation commit; obtain that commit separately when checking the renderer. No dependency installation is needed for native execution. Commands run from the repository root so models imports and relative fixture paths resolve. The worked examples record actual outputs and solver settings.

Keep a reproducible result record

Record the source commit, Python version, operating system, exact argument vector, solver, profile SHA-256, all overridden parameters and output hashes. For a profile, retain its column order, units, sign convention, interval durations and whether each input is illustrative, measured or fitted. Use the existing traceability matrix and experimental-condition comparison. The source CLI does not itself write a full software/environment manifest. models/lumped_cell_thermal.py:996–1117; templates/thermal-parameter-traceability-matrix.md:1–18.

python models/lumped_cell_thermal.py --profile-csv models/data/irregular_current_profile.csv --integration-method exact-linear --output-csv results/irregular_thermal_intervals.csv
python models/lumped_cell_thermal.py --profile-csv models/data/radiative_cooling_profile.csv --emissivity 0.85 --radiating-area-m2 0.03 --integration-method rk4 --rk4-max-step-s 0.5 --output-csv results/radiative_thermal_intervals.csv
python scripts/portfolio/validate_guide.py

Writers create parent directories and overwrite the chosen output file. Give distinct filenames to distinct runs. results/ is ignored by Git; preserve useful experiment evidence deliberately outside a disposable checkout. models/lumped_cell_thermal.py:996–1025; models/lumped_cell_thermal.py:1065–1086; .gitignore:1–3.

Documentation and offline browser use

Open docs/index.html, docs/native-lessons.html, or docs/portfolio/index.html locally. The active browser model is self-contained; following external source links requires network access. Portfolio notes are stored in the browser's local storage when available and can be exported as a study-plan JSON. Storage is not a repository backup. docs/index.html:147–154; docs/portfolio/index.html:269–291.

The new static handbook requires Pandoc 3.1.11.1 for the byte-identical reviewed rendering and Python's standard library for its renderer. This is a documentation authoring tool, not a native-model dependency. With the documentation commit checked out:

pandoc --version
python docs/reference/build_reference.py
python docs/reference/build_reference.py --check
git diff --check

No authentication, external service, hardware connection or credential is required by these examples. Model and browser runs use synthetic/illustrative inputs; no measured-cell validation was performed in this review.

Canonical file: docs/developer/SETUP_AND_REPRODUCIBILITY.md · Back to guide navigation

APIs, CLI and data interfaces

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Import from models.lumped_cell_thermal. API_REFERENCE.md enumerates all 30 public class/function/property declarations, 70 annotated dataclass fields, three integration enum values and two constants. Ordinary function and dataclass constructor parameters are positional-or-keyword; defaults make values optional without changing that calling convention. Properties are attributes, not methods to call. Frozen dataclasses prevent normal attribute reassignment but direct construction of result records does not validate array consistency. Prefer records returned by the simulator/loader. models/lumped_cell_thermal.py:17–457; models/lumped_cell_thermal.py:750–759.

Main native flow

load_current_profile(Path(...)) returns a CurrentProfile. Pass its current tuple and optional boundary/parameter schedules to simulate_lumped_temperature, which returns a ThermalSimulation. Explicit Python schedules override the corresponding specification value; unlike CLI conflicts, that override is intentional. Input arrays need one value per current interval. time_s and temperature_c contain N+1 states; current, heat, resistance, coefficients and durations contain N interval values. time_step_s returns the common duration under rel_tol=abs_tol=1e-12, or None. models/lumped_cell_thermal.py:396–442; models/lumped_cell_thermal.py:750–861; models/lumped_cell_thermal.py:953–993.

CLI options and resolved defaults

The parser registers 23 explicit long options plus automatic -h/--help. Source registration and resolution: models/lumped_cell_thermal.py:1120–1302.

Options Effective default / rule
--profile-csv PATH, --output-csv PATH No profile/output file unless supplied
--current-a, --duration-s, --time-step-s Constant mode: 75 A, 600 s, 1 s; duration must be an integer multiple of the step within 1e-9 s absolute tolerance
--mass-kg, --specific-heat-j-per-kg-k 1.05 kg; 1000 J/(kg·K)
--resistance-ohm 0.004 Ω
--resistance-temperature-coefficient-per-k, --resistance-reference-temperature-c 0 K⁻¹; 25 °C
--entropic-coefficient-v-per-k, --external-heat-w 0 V/K; 0 W
--heat-transfer-w-per-k 1.2 W/K effective conductance
--emissivity, --radiating-area-m2 Both 0; otherwise both positive, emissivity ≤1, and RK4 required
--ambient-temperature-c, --initial-temperature-c Both 25 °C
--radiative-surroundings-temperature-c Unset means follow the applied interval ambient
--integration-method explicit-euler; alternatives exact-linear, rk4
--rk4-max-step-s 1 s; internal RK4 cap independent of output interval width
--temperature-limit-c Repeatable unique upper limits; equality passes
--minimum-temperature-c Repeatable unique lower limits; equality passes
--limit-report-csv PATH Upper-limit CSV only; requires at least one --temperature-limit-c

Profile mode rejects explicit current, duration or time-step options. A CSV column for ambient, surroundings, entropic coefficient, external heat or conductance conflicts with the corresponding constant CLI option; omitting the column enables its constant/default value. main returns 0 after a valid run even when a limit is reported EXCEEDED or VIOLATED. Runtime validation raises ValueError; argparse handles malformed options. Do not interpret exit 0 as a safe-temperature decision. models/lumped_cell_thermal.py:1172–1252; models/lumped_cell_thermal.py:1388–1437.

Strict input CSV

The first two headers must be time_s,current_a. Select any subset of the following optional headers in this order: duration_s, ambient_temperature_c, radiative_surroundings_temperature_c, entropic_coefficient_v_per_k, external_heat_w, heat_transfer_w_per_k. Header whitespace/BOM is normalized; blank lines and lines whose first nonspace character is # are skipped. All data must be numeric and finite; no unknown/duplicate/reordered columns are accepted. models/lumped_cell_thermal.py:550–666.

Time starts at zero within 1e-12 s. With duration_s, at least one row is allowed, durations are positive, and each next start equals the previous end within relative 1e-9 / absolute 1e-12 tolerance. Without it, at least two rows establish a strictly positive uniform step, which is also assigned to the final row. Thus 0,60,120 represents three intervals and 180 s total. Optional temperature values must exceed −273.15 °C and conductance must be nonnegative. models/lumped_cell_thermal.py:603–747.

Exports and browser interfaces

The interval CSV has 21 columns: interval start/end/duration; current; ambient/surroundings; conductance; emissivity/area; resistance/entropic coefficient/external heat; start/end temperature; irreversible/reversible/total generation; convection/radiation/total rejection; and net_heat_j. All numeric values use .12g. Heat rates and resistance are sampled at the interval start, while net heat is the state-derived interval energy change. The eight-column upper-limit CSV uses lowercase booleans and empty fields for absent crossing/recovery times. There is no lower-limit CSV writer. models/lumped_cell_thermal.py:996–1117.

The browser's five-member LabSimulation export, read-only dashboard hook, bounded controls, eight checkpoint definitions and catalogue/storage/export behavior are inventoried in BROWSER_MODEL_CATALOG.md. These JavaScript interfaces do not invoke the Python model.

Canonical file: docs/developer/API_CLI_AND_INTERFACES.md · Back to guide navigation

Worked examples and laboratories

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

These are local executions observed on 2026-11-19 with Python 3.12.14 against the reviewed source. They verify reproducible illustrative calculations. Use models/README.md for the preserved feature walkthrough and setup for the checkout. All CSV inputs are committed educational profiles; no measurement record, cell identifier or calibration accompanies them. models/README.md:32–53; models/README.md:378–403.

1. Separate solver error from bookkeeping

python models/lumped_cell_thermal.py --current-a 75 --duration-s 600
python models/lumped_cell_thermal.py --current-a 75 --duration-s 600 --time-step-s 600 --integration-method exact-linear

Defaults give thermal capacity 1050 J/K, Joule heat 22.5 W, steady temperature 43.75 °C and time constant 875 s. The 600-step Euler run reports 34.309 °C; one exact-linear interval reports 34.305 °C. These rounded values come from execution, with exact-linear behavior independently covered by the source analytic test. models/lumped_cell_thermal.py:27–46; tests/test_lumped_cell_thermal.py:295–340.

For a clearer numerical lesson, use the existing test's C=10 J/K, external heat=10 W, conductance=1 W/K, T₀=Tₐ=20 °C case. Its analytic value at 10 s is 26.3212056 °C. One 10 s Euler step gives 30 °C; two 5 s steps give 27.5 °C. Both have zero state-derived bookkeeping residual. The residual therefore cannot rank solver accuracy. This is an explanatory reproduction of the existing test, not a new physical benchmark. tests/test_lumped_cell_thermal.py:406–441.

from models.lumped_cell_thermal import LumpedThermalSpec, simulate_lumped_temperature
for step, count in [(10.0, 1), (5.0, 2)]:
    result = simulate_lumped_temperature(
        [0.0] * count,
        LumpedThermalSpec(mass_kg=1.0, specific_heat_j_per_kg_k=10.0,
            resistance_ohm=0.0, external_heat_w=10.0,
            heat_transfer_w_per_k=1.0, ambient_temperature_c=20.0,
            initial_temperature_c=20.0, time_step_s=step),
    )
    print(result.temperature_c[-1], result.energy_bookkeeping_residual_j)

2. Reproduce the seven input profiles

For a row below, substitute its filename and method:

python models/lumped_cell_thermal.py --profile-csv models/data/irregular_current_profile.csv --integration-method exact-linear --output-csv results/irregular_thermal_intervals.csv
Input filename Method and additional settings Intervals / elapsed seconds Observed final / reported peak °C
pulse_current_profile.csv explicit-euler 10 / 600 30.563 / 31.569
ambient_step_current_profile.csv explicit-euler 6 / 360 29.964 / 29.964
irregular_current_profile.csv exact-linear 4 / 180 27.714 / 27.714
reversible_heat_current_profile.csv exact-linear 4 / 360 29.811 / 30.153
variable_cooling_profile.csv exact-linear 5 / 1800 25.296 / 46.150
external_heat_profile.csv exact-linear 3 / 300 26.919 / 26.919
radiative_cooling_profile.csv rk4; emissivity 0.85, area 0.03 m², maximum internal step 0.5 s 4 / 1800 33.323 / 55.433

The complete input rows are linked in source evidence; prescribed schedules are not actuator or coolant-loop dynamics. Reported peaks use stored boundary states. Radiation command:

python models/lumped_cell_thermal.py --profile-csv models/data/radiative_cooling_profile.csv --emissivity 0.85 --radiating-area-m2 0.03 --integration-method rk4 --rk4-max-step-s 0.5 --output-csv results/radiative_thermal_intervals.csv

3. Inspect upper and lower limits

python models/lumped_cell_thermal.py --current-a 75 --duration-s 600 --temperature-limit-c 30 --temperature-limit-c 35 --minimum-temperature-c 20 --limit-report-csv results/temperature-limits.csv

The observed default run exceeds 30 °C, passes 35 °C and stays above the 20 °C minimum; the process returns 0. Inspect the report instead of using that exit code as a threshold gate. For a transparent hand calculation, the source test warms linearly from 20 to 40 °C over 20 s: a 25 °C limit first crosses at 5 s, has 15 s exposure, fraction 0.75 and margin −15 °C. Limits here are teaching inputs, not recommended operating values. tests/test_lumped_cell_thermal.py:27–56; models/lumped_cell_thermal.py:1388–1437.

4. Browser-to-native comparison

The first browser module uses Q=1200 W, G=40 W/K, C=18000 J/K and ambient 25 °C. At 10 min the actual embedded model gives 47.0920858565 °C and 397.657545418 kJ above ambient; all eight declared checkpoints passed in a pure JavaScript evaluation. This evaluates the model and checkpoint functions, not DOM interactions. Reproduce the same physical equation natively with I=0, R=0, external heat=1200 W, mass=1 kg, specific heat=18000 J/(kg·K), G=40 W/K and one 600 s exact-linear interval. Keep the browser's minutes versus native seconds explicit. docs/index.html:167–172; docs/index.html:257–259; models/lumped_cell_thermal.py:903–929.

5. Verify the source suite

python -m unittest discover -s tests -v
python scripts/portfolio/validate_guide.py

Observed: 85 tests passed and four source-linked learning paths validated. The verification ledger explains each criterion and its limits. Neither command establishes measured-cell accuracy, browser visual quality or current publication.

Canonical file: docs/developer/WORKED_EXAMPLES_AND_LABS.md · Back to guide navigation

Troubleshooting

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Start with the exact command, source SHA, input file and method. The native CLI prints validation exceptions rather than a structured error record. Keep the failing input and traceback with a reproducible report; do not silently drop a term to get a run to pass. Source: models/lumped_cell_thermal.py:54–119; models/lumped_cell_thermal.py:550–747; models/lumped_cell_thermal.py:1172–1302.

Symptom Source-based explanation Action
header must be exactly... Required first two columns and optional order are strict Use the CSV contract; omit unknown columns before importing, retaining original evidence separately
time_s must equal the previous interval end Explicit-duration rows have a gap/overlap Reconcile units and starts/durations; do not invent a final interval
Last interval extends beyond the last timestamp Uniform CSV timestamps denote starts Add duration_s when the final interval differs
cannot be combined CLI supplies a constant for a quantity already scheduled by CSV Choose one authoritative source; Python API schedule overrides differ from CLI behavior
Radiation rejected Both emissivity and area must be enabled together; only RK4 supports radiation Supply paired positive values and --integration-method rk4
Negative resistance or nonphysical temperature The linear resistance relation or numerical trajectory left its admitted domain Check parameter validity and a step/refinement study; exact integration does not fix invalid physics
Euler oscillates or overshoots No stability controller is implemented Compare with exact-linear when applicable and consult the derived timestep condition
Energy residual tiny but temperature inaccurate Net interval heat is derived from computed temperature change Compare an independent analytic case or reviewed refinement study
Limit EXCEEDED but exit code 0 Limits are postprocessing summaries Read assessment fields; CLI success means the computation completed
--limit-report-csv rejects a cold-only request CSV writer covers upper limits only Read lower assessments through the API or CLI; do not relabel an upper-limit file
final_recovery_time_s is empty No exceedance occurred, or the trace ends above the upper limit Interpret it together with exceeded and the terminal temperature
Portfolio notes disappear Local storage depends on browser/profile/site context Export the study plan before moving context; it is not stored in Git
New handbook differs from Markdown Generated view is stale or Pandoc version changed Run the renderer and --check, then review the derived diff

Evidence: models/lumped_cell_thermal.py:283–394; models/lumped_cell_thermal.py:907–963; models/lumped_cell_thermal.py:1174–1187; models/lumped_cell_thermal.py:1388–1437; docs/portfolio/index.html:269–291.

CSV numeric conversion errors retain physical source line numbers, but time-grid validation uses row-based enumeration after blank/comment filtering. A reported time-grid line can therefore differ from the original file's physical line. Preserve the file and inspect neighboring retained rows; this diagnostic discrepancy is documented debt, not repaired here. models/lumped_cell_thermal.py:553–560; models/lumped_cell_thermal.py:600–642; models/lumped_cell_thermal.py:694–729.

For Actions, distinguish workflow/run/job identity because multiple workflows use a validate job. The metadata policy logs offending commit/metadata and a checked-commit total; it does not print the selected range. Reconstruct that range from the event inputs and source case statement. See CI and release playbook. .github/workflows/no-codex-attribution.yml:31–99.

Canonical file: docs/developer/TROUBLESHOOTING.md · Back to guide navigation

Native API reference

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Import these names from models.lumped_cell_thermal. This catalogue is generated from the reviewed Python AST and checked against the source; it accounts for all 30 public class/function/property declarations and 70 annotated dataclass fields. Arguments are positional-or-keyword; listed defaults make them optional. Read-only @property entries are accessed as attributes. Six dataclasses are frozen. Direct construction of result records is possible but does not validate array lengths; use the loader/simulator for consistent records. See API/CLI contracts for units, shapes, exceptions and file semantics.

Constants

IntegrationMethod

Three supported method values: explicit Euler, affine exact-linear and bounded-step RK4.

models/lumped_cell_thermal.py:17–20.

Declaration / dataclass field signature:

IntegrationMethod
Member Value
EXPLICIT_EULER 'explicit-euler'
EXACT_LINEAR 'exact-linear'
RK4 'rk4'

LumpedThermalSpec

Frozen parameter record. Construction stores values; call validate or run the simulator to enforce parameter constraints.

models/lumped_cell_thermal.py:23–185.

Declaration / dataclass field signature:

LumpedThermalSpec(mass_kg: float = 1.05, specific_heat_j_per_kg_k: float = 1000.0, resistance_ohm: float = 0.004, resistance_temperature_coefficient_per_k: float = 0.0, resistance_reference_temperature_c: float = 25.0, entropic_coefficient_v_per_k: float = 0.0, external_heat_w: float = 0.0, heat_transfer_w_per_k: float = 1.2, emissivity: float = 0.0, radiating_area_m2: float = 0.0, ambient_temperature_c: float = 25.0, radiative_surroundings_temperature_c: float | None = None, initial_temperature_c: float = 25.0, time_step_s: float = 1.0, rk4_max_step_s: float = 1.0, integration_method: IntegrationMethod | str = IntegrationMethod.EXPLICIT_EULER)
Field Annotation Default
mass_kg float 1.05
specific_heat_j_per_kg_k float 1000.0
resistance_ohm float 0.004
resistance_temperature_coefficient_per_k float 0.0
resistance_reference_temperature_c float 25.0
entropic_coefficient_v_per_k float 0.0
external_heat_w float 0.0
heat_transfer_w_per_k float 1.2
emissivity float 0.0
radiating_area_m2 float 0.0
ambient_temperature_c float 25.0
radiative_surroundings_temperature_c float | None None
initial_temperature_c float 25.0
time_step_s float 1.0
rk4_max_step_s float 1.0
integration_method IntegrationMethod | str IntegrationMethod.EXPLICIT_EULER

LumpedThermalSpec.thermal_capacity_j_per_k

Read-only product of mass and specific heat.

models/lumped_cell_thermal.py:44–46.

Property declaration:

thermal_capacity_j_per_k(self) -> float

LumpedThermalSpec.radiation_coefficient_w_per_k4

Read-only product of emissivity, the implemented Stefan–Boltzmann constant and radiating area.

models/lumped_cell_thermal.py:48–52.

Property declaration:

radiation_coefficient_w_per_k4(self) -> float

LumpedThermalSpec.validate

Validate finite parameters, positive capacities/timesteps, nonnegative resistance/conductance, temperature domain, paired radiation values and solver compatibility. Raises ValueError.

models/lumped_cell_thermal.py:54–119.

Declaration / dataclass field signature:

validate(self) -> None

LumpedThermalSpec.resolved_integration_method

Resolve a string/enum to IntegrationMethod; invalid values raise ValueError.

models/lumped_cell_thermal.py:121–128.

Declaration / dataclass field signature:

resolved_integration_method(self) -> IntegrationMethod

LumpedThermalSpec.resistance_at_temperature

Evaluate the linear resistance relation; rejects temperatures outside the admitted domain and negative evaluated resistance.

models/lumped_cell_thermal.py:130–141.

Declaration / dataclass field signature:

resistance_at_temperature(self, temperature_c: float) -> float

LumpedThermalSpec.reversible_heat_w

Return signed −I·T_K·β in W for positive-discharge current; an explicit coefficient overrides the stored default.

models/lumped_cell_thermal.py:143–161.

Declaration / dataclass field signature:

reversible_heat_w(self, current_a: float, temperature_c: float, entropic_coefficient_v_per_k: float | None=None) -> float

LumpedThermalSpec.radiative_heat_rejection_w

Return signed diffuse-gray rejection to the supplied surroundings in W; negative means heat into the node.

models/lumped_cell_thermal.py:163–185.

Declaration / dataclass field signature:

radiative_heat_rejection_w(self, temperature_c: float, surroundings_temperature_c: float) -> float

TemperatureLimitAssessment

Frozen upper-limit postprocessing record. Crossing/recovery can be absent; margin is limit minus reported peak.

models/lumped_cell_thermal.py:188–199.

Declaration / dataclass field signature:

TemperatureLimitAssessment(limit_temperature_c: float, exceeded: bool, first_exceedance_time_s: float | None, final_recovery_time_s: float | None, time_above_limit_s: float, exposure_fraction: float, peak_temperature_c: float, margin_to_limit_c: float)
Field Annotation Default
limit_temperature_c float Required
exceeded bool Required
first_exceedance_time_s float | None Required
final_recovery_time_s float | None Required
time_above_limit_s float Required
exposure_fraction float Required
peak_temperature_c float Required
margin_to_limit_c float Required

MinimumTemperatureAssessment

Frozen lower-limit postprocessing record. Margin is reported minimum minus the requested minimum.

models/lumped_cell_thermal.py:202–212.

Declaration / dataclass field signature:

MinimumTemperatureAssessment(minimum_temperature_c: float, violated: bool, first_violation_time_s: float | None, time_below_minimum_s: float, exposure_fraction: float, lowest_temperature_c: float, margin_to_minimum_c: float)
Field Annotation Default
minimum_temperature_c float Required
violated bool Required
first_violation_time_s float | None Required
time_below_minimum_s float Required
exposure_fraction float Required
lowest_temperature_c float Required
margin_to_minimum_c float Required

ThermalSimulation

Frozen result record. N+1 state/time values and N interval entries; obtain it from the simulator to preserve invariants.

models/lumped_cell_thermal.py:215–411.

Declaration / dataclass field signature:

ThermalSimulation(time_s: tuple[float, ...], temperature_c: tuple[float, ...], current_a: tuple[float, ...], ambient_temperature_c: tuple[float, ...], radiative_surroundings_temperature_c: tuple[float, ...], heat_transfer_w_per_k: tuple[float, ...], resistance_ohm: tuple[float, ...], entropic_coefficient_v_per_k: tuple[float, ...], external_heat_w: tuple[float, ...], irreversible_heat_w: tuple[float, ...], reversible_heat_w: tuple[float, ...], heat_generation_w: tuple[float, ...], convective_heat_rejection_w: tuple[float, ...], radiative_heat_rejection_w: tuple[float, ...], heat_rejection_w: tuple[float, ...], interval_net_heat_j: tuple[float, ...], interval_duration_s: tuple[float, ...], thermal_capacity_j_per_k: float, emissivity: float, radiating_area_m2: float, rk4_max_step_s: float, integration_method: IntegrationMethod)
Field Annotation Default
time_s tuple[float, ...] Required
temperature_c tuple[float, ...] Required
current_a tuple[float, ...] Required
ambient_temperature_c tuple[float, ...] Required
radiative_surroundings_temperature_c tuple[float, ...] Required
heat_transfer_w_per_k tuple[float, ...] Required
resistance_ohm tuple[float, ...] Required
entropic_coefficient_v_per_k tuple[float, ...] Required
external_heat_w tuple[float, ...] Required
irreversible_heat_w tuple[float, ...] Required
reversible_heat_w tuple[float, ...] Required
heat_generation_w tuple[float, ...] Required
convective_heat_rejection_w tuple[float, ...] Required
radiative_heat_rejection_w tuple[float, ...] Required
heat_rejection_w tuple[float, ...] Required
interval_net_heat_j tuple[float, ...] Required
interval_duration_s tuple[float, ...] Required
thermal_capacity_j_per_k float Required
emissivity float Required
radiating_area_m2 float Required
rk4_max_step_s float Required
integration_method IntegrationMethod Required

ThermalSimulation.peak_temperature_c

Maximum of returned boundary temperatures, including the initial state.

models/lumped_cell_thermal.py:242–244.

Property declaration:

peak_temperature_c(self) -> float

ThermalSimulation.stored_energy_change_j

C times final-minus-initial temperature.

models/lumped_cell_thermal.py:246–250.

Property declaration:

stored_energy_change_j(self) -> float

ThermalSimulation.integrated_net_heat_j

Sum of state-derived interval energy changes; not independent heat-rate quadrature.

models/lumped_cell_thermal.py:252–256.

Property declaration:

integrated_net_heat_j(self) -> float

ThermalSimulation.energy_bookkeeping_residual_j

Absolute discrepancy between total state-derived energy and summed interval changes; not a temperature error estimate.

models/lumped_cell_thermal.py:258–268.

Property declaration:

energy_bookkeeping_residual_j(self) -> float

ThermalSimulation.energy_balance_error_j

Compatibility alias for energy_bookkeeping_residual_j with identical semantics.

models/lumped_cell_thermal.py:270–277.

Property declaration:

energy_balance_error_j(self) -> float

ThermalSimulation.duration_s

Sum of interval durations.

models/lumped_cell_thermal.py:279–281.

Property declaration:

duration_s(self) -> float

ThermalSimulation.assess_temperature_limit

Return strict above-limit exposure from piecewise-linear interpolation. Equality passes; final recovery is absent if never exceeded or if still above at the end.

models/lumped_cell_thermal.py:283–342.

Declaration / dataclass field signature:

assess_temperature_limit(self, limit_temperature_c: float) -> TemperatureLimitAssessment

ThermalSimulation.assess_minimum_temperature

Return strict below-minimum exposure using reported-state interpolation. Equality passes.

models/lumped_cell_thermal.py:344–394.

Declaration / dataclass field signature:

assess_minimum_temperature(self, minimum_temperature_c: float) -> MinimumTemperatureAssessment

ThermalSimulation.time_step_s

Return the common duration within relative and absolute 1e-12 tolerance, or None for a variable grid.

models/lumped_cell_thermal.py:396–411.

Property declaration:

time_step_s(self) -> float | None

CurrentProfile

Frozen loader record with interval starts, current and optional schedules; final duration is explicit or inferred from a uniform time grid.

models/lumped_cell_thermal.py:414–442.

Declaration / dataclass field signature:

CurrentProfile(time_s: tuple[float, ...], current_a: tuple[float, ...], ambient_temperature_c: tuple[float, ...] | None, radiative_surroundings_temperature_c: tuple[float, ...] | None, entropic_coefficient_v_per_k: tuple[float, ...] | None, external_heat_w: tuple[float, ...] | None, heat_transfer_w_per_k: tuple[float, ...] | None, interval_duration_s: tuple[float, ...])
Field Annotation Default
time_s tuple[float, ...] Required
current_a tuple[float, ...] Required
ambient_temperature_c tuple[float, ...] | None Required
radiative_surroundings_temperature_c tuple[float, ...] | None Required
entropic_coefficient_v_per_k tuple[float, ...] | None Required
external_heat_w tuple[float, ...] | None Required
heat_transfer_w_per_k tuple[float, ...] | None Required
interval_duration_s tuple[float, ...] Required

CurrentProfile.time_step_s

Return the common duration within relative and absolute 1e-12 tolerance, or None.

models/lumped_cell_thermal.py:427–442.

Property declaration:

time_step_s(self) -> float | None

HeatRates

Frozen start-state heat-rate record used internally by the integrators; fields remain publicly accessible though the rate-evaluation helper is private.

models/lumped_cell_thermal.py:445–457.

Declaration / dataclass field signature:

HeatRates(resistance_ohm: float, irreversible_w: float, reversible_w: float, external_w: float, generation_w: float, convective_rejection_w: float, radiative_rejection_w: float, total_rejection_w: float, net_w: float)
Field Annotation Default
resistance_ohm float Required
irreversible_w float Required
reversible_w float Required
external_w float Required
generation_w float Required
convective_rejection_w float Required
radiative_rejection_w float Required
total_rejection_w float Required
net_w float Required

load_current_profile

Read a strict UTF-8 CSV Path into CurrentProfile; no interpolation. File errors propagate; invalid profile structure/data raise ValueError.

models/lumped_cell_thermal.py:550–747.

Declaration / dataclass field signature:

load_current_profile(path: Path) -> CurrentProfile

simulate_lumped_temperature

Validate the specification and schedules, advance the one-node model and return ThermalSimulation. Optional Python schedules override specification constants.

models/lumped_cell_thermal.py:750–993.

Declaration / dataclass field signature:

simulate_lumped_temperature(currents_a: Sequence[float], spec: LumpedThermalSpec=LumpedThermalSpec(), ambient_temperatures_c: Sequence[float] | None=None, radiative_surroundings_temperatures_c: Sequence[float] | None=None, interval_durations_s: Sequence[float] | None=None, entropic_coefficients_v_per_k: Sequence[float] | None=None, external_heats_w: Sequence[float] | None=None, heat_transfers_w_per_k: Sequence[float] | None=None) -> ThermalSimulation

write_simulation_csv

Create output parents and overwrite the chosen CSV with one .12g-formatted numeric row per interval; returns None.

models/lumped_cell_thermal.py:996–1062.

Declaration / dataclass field signature:

write_simulation_csv(path: Path, result: ThermalSimulation) -> None

write_temperature_limit_csv

Require at least one upper-limit assessment; create parents and overwrite an eight-column summary CSV. No corresponding lower-limit writer exists.

models/lumped_cell_thermal.py:1065–1117.

Declaration / dataclass field signature:

write_temperature_limit_csv(path: Path, assessments: Sequence[TemperatureLimitAssessment]) -> None

parse_args

Parse the 23 explicit long options plus automatic help; returns argparse.Namespace. CLI resolved defaults and mutual exclusions are completed in main.

models/lumped_cell_thermal.py:1120–1169.

Declaration / dataclass field signature:

parse_args(argv: Sequence[str] | None=None) -> argparse.Namespace

main

Run the CLI, optionally write files and print summaries. Returns 0 for a valid calculation even when a threshold is exceeded; validation exceptions propagate.

models/lumped_cell_thermal.py:1172–1437.

Declaration / dataclass field signature:

main(argv: Sequence[str] | None=None) -> int

Internal implementation and test accounting

The three underscored native helpers and nested RK4 derivative are implementation details, not public API. The complete AST inventory separately accounts for 121 Python definitions across the model and tests, including private/nested/test definitions. The source guide validator is a top-level script. No dynamic native plugin registration was found; dataclass constructors derive from the explicit fields above.

Canonical file: docs/developer/API_REFERENCE.md · Back to guide navigation

Browser model and control inventory

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The active configuration selects thermal. The exact embedded UMD exposes MODEL_SPECS, getModelSpec(kind), resolveParameters(kind, provided), evaluateModel(kind, provided, time) and checkCheckpoint(checkpoint, metrics) as LabSimulation in a browser or module.exports in a CommonJS context. Unknown kinds throw; finite numeric inputs are clamped to per-model bounds, missing/nonfinite inputs fall back to defaults, and time is clamped to the model horizon. No numeric-string coercion is performed for parameter values. docs/index.html:150–159; docs/index.html:231–246; docs/index.html:320–335.

Active thermal surface

Four sliders control heat input, effective conductance, thermal capacity and ambient. Time is 0–60 minutes. The four metrics are temperature °C, heat removed W, stored heat kJ and net heating W. The model starts at ambient and evaluates a closed form; no native input profile, entropic heat, resistance feedback or radiation is active. docs/index.html:167–172; docs/index.html:257–259.

Parameter Default Range Step Unit
heatW 1200 100–3000 100 W
coolingWK 40 10–120 5 W/K
capacityJPerK 18000 3000–60000 1000 J/K
ambientC 25 0–45 1 °C

The UI can override parameter labels/units/defaults and metric labels/units/precision, but model bounds, time unit and horizon come from the bundled spec. It builds 241 samples over the horizon; CSV export includes model time, all metrics and current inputs at 12 significant digits. A preset moves to the first fixed checkpoint time. Strict </> checkpoints ignore tolerance; equality uses absolute tolerance. A previously verified module is labelled as a prior experiment after settings change. docs/index.html:357–398; docs/index.html:448–470.

The read-only LabDashboard hook exposes getState() (kind, copied parameters, time, playing state, active metric/module), evaluateModel and getModelSpec. It does not expose mutation controls. docs/index.html:469–470.

Observed numerical checkpoints

All eight declared thermal checkpoints passed by evaluating the source UMD in Node, without running the DOM layer. This is not browser UI, screen-reader, screenshot or physical validation.

Module Metric / time (min) Declared target Observed
module-1 temperatureC / 10 == 47.092086 ± 0.02 47.0920858565
module-1 storedEnergyKJ / 10 == 397.657545 ± 0.02 397.657545418
module-2 temperatureC / 10 == 39.597486 ± 0.02 39.597486429
module-2 residualW / 10 == 616.100543 ± 0.02 616.100542839
module-3 temperatureC / 10 == 62.092086 ± 0.02 62.0920858565
module-3 storedEnergyKJ / 10 == 397.657545 ± 0.02 397.657545418
module-4 temperatureC / 30 == 39.994968 ± 0.02 39.9949680606
module-4 residualW / 30 < 1 (strict) 0.402555153483

All bundled model kinds

All ten dispatch branches are structurally enumerated below. Only thermal is selected by this repository configuration and numerically checked in this review. The other nine are dormant generic teaching formulas; they do not establish native application features or portfolio integrations. docs/index.html:159–230; docs/index.html:243–318.

Kind Model time / horizon Parameter keys Metric keys
battery 6 h capacityAh, currentA, resistanceOhm, ambientC, initialSoc socPct, voltageV, temperatureC, powerKW
thermal 60 min heatW, coolingWK, capacityJPerK, ambientC temperatureC, heatRemovedW, storedEnergyKJ, residualW
degradation 1000 cycles fadePer1000Pct, temperatureC, cRate, initialCapacityAh retentionPct, capacityAh, resistanceGrowthPct, throughputKWh
grid 24 h demandKW, solarKW, batteryKW, carbonGPerKWh gridImportKW, solarOutputKW, renewablePct, emissionsKgPerH
cooling 60 min serverCount, utilizationPct, ambientC, coolingEfficiency itKW, coolingKW, pue, inletC
agents 30 min arrivalRate, agentCount, serviceRate, coordinationPct backlog, throughput, utilizationPct, waitMinutes
markets 24 h baseSpreadBps, feeBps, slippageBps, notionalUSD spreadBps, netEdgeBps, netPnlUSD, costUSD
control 20 s setpoint, damping, naturalFrequency, gain output, error, velocity, overshootPct
security 60 min alertRate, analystCount, reviewRate, automationPct backlog, coveragePct, reviewedAlerts, workloadPct
charging 120 min capacityKWh, chargerKW, initialSoc, efficiencyPct socPct, chargingKW, energyAddedKWh, lossKW

Catalogue, portfolio and historic animation

The native catalogue supports text/tag filters and copies displayed commands; it does not execute Python. The portfolio guide supports text/topic/level filters, a dialog, personal review state/notes, motion preference and a study-plan JSON export. Storage key is portfolio-learning:<repository>:<source_revision>; unavailable storage is explicitly reported. Exported plans state not_executed_by_this_guide. docs/native-lessons.html:166–216; docs/portfolio/index.html:265–294.

The previous-animation gallery loads media on an explicit click. Its preserved waveform uses decorative sine/cosine curves controlled by rate/temperature/damping sliders; it is not a thermal solver or measured telemetry. No source application or animation behavior is changed by the handbook. docs/animations/gallery.js:1–20; docs/animations/waveform.html:148–209.

Lesson/config snapshots retain 573e04d53ee0cc06f17d9984c432daad2e7bf5e6; native catalogue provenance additionally records b76ca31619dd2b2c8fe2e15b9bb1a53453aa3fa1. Their historical identities are distinct from the new review source. docs/native-lessons.json:8–19; docs/portfolio/README.md:19–24.

Canonical file: docs/developer/BROWSER_MODEL_CATALOG.md · Back to guide navigation

Implemented equations and explanatory derivations

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The preserved lumped model guide is canonical for feature examples. This page traces the implemented balance, then derives its discrete and exact forms. Equations below are a transcription or algebraic consequence of the cited implementation; they are not a new solver or measured-cell model.

One temperature state

Let TT be cell temperature in °C, TK=T+273.15T_K=T+273.15 in K, C=mcpC=m c_p in J/K, GG the effective convection conductance in W/K, and β=dUoc/dT\beta=dU_{oc}/dT in V/K. Current I>0I>0 means discharge. Each input is constant within its supplied interval.

R(T)=R0[1+αR(T−Tref)],Qirr=I2R(T),Qrev=−I(T+273.15)β. R(T)=R_0[1+\alpha_R(T-T_{ref})],\qquad Q_{irr}=I^2R(T),\qquad Q_{rev}=-I(T+273.15)\beta.

Qgen=Qirr+Qrev+Qext,Qconv=G(T−Ta),Qrad=ϵσA[(T+273.15)4−(Ts+273.15)4]. Q_{gen}=Q_{irr}+Q_{rev}+Q_{ext},\quad Q_{conv}=G(T-T_a),\quad Q_{rad}=\epsilon\sigma A[(T+273.15)^4-(T_s+273.15)^4].

CdTdt=Qgen−Qconv−Qrad=Qnet(T). C\frac{dT}{dt}=Q_{gen}-Q_{conv}-Q_{rad}=Q_{net}(T).

Positive external heat enters the node; negative external heat is a prescribed sink. Positive rejection leaves it. Consequently a warmer ambient or radiative enclosure can produce negative rejection. Reversing current reverses reversible heat but leaves I2RI^2R unchanged. The surroundings schedule TsT_s is independent of TaT_a when supplied, otherwise it follows ambient. Source: models/lumped_cell_thermal.py:13–52; models/lumped_cell_thermal.py:130–185; models/lumped_cell_thermal.py:468–504; models/lumped_cell_thermal.py:783–823.

The implemented Stefan–Boltzmann literal is 5.670374419e-8 W/(m²·K⁴). NIST's 2022 CODATA table prints the exact derived constant with trailing digits indicated by an ellipsis. The finite Python literal is its implemented numerical approximation; do not interpret the guide's word “exact” as unlimited floating-point precision. The NREL reading note supplies research context, not fitted parameters for this model.

Euler and the affine exact update

Euler uses the interval-start rate:

Tn+1=Tn+Qnet(Tn)CΔtn.T_{n+1}=T_n+\frac{Q_{net}(T_n)}{C}\Delta t_n.

With radiation disabled, resistance and reversible heat make the within-interval equation affine. Its constant temperature-feedback slope is

b=I2R0αR−Iβ−G[W/K].b=I^2R_0\alpha_R-I\beta-G\quad [\mathrm{W/K}].

Writing qn=Qnet(Tn)q_n=Q_{net}(T_n), integration of Cd(T−Tn)/dt=qn+b(T−Tn)C\,d(T-T_n)/dt=q_n+b(T-T_n) gives

Tn+1−Tn={qnΔtn/C,b=0,(qn/b)expm1(bΔtn/C),b≠0. T_{n+1}-T_n= \begin{cases} q_n\Delta t_n/C,&b=0,\\ (q_n/b)\operatorname{expm1}(b\Delta t_n/C),&b\ne0. \end{cases}

The implementation uses the exact equality b == 0.0 and math.expm1; it rejects enabled radiation for exact-linear and Euler. Exact-linear removes discretization error for this affine equation up to floating-point effects; it does not validate interval averaging, material parameters or the one-node approximation. models/lumped_cell_thermal.py:112–119; models/lumped_cell_thermal.py:903–945.

For a stable linear interval (b<0b<0), the derived equilibrium is T*=Tn−qn/bT_*=T_n-q_n/b and time constant τ=−C/b\tau=-C/b. Euler's perturbation multiplier is 1+bΔt/C1+b\Delta t/C: asymptotic stability requires 0<Δt<2C/|b|0<\Delta t<2C/|b|, with a nonoscillatory approach when 0<Δt≤C/|b|0<\Delta t\le C/|b|. These are explanatory linear conditions, not enforced runtime guards. If b>0b>0, the affine model has positive feedback; this is not a chemical thermal-runaway mechanism. models/lumped_cell_thermal.py:903–933.

Bounded-step RK4

RK4 chooses N=max(1,⌈Δt/Δtmax⌉)N=\max(1,\lceil\Delta t/\Delta t_{max}\rceil) equal internal steps h=Δt/Nh=\Delta t/N, evaluates four classical Runge–Kutta derivative stages, and validates finite/above-absolute-zero temperatures. It supports the nonlinear radiation term. The bound is a maximum step, not an adaptive tolerance or error estimate. Only the outer interval endpoint is returned; internal stage/substep states are not output samples. models/lumped_cell_thermal.py:507–547; models/lumped_cell_thermal.py:947–993.

Energy and limit reporting

For every method, the stored interval energy is En=C(Tn+1−Tn)E_n=C(T_{n+1}-T_n), and the bookkeeping residual is

rE=|C(TN−T0)−∑nEn|.r_E=\left|C(T_N-T_0)-\sum_n E_n\right|.

It is a telescoping identity apart from floating-point accumulation, not independent heat-rate quadrature. energy_balance_error_j is the compatibility alias for the same value. CSV heat rates remain start samples even for exact-linear/RK4; multiplying them by the interval duration generally does not reproduce the integrated state change. models/lumped_cell_thermal.py:247–277; models/lumped_cell_thermal.py:953–962; tests/test_lumped_cell_thermal.py:406–441.

Upper-limit crossings use the chord fraction (TL−Tn)/(Tn+1−Tn)(T_L-T_n)/(T_{n+1}-T_n) between reported states. Exposure sums only the portions strictly above TLT_L; lower limits analogously count strictly below. Upper margin is TL−maxTnT_L-\max T_n, lower margin is minTn−Tmin\min T_n-T_{min}. These postprocessing approximations do not solve a continuous event root. models/lumped_cell_thermal.py:283–394.

Browser subset

The active browser assumes T0=TaT_0=T_a, constant positive heat QQ, constant G>0G>0, constant CC, and no other heat terms. At browser time tt in minutes,

ΔT=QG(1−e−60Gt/C),T=Ta+ΔT,Estored=CΔT/1000kJ.\Delta T=\frac{Q}{G}(1-e^{-60Gt/C}),\quad T=T_a+\Delta T,\quad E_{stored}=C\Delta T/1000\;\mathrm{kJ}.

It reports GΔTG\Delta T as heat removed and Q−GΔTQ-G\Delta T as residualW (net heating in W). That quantity is distinct from the native bookkeeping residual in J. docs/index.html:167–172; docs/index.html:257–259.

Canonical file: docs/math-and-physics/EQUATIONS_AND_DERIVATIONS.md · Back to guide navigation

Parameters, symbols and units

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

All native defaults below are educational placeholders, except mathematical/unit constants. There is no named-cell calibration dataset in the reviewed source. Use the existing thermal parameter traceability matrix and material property register to record a replacement's source, condition, uncertainty and owner. models/README.md:378–403.

Native field / symbol here Default Unit Admitted meaning
mass_kg, mm 1.05 kg Positive lumped mass
specific_heat_j_per_kg_k, cpc_p 1000 J/(kg·K) Positive constant specific heat
thermal_capacity_j_per_k, C=mcpC=mc_p 1050 derived J/K Effective node heat capacity
resistance_ohm, R0R_0 0.004 Ω Nonnegative reference resistance
resistance_temperature_coefficient_per_k, αR\alpha_R 0 K⁻¹ Finite linear coefficient; evaluated resistance must stay nonnegative
resistance_reference_temperature_c, TrefT_{ref} 25 °C Reference for the linear correction
entropic_coefficient_v_per_k, β\beta 0 V/K Signed prescribed entropy coefficient
external_heat_w, QextQ_{ext} 0 W Signed prescribed heat into the node
heat_transfer_w_per_k, GG 1.2 W/K Nonnegative effective convection conductance
emissivity, ϵ\epsilon 0 dimensionless 0–1; paired with area
radiating_area_m2, AA 0 m² Nonnegative radiating area
ambient_temperature_c, TaT_a 25 °C Convection boundary
radiative_surroundings_temperature_c, TsT_s None → ambient °C Independent radiative boundary when supplied
initial_temperature_c, T0T_0 25 °C Single initial state
time_step_s, Δt\Delta t 1 s Positive default outer interval duration
rk4_max_step_s, Δtmax\Delta t_{max} 1 s Positive maximum internal RK4 step
integration_method explicit-euler enum/string explicit-euler, exact-linear, rk4

Declarations and validation: models/lumped_cell_thermal.py:17–119. Schedule arrays can override ambient, surroundings, interval duration, entropy coefficient, external heat and conductance. Currents are finite signed amperes; all supplied temperatures must exceed absolute zero. models/lumped_cell_thermal.py:750–861.

Avoid unit collisions

The native name “heat transfer” denotes conductance G in W/K. Some existing templates discuss a surface convection coefficient in W/(m²·K); a justified area relation such as G=hAG=hA is required before substitution. radiating_area_m2 belongs only to the radiation term and is not silently multiplied into native convection. Thermal conductivity in W/(m·K), C-rate, cell capacity in Ah and spatial gradients appear in broader templates but are not native solver inputs/outputs. templates/thermal-parameter-traceability-matrix.md:5–11; notes/thermal-assumptions-example-table.md:9–19; models/lumped_cell_thermal.py:486–503.

Temperature differences in °C equal differences in K, but reversible heat and fourth-power radiation use absolute kelvin. ABSOLUTE_ZERO_C=-273.15; STEFAN_BOLTZMANN_W_PER_M2_K4=5.670374419e-8 W/(m²·K⁴). Current is positive discharge and negative charge; external_heat_w<0 removes heat. Resistance is evaluated at every derivative/endpoint used by the solver. models/lumped_cell_thermal.py:13–14; models/lumped_cell_thermal.py:130–185; models/lumped_cell_thermal.py:460–504; models/lumped_cell_thermal.py:947–951.

Output and browser conventions

Native energies are J, rates W, time seconds, temperatures °C, exposure fractions dimensionless 0–1, and margins °C. The CLI formats exposure as a percentage. ThermalSimulation.time_step_s may be None for a variable grid. A reported peak/minimum uses the stored state tuple, not unreported RK4 stages. The API catalogue lists every result field. models/lumped_cell_thermal.py:188–457; models/lumped_cell_thermal.py:1405–1431.

Browser controls are Q=1200 W (100–3000), G=40 W/K (10–120), C=18000 J/K (3000–60000) and ambient=25 °C (0–45). It displays time in minutes and energy above ambient in kJ; its parameters are not the native default cell. Its residualW is net heat rate, not a numerical residual or native energy bookkeeping error. docs/index.html:167–172; docs/index.html:257–259.

Canonical file: docs/math-and-physics/PARAMETERS_AND_SYMBOLS.md · Back to guide navigation

Assumptions and validity limits

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The authoritative feature limits remain in models/README.md, with broader engineering review prompts in modeling assumptions and thermal model limitations. This package maps them to the reviewed implementation.

Boundary Implemented scope Consequence for interpretation
Geometry One uniform temperature state No surface/core, cell/module gradient, spatial PDE or conduction network
Electrical inputs Prescribed signed current and optional entropy schedule No SOC, terminal voltage, electrochemical/P2D dynamics or internally derived C-rate
Resistance Linear temperature correction around a reference No measured nonlinear SOC/age map; negative evaluated resistance is rejected
Heat Ohmic, supplied reversible and signed external terms No mixing, phase-change or side-reaction mechanisms
Convection Supplied effective conductance and ambient schedule No airflow/fluid state, coolant thermal mass, pump/fan dynamics or feedback loop
Radiation Constant diffuse-gray emissivity/area and supplied surroundings No view factors, enclosure exchange network, reflections or wavelength dependence
Time Piecewise-constant conditions per input interval No interpolation between scheduled values
Numerics Euler, affine exact-linear, fixed maximum-step RK4 No adaptive tolerance, stability enforcement or full operating-envelope guarantee
Validation Synthetic/analytic regression cases and illustrative CSVs No measured cell, pack, safety or BTMS performance validation

Source: models/lumped_cell_thermal.py:23–185; models/lumped_cell_thermal.py:468–547; models/lumped_cell_thermal.py:750–993; models/README.md:378–403.

Initial and boundary conditions

The initial cell state is independent of ambient. Every convection/radiation boundary and prescribed source is uniform over its interval. If no independent radiative boundary is supplied, surroundings follow the applied ambient schedule. The existing model guide's short limitations bullet describes that default; its dedicated radiation section and actual implementation also support independent surroundings. These documents preserve the original guide and make that distinction explicit. models/README.md:101–141; models/README.md:388–391; models/lumped_cell_thermal.py:783–823.

What verification establishes

The 85-test suite checks analytic/discrete cases, signs, validation, profiles, exports and threshold interpolation. A small bookkeeping residual proves only the state-derived identity. Exact-linear applies only to the affine within-interval equation, while RK4's maximum step needs a reviewed refinement study for a new nonlinear scenario. The existing RK4/linear comparison is not an exhaustive nonlinear-radiation error bound. tests/test_lumped_cell_thermal.py:295–441; tests/test_lumped_cell_thermal.py:1619–1697.

Limit crossing/exposure is a straight-line reconstruction between reported interval states. Coarse output intervals can misestimate crossing time even when endpoint temperatures are accurate; internal RK4 subdivision does not add returned samples. Upper/lower thresholds are user inputs, with strict exceedance/violation semantics. The CLI reports them without changing its success exit code. models/lumped_cell_thermal.py:283–394; models/lumped_cell_thermal.py:507–547; models/lumped_cell_thermal.py:1388–1437.

What remains unestablished

No named-cell parameter calibration, measured thermal time series, uncertainty distribution, acceptance dataset, pack-scale validation or standards compliance evidence was found in the reviewed tree. The example result-summary's 38.5 °C peak and 4.2 °C module gradient are explicitly placeholders; the latter requires a separate spatial model or measurement. General checklist requests for a gradient should be marked not applicable to this one-node output unless supported separately. notes/thermal-validation-example-result-summary.md:5–31; templates/validation-checklist.md:35–41.

An exponentially increasing affine solution or an exceeded example temperature does not model chemical thermal runaway or establish a safe operating limit. Before any project decision, populate the existing source/condition/validation templates with project-controlled evidence. The browser thermal response and historical animation are separate teaching representations, not hardware telemetry. README.md:233–240; notes/thermal-runaway-scope-boundary.md:5–20; docs/index.html:147–172; docs/animations/waveform.html:175–202.

Canonical file: docs/math-and-physics/ASSUMPTIONS_AND_LIMITS.md · Back to guide navigation

Verification evidence ledger

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Review identity: native source 37cb3c16069b21c373efc17ed202352ab69224dd, observed 2026-11-19 on Python 3.12.14/Linux. Native checks ran in an isolated copy with unchanged source bytes. Documentation checks bind to a separately recorded candidate tree fingerprint. Final documentation commit, PR checks, merge SHA and deployment identity belong in the external delivery record; none is implied by this source review.

Observed local executions

Evidence Command / criterion Result and limit
Native regression suite python -m unittest discover -s tests -v 85 tests passed; synthetic/analytic software verification
CLI registration python models/lumped_cell_thermal.py --help Successful; 23 explicit long options plus automatic help
Constant reference 75 A, 600 s, Euler 1 s versus exact-linear 600 s 34.309 versus 34.305 °C rounded final output
Seven committed input CSVs Methods/settings in worked examples All seven CLI runs succeeded and exported interval records
Upper/lower assessment Upper 30/35 °C, lower 20 °C on default run 30 exceeded; 35 and lower 20 passed; process exit 0
Source-linked guide python scripts/portfolio/validate_guide.py Four paths validated; validates structure/source links, not native execution
Active browser equations Evaluate exact inline UMD and declared module presets/checkpoints All eight thermal checkpoints passed; no DOM/visual claim

Input and implementation references: models/lumped_cell_thermal.py:1120–1437; scripts/portfolio/validate_guide.py:1–33; docs/index.html:147–335. Full commands, timestamps, environment, input/output/log hashes and exact fingerprints are retained with the review handoff.

What the source tests actually assert

Claim Existing test locations Criterion
Equilibrium and Euler recurrence tests/test_lumped_cell_thermal.py:289–317 Exact zero-current equilibrium; final recurrence agreement to 10 decimal places
Affine analytic solution tests/test_lumped_cell_thermal.py:319–398 Analytic endpoint comparisons to 12 decimal places, including zero feedback slope
Bookkeeping is not accuracy tests/test_lumped_cell_thermal.py:400–441 Two Euler resolutions both have zero bookkeeping residual despite different nonzero analytic errors
External/reversible heat and cooling tests/test_lumped_cell_thermal.py:459–613 Closed forms, sign reversal and interval override checks
Step sensitivity tests/test_lumped_cell_thermal.py:667–674 Default 1 s and 0.5 s Euler finals differ by <0.01 °C; one scenario only
CSV/boundary contracts tests/test_lumped_cell_thermal.py:721–1119 Uniform/variable timing, comments/BOM/header rules, boundaries, validation and export values
CLI and conflict resolution tests/test_lumped_cell_thermal.py:1122–1535 Output records, advertised methods and conflicting constant/profile inputs
Radiation / RK4 tests/test_lumped_cell_thermal.py:1537–1764 Radiation sign and components; radiation-disabled RK4/exact endpoint agreement to 11 decimal places
Upper and lower exposure tests/test_lumped_cell_thermal.py:27–287 Hand-constructed crossing/exposure values, equality semantics, reports and CLI

Decimal-place comparisons are the unittest criteria used by these examples, not universal engineering tolerances. The nonlinear radiation tests exercise signs and bookkeeping; they do not provide a measured-data comparison or exhaustive error-convergence proof.

Documentation and delivery checks

The author checks the complete pinned tree and blob hashes, authorized diff, all 24 entry points, CFF against its declared official 1.2.0 schema, local Markdown/HTML links and anchors, source-locator bounds, JSON schemas, SVG XML, CSV structure, roadmap fields/dependencies, public interface accounting and deterministic handbook freshness. Those checks cannot replace independent scientific/content review. External URLs are indexed; universal network reachability is not claimed.

At source-head observation, GitHub checks deploy, validate and human-authorship-policy were successful for the source SHA. The two Pages jobs belong to workflow run 43747906426; the metadata policy belongs to 43747906359. These historical checks do not establish candidate native CI, approval, merge or updated Pages content.

Measured-cell validation, full GUI/accessibility/browser inspection and publication verification are not established by the author-side local checks. The existing page/config snapshots remain historical; current live delivery must be tied to the merged revision and inspected separately.

Canonical file: docs/maintainer/VERIFICATION_EVIDENCE_LEDGER.md · Back to guide navigation

CI, release and existing publication

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The tracked CI provider is GitHub Actions. No CircleCI or Buildkite configuration is present in the reviewed tree; their optional connectors are not prerequisites for this repository's local validation. Preserve the AGENTS.md CI economics/integrity rules, job names, tag coverage and deployment gates. AGENTS.md:1–3.

Workflow Actual trigger and job Validation / publication scope
markdown-maintenance.yml — Model and Markdown validation Manual; path-filtered PRs and main pushes; job validate, 20 min Python 3.12 unit tests; reversible/variable-cooling/external/radiative examples; upper-limit report; Lychee on README, CONTRIBUTING, models/*.md, notes/*.md, templates/*.md, references/*.md
no-codex-attribution.yml — Human authorship policy PR, merge group, main push and all tag pushes; job human-authorship-policy, 5 min Full-history author/committer/co-author metadata scan over event-selected revisions
portfolio-dashboard-check.yml — Portfolio guide checks Path-filtered PRs and main branch pushes; all tag pushes; no manual trigger; job validate, 5 min Runs the source guide validator
deploy-dashboard.yml — Flagship dashboard main pushes touching docs/assets/workflow and manual; validate, 5 min; deploy, 10 min Static markers/JSON/symlinks/external-script check, then Pages upload of docs and deployment on main

Source: .github/workflows/markdown-maintenance.yml:1–89; .github/workflows/no-codex-attribution.yml:1–99; .github/workflows/portfolio-dashboard-check.yml:1–24; .github/workflows/deploy-dashboard.yml:1–82. GitHub path filters are not evaluated for tag pushes. Distinguish workflow/run/job identity when several jobs share validate.

Coverage gaps to retain visibly

Markdown changes trigger native/model CI, but the Lychee argument list omits docs/** and the new root changelog/security/roadmap. A CFF-only change does not match that workflow's path filters. The Pages validator does not build or freshness-check the new handbook and only parses lesson JSON, while the guide validator checks its embedded JSON and source paths. Run local handbook/schema/link checks and propose a separately reviewed docs-pipeline extension; this package does not change workflows. .github/workflows/markdown-maintenance.yml:3–18; .github/workflows/markdown-maintenance.yml:85–89; .github/workflows/deploy-dashboard.yml:35–54; scripts/portfolio/validate_guide.py:9–31.

Guarded delivery

  1. Review the entire exact candidate diff and independent QA identity. Refresh the target branch; invalidate affected evidence if either source or candidate changed.
  2. Read applicable current branch/ruleset settings and required reviews/checks. At 2026-11-19 observation, active ruleset 20091525 applied required_signatures to all branches with no bypass actors. Classic protection read access returned 403 for the integration; that is an evidence limitation requiring an authorized supported inspection, not permission to ignore protection.
  3. Use a legitimate platform-supported signing path and actual contributor identity; do not forge attribution, edit policy, bypass reviews or relabel absent CI as passed. The metadata workflow and signature requirement are separate controls.
  4. Bind every required check to the current PR head or its explicitly mapped merge/queue revision. Preserve discussion resolution, review and queue requirements. Use the supported merge operation's expected-head guard.
  5. Record the merge result separately, then observe the existing Pages workflow for that revision, deployment status and changed content.

The source metadata scan prints specific failures and a checked-commit count; it does not print its revision range. Inspect the event inputs and range case statement when diagnosing it. .github/workflows/no-codex-attribution.yml:31–99.

Releases and Pages

The releases and tags lists were empty at the dated observation; CFF has no version/date/DOI. Use an Unreleased documentation entry rather than create a version or tag. The declared homepage is the existing GitHub Pages site. The deployment job uploads all of docs, so the derived handbook can follow this route after merge without creating hosting. Review Pages settings/environment rules when access permits; a successful historical deploy or HTTP 200 is insufficient proof of the new content. CITATION.cff:1–16; .github/workflows/deploy-dashboard.yml:56–82.

Publication acceptance: merged SHA → matching workflow run → successful Pages deployment identity → live handbook snapshot/source label and navigation/content inspection. Keep local content, merge and publication outcomes separate.

Canonical file: docs/maintainer/CI_CD_AND_RELEASE_PLAYBOOK.md · Back to guide navigation

Toolchain and dependency matrix

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Component Declared/source requirement Observed review environment Qualification
Native thermal engine/tests Python 3.12+ in model guide; standard-library imports Python 3.12.14/Linux; 85 tests and examples passed No cross-version/OS support matrix demonstrated
CI native runner Ubuntu latest, Python 3.12 Historical source checks observed; candidate CI separate Image and selected patch versions may change
Browser lab/catalogues Modern browser, JavaScript/canvas/dialog; self-contained scripts Pure active model evaluated in Node; static HTML/JSON inspected No full GUI or browser-version compatibility claim
Portfolio guide Python standard-library validator; browser local storage optional Four source-linked paths validated Storage failure falls back to explicit plan export
Static handbook Python standard library plus Pandoc Pandoc 3.1.11.1 for reviewed generation Documentation-only authoring tool; no runtime dependency added
Documentation schema checks Official CFF 1.2.0 schema, repository lesson schema, JSON Schema validator, YAML parser Separate review environment with functioning date/URI validators Tooling outside native runtime; exact versions retained in handoff
Link CI SHA-pinned Lychee Action Source arguments inspected Action code must be inspected to establish its actual default Lychee binary version
Git/Pages Pinned GitHub Actions, existing Pages route Source metadata/rules observed Current branch permissions/reviews/deployment are delivery gates

Source: models/README.md:32–53; models/lumped_cell_thermal.py:1–10; tests/test_lumped_cell_thermal.py:1–22; .github/workflows/markdown-maintenance.yml:28–89; scripts/portfolio/validate_guide.py:1–33; docs/portfolio/index.html:269–291.

Dependency and license boundaries

There is no native package manifest or lockfile because the reference uses Python's standard library. Dependabot is configured weekly for GitHub Actions only, with five open PRs maximum; this is configuration, not an observed current queue. Actions are pinned to full commit SHAs; comments provide labels but do not independently establish downstream tool versions. .github/dependabot.yml:1–7; .github/workflows/deploy-dashboard.yml:27–82.

The repository preserves the MIT license with 2026 Mohammad Rezwan Khan attribution and the existing CFF/CodeMeta metadata. The linked literature remains separately authored material; a link or reading note does not relicense a third-party paper, dataset or future measurement collection. The seven small CSVs are illustrative repository inputs; no measured external dataset is bundled. LICENSE:1–21; CITATION.cff:1–16; references/reading-log-template.md:1–10.

Reproducible documentation checks

The CFF is preserved and validated using its declared official schema. The review uses a duplicate-key-rejecting YAML loader with string scalars, appropriate to this string-valued CFF, then Draft 7 schema validation with actual URI/date-time format validators. This does not claim general YAML 1.2 parser conformance. The lesson configuration is validated against its tracked schema; generated handbook input hashes and renderer version checks expose drift. No new runtime dependency file is introduced.

Canonical file: docs/maintainer/TOOLCHAIN_AND_DEPENDENCY_MATRIX.md · Back to guide navigation

Failure modes and evidence-backed debt

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

These findings preserve executable behavior. Severity describes review priority for the stated scope, not a claim of observed field failure. Each proposed correction belongs in a separate reviewed change with tests; see ROADMAP.md.

ID / priority Evidence and failure mode Proposed resolution / acceptance
BT-F01 / medium CI's Markdown link list omits the new handbook and several root docs; Pages does not check renderer freshness. .github/workflows/markdown-maintenance.yml:85–89; .github/workflows/deploy-dashboard.yml:35–54 Add a narrow docs gate after review; a deliberately stale guide or broken handbook link must fail without weakening existing checks
BT-F02 / medium Euler has no stability guard; RK4 bounds step size without an adaptive error estimator. Current radiation checks are not a convergence envelope. models/lumped_cell_thermal.py:507–547; models/lumped_cell_thermal.py:903–945; tests/test_lumped_cell_thermal.py:1619–1697 Publish a bounded analytic/nonlinear refinement matrix, explicitly state tolerances and failure limits before any numerical policy change
BT-F03 / medium Native lessons and portfolio data preserve earlier source identities. docs/portfolio/README.md:19–24 Maintain an explicit historical/current provenance map and deterministic generation recipe; do not silently relabel old snapshots
BT-F04 / high for validation reuse Parameters/CSV examples are illustrative; no measured validation dataset accompanies them. models/README.md:378–403; notes/thermal-validation-example-result-summary.md:5–18 Acquire legally reusable, condition-matched data and a predeclared validation protocol; keep calibration and validation cases separate
BT-F05 / medium Upper/lower reports use endpoint interpolation; lower limits have no CSV writer and a valid exceeded run returns 0. models/lumped_cell_thermal.py:283–394; models/lumped_cell_thermal.py:1065–1117; models/lumped_cell_thermal.py:1388–1437 Design a versioned machine-readable assessment contract with explicit compatibility and event-resolution semantics
BT-F06 / medium Broader templates discuss W/(m²·K), conductivity and gradients beyond the W/K one-node solver. templates/thermal-parameter-traceability-matrix.md:5–11; templates/validation-checklist.md:35–41 Add a native applicability/unit mapping; mark unavailable gradient outputs explicitly, retain broader template intent
BT-F07 / low Time-grid error messages enumerate filtered rows, unlike numeric conversion messages that use physical line numbers. models/lumped_cell_thermal.py:600–642; models/lumped_cell_thermal.py:694–729 Add regression cases with comments/blanks before a timing error, then retain physical line identity in a separately scoped parser correction
BT-F08 / medium for operation Public source establishes workflows and authorship, but no assigned backup maintainer, exercised restore or live candidate deployment. CITATION.cff:5–8; .github/workflows/deploy-dashboard.yml:56–82 Assign roles and rehearse source/docs restoration with current permissions, signature rules and content verification
BT-F09 / low 598 historical badge/workflow markers dominate path listings without engineering semantics; the catalogue already excludes these from its curriculum Keep full historical accounting while offering a focused engineering index; do not reinterpret markers as current achievement evidence

The existing guide describes the Stefan–Boltzmann value as exact and one short radiation limit as following ambient. The new science pages clarify finite literal precision and the separately supported surroundings boundary while preserving that guide's original content. These are documentation distinctions, not numerical changes. models/README.md:103–111; models/README.md:388–391.

Measured safety limits, thermal runaway, spatial/module behavior and hardware control remain outside the implemented model. New features require a separate scope decision and evidence plan; the current package does not introduce them.

Canonical file: docs/maintainer/FAILURE_MODES_AND_TECH_DEBT.md · Back to guide navigation

Documentation maintenance runbook

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Canonical sources

Keep models/README.md, substantive notes/, templates/ and references/ as their established canonical material. Requested handbook entry points map to them and add source-specific API, derivation, verification and owner context. The source SHA in page banners describes the analyzed code, not the commit that introduces those pages. Existing native/portfolio lesson snapshots retain their separate provenance. docs/portfolio/README.md:1–24.

Change checklist

  1. Pin the source tree and account for every tracked entry. Separate semantic review, structural parsing, indexed historical/generated content and unsupported payloads.
  2. Inspect changed functions, dataclass fields, constants, CLI registrations, input/output schemas, tests, workflows and source evidence. Update the API catalogue and unit/assumption pages together.
  3. Run the native suite and affected examples. Record actual interpreter, argument vector, fixtures, output/log hashes and revision identity; do not refresh a date while retaining stale results.
  4. Check local Markdown paths/anchors, pinned source line ranges, CFF declared schema and duplicate keys, lesson JSON schema, SVG XML, HTML navigation and git diff --check.
  5. Regenerate the static reading view and compare it. Review the complete diff independently, then use ordinary guarded delivery and the existing Pages route.

Native commands and CI evidence: CONTRIBUTING.md:13–19; .github/workflows/markdown-maintenance.yml:42–89; scripts/portfolio/validate_guide.py:1–33.

Rebuild the reading view

docs/reference/chapters.json fixes chapter paths, groups, labels, review date and reviewed source identity. build_reference.py reads only those Markdown/CFF inputs, uses Pandoc to produce HTML/MathML, rewrites local links to chapter or source targets, rejects active HTML/event attributes, and writes only docs/reference/index.html. reference.css owns presentation. Input hashes and the observed Pandoc version are embedded in the generated page.

pandoc --version
python docs/reference/build_reference.py
python docs/reference/build_reference.py --check
python -m unittest discover -s tests -v
python scripts/portfolio/validate_guide.py
git diff --check

The reviewed renderer uses Pandoc 3.1.11.1. A changed renderer/tool version can legitimately alter HTML; inspect the semantic and visual delta, then update the dated build record. Never edit generated HTML independently. The page has no scripts, uses native MathML and links back to existing learning surfaces. Source Markdown remains usable in GitHub without this view.

Presentation and publication

Preserve the existing purple/cream/orange style, typography hierarchy, keyboard focus, skip navigation and reduced-motion behavior. Keep source identity and synthetic-data qualifications close to outputs. Check narrow and wide screens, table scrolling, chapter anchors, math, keyboard navigation and print output through the supported browser before claiming visual verification. Static parsing is insufficient for those claims.

The source Pages workflow publishes docs directly; it does not execute this renderer. Commit the reviewed generated view with its inputs. After a policy-compliant merge, tie deployment to the merged revision and inspect the actual new handbook. Preserve prior evidence and record rollback/recovery as a new reviewed change. .github/workflows/deploy-dashboard.yml:56–82; AGENTS.md:1–3.

Canonical file: docs/maintainer/DOCS_MAINTENANCE_RUNBOOK.md · Back to guide navigation

Governance, ownership and scope

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The repository CFF identifies Mohammad Rezwan Khan and the existing ORCID; the MIT license carries the same named attribution. That establishes documented authorship, not a complete staffing, approval or on-call roster. No CODEOWNERS, named backup maintainer, response promise or project-specific security contact is present in the reviewed tree. CITATION.cff:1–16; LICENSE:1–21.

Owner decisions to make explicitly

Proposed responsibility Decision/evidence to own
Repository maintainer Current permissions, branch/signature rules, review policy and source release identity
Thermal modeling reviewer Validity envelope, sign/unit consistency, solver evidence and model-change approval
Data/validation steward Measurement provenance, reuse rights, test conditions, uncertainty and independent validation
Documentation maintainer Canonical mapping, renderer freshness, source locators and accessible learning navigation
Recovery backup Verified restore instructions and existing Pages publication access

These are proposed roles for assignment; they do not invent people or existing authority. The existing templates already ask for source, operating conditions, confidence, owner and decision evidence. Use those records before approving project-specific claims. templates/thermal-validation-decision-log.md:3–16; templates/thermal-parameter-traceability-matrix.md:3–18.

Scope and IP

The implemented product is a research/teaching one-node thermal reference and a set of learning/review materials. It does not certify a cell, pack, BTMS, thermal runaway model or operational temperature limit. The browser's synthetic proxy and broader BTMS templates do not expand the native model's capabilities. README.md:233–240; models/README.md:378–403.

Keep the original license and citation metadata, distinguish repository examples from separately licensed literature/data, and retain data ownership/consent before publishing any future measurements. Portfolio notes can include user-entered text in local storage/export, so their backup and disclosure are user choices. references/reading-log-template.md:1–10; docs/portfolio/index.html:269–291.

Change authority

Documentation/navigation maintenance can explain existing behavior and record proposed improvements. New algorithms, measured parameter fits, numerical guards, runtime/dependency changes or hardware integration require their own reviewed scope and validation. Follow the repository's actual current review/check/signature rules. A technical agent review does not satisfy a platform-required independent human approval. Recovery, decision index, and roadmap make the outstanding owner choices concrete.

Canonical file: docs/owner/GOVERNANCE_AND_SCOPE.md · Back to guide navigation

Recovery and continuity runbook

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Preserve what is needed

Retain an authorized Git mirror/export, branch/tag/rules metadata, reviewed source/candidate/merged identities, required CI and deployment receipts, canonical documentation and handbook inputs. Keep environment versions, exact commands, fixture hashes and any measured-data permission/provenance records with reproducibility evidence. results/ is ignored and portfolio personal notes live in browser storage; neither is guaranteed by a source clone. .gitignore:1–15; docs/portfolio/index.html:269–291.

Restore and verify

  1. Obtain an authorized checkout, verify its commit and tree, and preserve any existing uncommitted work. For this snapshot, the reviewed source is 37cb3c16069b21c373efc17ed202352ab69224dd, tree 127037ea757181c6baa8db8290d2f978838dd636.
  2. Restore Python 3.12 or the specifically recorded compatible environment; run the 85-test source suite and the exact-linear reference. Compare retained fixture/output evidence, not just a plausible plot.
  3. Restore the documentation commit and Pandoc 3.1.11.1 for the reviewed handbook bytes; run renderer freshness, local links, citation/schema checks and the source guide validator.
  4. Confirm current GitHub account/repository access through approved mechanisms. Inspect branch protection, the actual signature ruleset, required checks/reviews and Pages environment restrictions. Do not copy old policy assumptions or disable a gate to recover.
  5. Use a normal reviewed change and legitimate signing route. After merge, map the existing Pages deployment to that merged revision and inspect handbook navigation and updated content.

Source execution and publication contracts: models/README.md:32–53; .github/workflows/markdown-maintenance.yml:42–89; .github/workflows/deploy-dashboard.yml:56–82.

Access and fallback

Native calculations and the static local learning pages work without production accounts. The source Pages deployment uses pages: write and id-token: write; no named long-lived deployment secret is declared. Repository administrator and Pages access recovery use the platform's normal authorized account process. Do not collect, embed or manufacture credentials. .github/workflows/deploy-dashboard.yml:61–82.

If publication access is unavailable, preserve the exact candidate, review evidence and local/GitHub-rendered Markdown while recording the unresolved deployment gate. Do not announce recovery complete until the intended publication outcome is observed. No restore drill or backup-person assignment was established by this documentation review; BT-08 proposes a measured exercise.

Canonical file: docs/owner/BUS_FACTOR_RECOVERY_RUNBOOK.md · Back to guide navigation

Portfolio integration

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

This public repository contributes a battery thermal reasoning/reference-model component: one-state thermal dynamics, input-profile contracts, numerical verification examples and assumption/validation templates. The existing static lesson guide organizes four paths. Native model execution imports Python's standard library only; no implemented runtime coupling to another portfolio repository was identified. Shared names, visual styles or generic battery topics are not evidence of integration. models/lumped_cell_thermal.py:1–10; docs/portfolio/README.md:1–17.

Interface suitable for a future reviewed connection Current contract Required mapping before reuse
Current and boundary schedules Strict CSV interval starts, optional durations, current A and thermal fields Timebase, sign, units, schedule completeness, measured/synthetic provenance
Python model simulate_lumped_temperature with immutable specification and optional schedules One-node validity, thermal capacity, conductance, resistance/entropy evidence
Interval results State boundaries plus start heat rates and state-derived energy Rate versus interval energy distinction; numerical resolution
Limit assessments Chord-interpolated exposure and signed margins Project-authorized limits and event-time accuracy requirement
Learning catalogue Pinned source URLs and study plans Preserve historical source identity; learning completion is not execution proof

Implementation: models/lumped_cell_thermal.py:550–759; models/lumped_cell_thermal.py:996–1117; models/lumped_cell_thermal.py:283–394; docs/portfolio/index.html:278–291.

A future BESS dispatch/current pipeline could supply schedules, but that is a proposal requiring compatible electrical-to-current conversion, time alignment and calibrated thermal parameters; no such pipeline is implemented here. Keep thermal capacity in J/K distinct from electrical capacity in Ah/kWh, effective conductance in W/K distinct from a surface coefficient, and browser minutes distinct from native seconds. The public portfolio hub may reuse this repository's public source/evidence links and dated delivery status only; private or unknown-visibility evidence belongs in the separate owner record.

Current public entry points are the repository, existing GitHub Pages site and documentation index. Site availability and handbook publication must be verified for the delivered revision; a declared homepage is not that verification.

Canonical file: docs/owner/PORTFOLIO_INTEGRATION.md · Back to guide navigation

Architecture decision index

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

No historical ADR collection was found in the reviewed tree. The entries below are reconstructed architectural observations, not records of an approval meeting or new decisions. The existing thermal validation decision template contains example IDs with TBD dates, not completed project approvals.

ID Reconstructed observation Evidence Consequence / decision still needed
OBS-001 Dependency-free one-node reference models/lumped_cell_thermal.py:1–42; models/lumped_cell_thermal.py:750–993 Retain transparent scope; a multi-node extension needs a separate evidence-led decision
OBS-002 Piecewise-constant schedules with explicit method selection models/lumped_cell_thermal.py:550–747; models/lumped_cell_thermal.py:903–945 Record interval and solver choices; no implied adaptive error control
OBS-003 State-derived energy bookkeeping and postprocessed limits models/lumped_cell_thermal.py:247–394; models/lumped_cell_thermal.py:953–962 Keep verification, threshold reporting and physical validation distinct
OBS-004 Static learning surfaces are separate from native execution docs/index.html:147–154; docs/portfolio/index.html:286–291 Source links and personal review state do not execute the model

Proposed future decisions are tracked in ROADMAP.md: validation data, numerical evidence, assessment exports, documentation automation and possible model scope. When accepted, add a dated ADR containing context, alternatives, actual decision owner, source/evidence, consequences and supersession link. Do not backdate a new decision to a historical source snapshot.

Canonical file: docs/owner/ADR/ADR-0000-INDEX.md · Back to guide navigation

Proposed development roadmap

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The window is 2026-11-19 through 2027-11-18 inclusive (end-exclusive 2027-11-19): twelve calendar months. Now is the remainder of calendar Q4 2026; Next is Q1 2027; Later is Q2 2027; Horizon spans Q3 and the partial Q4 through November 18. Dates, effort and roles are proposals, not staffing commitments or authorization to change native behavior. The source has no open issues/PRs in the dated complete list observation; these items arise from source findings and evidence gaps.

Categories separate defects, maintenance, documentation, engineering improvements and exploratory research. Dependencies below are within this repository. A shared portfolio documentation checker may be reused after review, but no implemented cross-repository coupling is assumed.

Now: 2026-11-19 to 2026-12-31

BT-01 — Close handbook validation coverage

Documentation; P1. Proposed owner: Documentation maintainer with CI reviewer. Effort: 1–3 engineer-days. Confidence: High.

Outcome: Maintainers detect stale derived content and broken handbook links before merge.

Proposed change: Propose a narrow documentation CI gate covering the canonical handbook, generated freshness and citation/schema checks while preserving native tests and required contexts.

Basis: .github/workflows/markdown-maintenance.yml:85–89; .github/workflows/deploy-dashboard.yml:35–54.

Dependencies: None within this plan.

Risks: External link availability can be transient; keep local structural and network failures distinguishable.

Unresolved assumptions: Current required check names and branch policies will be inspected before a workflow edit.

Acceptance criteria:

  • All 24 canonical entry points and their local anchors are checked.
  • A deliberately stale handbook and a broken local link each fail the proposed gate.
  • Existing model checks, tag coverage and deployment permissions remain intact.

Verification: Review the workflow diff and exercise pass/fail fixtures in a task PR; bind results to its exact head.

BT-02 — Define numerical verification envelopes

Engineering improvement; P1. Proposed owner: Thermal modeling reviewer. Effort: 3–6 engineer-days. Confidence: Medium.

Outcome: Users can select interval and RK4 steps with declared numerical evidence.

Proposed change: Document and test representative stable/unstable affine Euler cases and a nonlinear radiation step-refinement matrix; propose any solver guard separately after compatibility review.

Basis: models/lumped_cell_thermal.py:507–547; models/lumped_cell_thermal.py:903–945; tests/test_lumped_cell_thermal.py:1619–1697.

Dependencies: None within this plan.

Risks: A passing example cannot establish an unbounded operating envelope.

Unresolved assumptions: Reference cases and acceptable endpoint/event-time errors will be approved before thresholds are called acceptance criteria.

Acceptance criteria:

  • Record at least three affine feedback/step regimes and three radiation cases with three successively halved internal steps.
  • Separate endpoint error, crossing-time error and state-derived bookkeeping residual.
  • Publish exact inputs, independent reference construction and the admitted envelope.

Verification: Compare affine cases against analytic solutions and nonlinear cases against a reviewed converged reference; preserve failure cases.

BT-03 — Make lesson provenance maintenance explicit

Maintenance; P2. Proposed owner: Documentation maintainer. Effort: 2–4 engineer-days. Confidence: High.

Outcome: Readers distinguish historical teaching snapshots from the current source review.

Proposed change: Specify a reproducible catalogue/config generation path and an explicit historical/current provenance map without silently changing old source identities.

Basis: docs/native-lessons.json:8–19; docs/portfolio/README.md:19–24.

Dependencies: BT-01.

Risks: Blindly refreshing hashes can misattribute historical narratives or examples.

Unresolved assumptions: Original generation inputs may need reconstruction; any reconstruction will be labelled.

Acceptance criteria:

  • Every learning surface exposes its source identity and intended snapshot status.
  • A deterministic check detects disagreement between canonical configuration and embedded data.
  • All historical badge/workflow markers retain an accountable disposition outside the engineering learning index.

Verification: Regenerate twice, compare outputs and source links, and independently inspect representative historical/current passages.

Next: 2027-01-01 to 2027-03-31

BT-04 — Establish a measured validation case

Exploratory research; P1. Proposed owner: Data/validation steward and thermal reviewer. Effort: 2–6 engineer-weeks. Confidence: Low.

Outcome: A specific thermal accuracy claim can be judged against suitable measurements.

Proposed change: Select a legally reusable cell dataset or authorized experiment with documented sensor placement, current, ambient/surroundings and parameter sources; separate calibration and validation cases.

Basis: models/README.md:378–403; templates/thermal-test-data-quality-checklist.md:1–18; references/reading-log-nrel-li-ion-thermal-characterization.md:19–30.

Dependencies: BT-02.

Risks: Data access, instrument quality and one-node representativeness may prevent a defensible validation claim.

Unresolved assumptions: Dataset license, consent and cell/test conditions are unresolved; no acquisition or experiment is authorized by this proposal alone.

Acceptance criteria:

  • Publish rights/provenance, units, timestamps, missing-data decisions and sensor uncertainty.
  • Declare calibration/held-out cases and error metrics before reporting validation results.
  • Report the accepted envelope and mismatches; explicitly defer validation if evidence is unsuitable.

Verification: Independent data-quality and method review, then reproducible held-out comparisons under a separately authorized analysis.

BT-05 — Specify machine-readable threshold assessments

Engineering improvement; P2. Proposed owner: Native interface maintainer. Effort: 3–5 engineer-days. Confidence: Medium.

Outcome: Automation can interpret upper and lower assessments without confusing process success with a passed threshold.

Proposed change: Design a versioned export contract for both assessment types, explicit absent-event semantics and optional exit-policy behavior, preserving existing defaults unless an approved compatibility decision changes them.

Basis: models/lumped_cell_thermal.py:283–394; models/lumped_cell_thermal.py:1065–1117; models/lumped_cell_thermal.py:1388–1437.

Dependencies: BT-02.

Risks: Changing exit semantics can break callers; interpolated events can be mistaken for continuous roots.

Unresolved assumptions: Consumer requirements and compatibility policy need owner approval.

Acceptance criteria:

  • Document upper/lower field names, units, strict comparisons and null reasons.
  • Include no-violation, initial violation, recovery, repeated-excursion and coarse-sampling examples.
  • Record a compatibility decision before adding behavior.

Verification: Review the schema/ADR and add contract tests only in a separately scoped implementation PR.

BT-06 — Map engineering templates to native quantities

Documentation; P2. Proposed owner: Thermal documentation reviewer. Effort: 2–4 engineer-days. Confidence: High.

Outcome: Template users avoid substituting a surface coefficient or spatial metric into the one-node model.

Proposed change: Add an applicability/unit/source map across the broader BTMS templates and a completed synthetic native-case example with explicit N/A spatial outputs.

Basis: templates/thermal-parameter-traceability-matrix.md:5–18; templates/validation-checklist.md:35–41; notes/thermal-assumptions-example-table.md:9–19.

Dependencies: BT-01.

Risks: Over-specializing shared templates could hide their valid broader BTMS purpose.

Unresolved assumptions: The broader template scope remains useful and should be preserved.

Acceptance criteria:

  • Every solver input has a unit, default/override source and project-evidence field.
  • W/K and W/(m²·K) mappings require a declared area basis.
  • Spatial gradient, conductivity, SOC and electrical capacity are explicitly distinguished from native outputs.

Verification: Review a completed example against API declarations and rerun its command with no hidden parameter conversions.

Later: 2027-04-01 to 2027-06-30

BT-07 — Correct profile diagnostic line provenance

Defect; P3. Proposed owner: Native interface maintainer. Effort: 1–2 engineer-days. Confidence: High.

Outcome: CSV timing errors identify the actual source line after comments or blank lines.

Proposed change: Add focused failing examples, then propose retaining physical line provenance consistently in timing validation; preserve accepted numeric schedule behavior.

Basis: models/lumped_cell_thermal.py:553–560; models/lumped_cell_thermal.py:600–642; models/lumped_cell_thermal.py:694–729.

Dependencies: None within this plan.

Risks: Changing diagnostic text may affect consumers that parse messages.

Unresolved assumptions: Error wording compatibility must be checked; no parser modification is part of this documentation package.

Acceptance criteria:

  • A gap/overlap and a nonuniform-grid error following comments/blanks report the correct physical line.
  • Existing valid profiles and all native regression tests retain their numerical results.

Verification: Execute focused diagnostic tests and the full suite in a separately scoped code PR.

BT-08 — Rehearse recovery and publication

Maintenance; P2. Proposed owner: Repository owner and recovery backup. Effort: 1–3 engineer-days. Confidence: Medium.

Outcome: An assigned backup can restore the documented model and existing static site with evidence.

Proposed change: Assign primary/backup roles and conduct a timed source/docs restore using normal access, current signature/branch rules and the existing Pages route.

Basis: CITATION.cff:5–8; .github/workflows/deploy-dashboard.yml:56–82; .gitignore:1–15.

Dependencies: BT-01, BT-03.

Risks: Access recovery and protected environments may require platform/account-owner intervention.

Unresolved assumptions: No backup assignment or restore target is currently established in source.

Acceptance criteria:

  • Record assigned roles and an agreed recovery target before the exercise.
  • Verify source/tree/fixture hashes, native checks and handbook freshness after restore.
  • Tie a permitted publication to its merged revision and inspect live updated content; record elapsed time and failures.

Verification: Use a reviewed exercise report with access evidence and deployment lineage; never weaken protection to complete the drill.

Horizon: 2027-07-01 to 2027-11-18

BT-09 — Decide the next scientific scope

Exploratory research; P3. Proposed owner: Repository owner with thermal/data reviewers. Effort: 1–3 engineer-weeks for decision study. Confidence: Low.

Outcome: Future model complexity answers a validated need instead of implying unsupported pack behavior.

Proposed change: Evaluate whether a multi-node model, uncertainty propagation or a calibrated parameter map is justified by the measured-case discrepancies; accept, defer or reject each with an ADR.

Basis: models/README.md:378–403; notes/thermal-model-limitations.md:7–20; references/research-next-questions-log.md:1–18.

Dependencies: BT-04, BT-06.

Risks: Added parameters may be unidentifiable; a larger model may obscure rather than reduce uncertainty.

Unresolved assumptions: Adequate reusable data and a concrete use case remain unresolved.

Acceptance criteria:

  • Compare the retained one-node baseline with evidence needs and parameter identifiability.
  • Document alternatives, data/license costs, verification strategy and explicit non-goals.
  • Record an actual approve/defer/reject decision; implement no expanded model without a separate authorized scope.

Verification: Independent review of the decision study, held-out evidence where available and traceable ADR consequences.

Canonical file: ROADMAP.md · Back to guide navigation

Changelog

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

Unreleased documentation package — reviewed 2026-11-19

Added developer, scientific, maintainer and owner entry points, source/API/browser inventories, a proposed twelve-calendar-month roadmap and a reproducible static reading view. Preserved the existing model guide, notes, templates, numerical code, fixtures, tests, workflows, dependency configuration, CFF and license; existing learning pages gain navigation only. The review date is not a software release, tag, merge or publication claim.

Existing source record

The reviewed commit 37cb3c16069b21c373efc17ed202352ab69224dd, dated 2026-11-15 in GitHub metadata, is titled docs: label unavailable animation galleries (#696). This is one recorded source commit, not a reconstructed complete release history. The GitHub releases list and tag-ref list were empty when observed on 2026-11-19. Existing browser version markers identify their teaching bundle, not an invented repository release. The CFF declares no version, release date or DOI. CITATION.cff:1–16; docs/index.html:2–2.

Canonical file: CHANGELOG.md · Back to guide navigation

Citation metadata

Existing CFF, preserved verbatim:

cff-version: 1.2.0
message: "If you use these notes or models in research or teaching, please cite this repository."
type: software
title: "Battery Thermal Modeling Notes"
authors:
  - family-names: Khan
    given-names: Mohammad Rezwan
    orcid: "https://orcid.org/0000-0002-1532-0598"
repository-code: "https://github.com/mohammadrezwankhan/battery-thermal-modeling-notes"
url: "https://github.com/mohammadrezwankhan/battery-thermal-modeling-notes"
license: MIT
keywords:
  - battery thermal management
  - BTMS
  - heat generation
  - thermal model validation

Canonical file: CITATION.cff · Back to guide navigation

Security and responsible reporting

Reviewed 2026-11-19 against source 37cb3c16069b21c373efc17ed202352ab69224dd. Documentation index. This date identifies the review, not a release or deployment.

The reviewed native model runs local calculations and writes files only to explicitly selected output paths; static learning surfaces operate locally without a backend. The portfolio guide stores optional personal notes in browser local storage and exports those notes when requested. Treat source files and input profiles as data to review before use; do not put credentials, confidential experiment data or patient/personnel details in public examples or browser study plans. models/lumped_cell_thermal.py:996–1117; models/lumped_cell_thermal.py:1316–1327; docs/portfolio/index.html:269–291.

Reporting route

The source did not define a private security contact, supported-version table or response-time commitment. For a nonsensitive reproducibility/documentation defect, use the repository's issue tracker with a minimal synthetic example, source revision and expected/observed behavior. For a vulnerability that requires confidential details, first use a private reporting option only if the repository's current GitHub Security page offers it; otherwise obtain a confirmed private maintainer channel before disclosing exploit details or secrets. Availability of a private reporting feature has not been verified by this package.

Maintainer boundaries

Use the least-privileged workflow permissions, pinned Actions and existing signature/branch policies. Never disable required checks or fabricate a pass to deliver documentation. Review user-provided filenames before running CLI examples because writers create parent directories and overwrite existing targets. A printed temperature-limit result is a scientific output, not a security or safety certification. AGENTS.md:1–3; .github/workflows/markdown-maintenance.yml:20–43; models/lumped_cell_thermal.py:996–1025; README.md:233–240.

No credentials or third-party service accounts are needed for the documented local calculations. The source workflow uses GitHub's job permissions/OIDC for Pages; recovery must preserve those permissions and the actual repository rules rather than inventing a long-lived secret. .github/workflows/deploy-dashboard.yml:61–82.

Canonical file: SECURITY.md · Back to guide navigation

Contributing

Contributions should make battery thermal modeling clearer, more reproducible, or easier to validate.

Good Contributions

  • Clarify assumptions.
  • Add citations to public sources.
  • Improve model setup notes.
  • Add validation checklists.

Pull Request Checklist

Maintain the documentation package

Start at docs/INDEX.md. Keep the substantive model guide, notes and templates canonical for their existing subjects. Update the handbook's source locators, API/CLI inventory and worked outputs when their source changes; label proposed work separately from implemented behavior.

Use a small PR with a claim-to-source/test map, explicit units, input provenance and a reproducible command. Preserve the distinction between state-derived energy bookkeeping and independent numerical verification. A literature citation does not turn the seven example CSVs into measured validation data. Record any numerical defect for a separately scoped change.

For this static reading view, edit Markdown or CFF first, then run python docs/reference/build_reference.py and python docs/reference/build_reference.py --check with Pandoc installed. Run python -m unittest discover -s tests -v, python scripts/portfolio/validate_guide.py, local Markdown/link checks and git diff --check. The existing CI link command does not cover the new docs/** handbook; keep a separate local check until that gap is reviewed. See the maintenance runbook.

Follow AGENTS.md for CI changes and preserve required contexts. Repository policy checks author/committer/co-author metadata; use the authenticated contributor's legitimate identity and obey current signature and branch rules. Source: .github/workflows/no-codex-attribution.yml:17–99.

Canonical file: CONTRIBUTING.md · Back to guide navigation