ThermoWeave reference handbook
Inspect the native equations, reproduce the examples, and separate software evidence from historical results and browser teaching lessons.
Reviewed 2026-11-19 · Source 5f29e34788b0. This is a dated documentation snapshot.
Browse reference chapters
ThermoWeave documentation index
Reviewed 2026-11-19 at source 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a. This reference separates implemented native graph behavior, standalone scalar teaching, preserved historical outputs and proposed follow-up work. Read the handbook · interactive lab · native lessons · learning paths.
Choose a reading path
Developers: start with setup and the worked examples, then inspect exact API/shape and equation contracts. Maintainers: read evidence, failure modes and CI/release gates before interpreting status. Owners: read scope, decisions and recovery before authorizing new claims or releases. No native MATLAB/browser execution, merge or deployed-content verification is implied by a documentation snapshot.
Canonical required outputs
| Audience | Document | Purpose |
|---|---|---|
| Project | README.md | Project entrypoint plus dated current-source clarification |
| Project | CONTRIBUTING.md | Change/review/evidence workflow |
| Project | CHANGELOG.md | Preserved history and documentation snapshot |
| Project | CITATION.cff | Preserved author/version/date metadata |
| Project | SECURITY.md | Existing vulnerability reporting/scope policy |
| Project | ROADMAP.md | Ten source-grounded proposals through 2027-11-18 |
| Navigation | INDEX.md | Canonical navigation |
| Developer | ARCHITECTURE.md | Execution/data boundaries |
| Developer | SETUP_AND_REPRODUCIBILITY.md | Supported/observed environments and commands |
| Developer | API_CLI_AND_INTERFACES.md | Call/input/output/failure contracts |
| Developer | WORKED_EXAMPLES_AND_LABS.md | Runnable native examples and bounded arithmetic |
| Developer | TROUBLESHOOTING.md | Recover from specific contract failures |
| Science | EQUATIONS_AND_DERIVATIONS.md | Implemented signs, units, control/coolant/numerical derivations |
| Science | PARAMETERS_AND_SYMBOLS.md | Synthetic defaults, active fields and metric meanings |
| Science | ASSUMPTIONS_AND_LIMITS.md | Physical, numerical and evidence validity boundaries |
| Maintainer | VERIFICATION_EVIDENCE_LEDGER.md | Current/source/historical/unavailable statuses |
| Maintainer | CI_CD_AND_RELEASE_PLAYBOOK.md | Actual configured triggers, policy and delivery gates |
| Maintainer | TOOLCHAIN_AND_DEPENDENCY_MATRIX.md | Dependencies, capabilities and provenance limits |
| Maintainer | FAILURE_MODES_AND_TECH_DEBT.md | Eleven documented source findings |
| Maintainer | DOCS_MAINTENANCE_RUNBOOK.md | Canonical updates, renderer and review procedure |
| Owner | ADR-0000-INDEX.md | Historical decisions and proposed decisions |
| Owner | GOVERNANCE_AND_SCOPE.md | Authority and truthful-claim boundaries |
| Owner | BUS_FACTOR_RECOVERY_RUNBOOK.md | Successor recovery, reproduction and delivery |
| Owner | PORTFOLIO_INTEGRATION.md | This public project’s implemented/proposed exchange boundaries |
Supporting catalogues
- SOURCE_EVIDENCE.md: complete acquisition/accounting scope and reviewed-source links.
- API_REFERENCE.md: all 47 callable MATLAB file functions, script and test-method list.
- BROWSER_MODEL_CATALOG.md: all browser surfaces, exports and model boundaries.
How to read the evidence
Source definitions are not runtime outcomes. The current tree defines 40 test methods; an older stored record says 37 passes. The source-head provider snapshot has six success checks and one skip, while local native and GUI execution remain unavailable. Follow the evidence ledger for exact identities and limits. Proposed roadmap items are future work, not hidden implementation changes. This package preserves scientific/application/test/config/workflow/result/license bytes and adds only documentation, narrow navigation and isolated documentation helpers.
Canonical file: docs/INDEX.md · Back to guide navigation
Image source: ThermoWeave Spatial Battery Lab: original vector system illustration
ThermoWeave models a synthetic battery assembly with thermal graphs, spatial boundaries, control, and deterministic fault studies. This companion introduces a one-node balance before the native multi-node experiments.
Native-source lesson guide · Offline interactive lab · Lesson configuration · Configuration schema
Original project interactive view
Previous animations
Open the previous-animation gallery · Local gallery
Earlier animated artwork, waveform demos, and original interactive experiences are linked alongside the current animations.
Your first interactive result
- Download or clone this repository and open
docs/index.htmlin a modern browser. - Select Module 1, apply its preset, and compare the declared checkpoint with the plotted result.
- Change one slider, inspect the model assumptions, then export the configuration or telemetry for your notes.
The browser lab runs offline with no packages, accounts, or live data feeds. Its numbers are deterministic teaching simulations. Each checkpoint states its model time and tolerance; passing it demonstrates agreement with that model, not field calibration or production readiness.
Four-module learning path
| Module | Investigation | Approximate time |
|---|---|---|
| 1. Identify one node’s energy balance | Read a local thermal balance before adding graph interfaces. | 12 min |
| 2. Change the boundary conductance | Explain how a boundary parameter affects both steady rise and transient response. | 15 min |
| 3. Locate the limit of a pack average | Identify why a single temperature cannot reveal spatial hot spots. | 18 min |
| 4. Design a reproducible graph experiment | Carry a scalar intuition into a native study with explicit topology and evidence checks. | 18 min |
Who this is for: Battery thermal researchers and MATLAB learners studying topology, cooling boundaries, and numerical verification.
Continue into the implementation
Explore or run the source
MATLAB R2024a+ for the graph core; the source records historical R2026a Update 4 evidence. Optional advanced control and Simscape features have separate product/gate requirements.
matlab -batch "startup; result = runDemo;"
matlab -batch "startup; buildtool test"
matlab -batch "startup; run3DStudy"
These commands come from the audited source revision. Runtime requirements and the project's own validation limits are documented below; the standalone browser lab does not execute these commands.
The detailed project guide below remains the source for installation, supported features, licences, and scientific limits. The browser equations and laboratory settings do not change the original application or numerical engine.
Project documentation, installation, attribution, and existing validation
ThermoWeave
Adaptive spatial electrothermal digital twin for battery cooling design
Image source: Local tests: 37/37 Image source: MATLAB: R2024a+ Image source: License: MIT Image source: Source: published Image: Documentation Pages
ThermoWeave is an independent MATLAB implementation for exploring how spatially and temporally varying cooling boundaries affect a synthetic multi-cell assembly. Its portable graph core supports deterministic 2-D and 3-D Cartesian lattices without Simscape Battery; an optional adapter is kept behind explicit product, library-policy, and generated-model gates.
Interactive project site · GitHub repository
Image source: ThermoWeave animated vectorized thermal field
The screenshot above is generated by tools/generateArtifacts.m from the canonical result structure. Default local demo evidence on MATLAB R2026a Update 4: peak temperature 298.230683 K, normalized energy-accounting residual approximately 4.39e-15. These values describe a synthetic demonstration, not real-cell predictive accuracy.
Why this exists
A pack-average temperature can conceal the boundary gradients, coolant warming, contact dispersion, and local faults that shape cooling decisions. ThermoWeave makes those spatial effects inspectable in a small model whose equations, units, topology, solver settings, controller constraints, random seeds, and limitations are source controlled.
Distinct engineering contributions
- configuration-generated rectangular, staggered, cuboid, and stacked-staggered thermal graphs with axis-specific conductances and six-face masks;
- one solver interface for scalar, per-cell vector, zonal, and finite-capacity coolant-propagation boundaries;
- transparent Joule plus optional signed entropic heat with SOC evolution;
- deterministic bounded/rate-limited zonal control and an observable optimization fallback;
- seeded variability and fault events covering resistance/contact dispersion, restriction or pump loss, sensor bias/dropout, elevated heat, current imbalance, and stuck actuators;
- a canonical
thermoweave.result/v1schema shared by tests, MATLAB UI, artifacts, and the data-driven website; - explicit optional Simscape skip semantics rather than a fabricated integration claim.
Architecture
flowchart LR
C["Validated JSON/config"] --> T["Generated graph + parameters"]
T --> S["Electrothermal ODE solver"]
B["Scalar / vector / zonal / coolant boundary"] --> S
K["Baseline / optional advanced control"] --> B
S --> R["thermoweave.result/v1"]
R --> Q["Tests + metrics + manifests"]
R --> U["MATLAB dashboard"]
R --> W["Static portfolio site"]
X["Optional Simscape adapter"] --> R
The cell energy balance is
$$ C_i\dot T_i = Q_{\mathrm{gen},i}
- \sum_j G_{ij}(T_i-T_j)
- G_{b,i}(T_i-T_{b,i})
- G_{c,i}(T_i-T_{c,i}). $$
Temperatures are kelvin internally, current is positive on discharge, and heat flow is positive into a cell. The complete derivation, coolant balance, controller objective, units, and limitations are in docs/model.md.
Quick start
Requires MATLAB R2024a or newer for the core.
startup
result = runDemo;
thermoweave.visualization.dashboard(result)
Run the mandatory suite and generate the same lightweight artifacts used by this README and the website:
buildtool test
generateArtifacts
Product matrix
| Capability | Requirement | Published evidence |
|---|---|---|
| Graph core, baseline control, scenarios, JSON export | MATLAB R2024a+ | Tested on R2026a Update 4 |
| Build reports and enhanced coverage | MATLAB Test where available | Installed and exercised locally |
| Advanced quadratic controller | Optimization Toolbox | Installed; transparent fallback retained |
| MPC-specific extension | Model Predictive Control Toolbox | Installed; not required by the portable core |
| High-fidelity adapter | Simulink + Simscape + Simscape Battery | Products installed; structural generation policy-gated |
| Static case-study page | Modern browser | Pages deployment succeeded on 2026-08-14 at e181bd5 |
Experiments and examples
The predeclared E0–E10 matrix is in docs/scenarios.md. Five direct entry points are included:
compareBoundaryModes
runAdaptiveCooling
runMonteCarloStudy(20)
compareCoreAndSimscape
run3DStudy
The independently authored E10 study uses a 3x4x3 graph with 36 thermal nodes and 75 interfaces. It compares three declared through-layer conductances under the same synthetic boundary field and exports exact scenario hashes, CSV, JSON, and figures. In this constructed case, increasing from 0.10 to 0.75 W/K reduces the final layer-mean spread from 4.589 K to 2.450 K. This is a sensitivity result for the stated assumptions, not measured battery accuracy.
The generated website bundle includes actual scalar, vector, zonal, coolant-restriction, and sensor-fault result records under artifacts/web-data/. Every displayed metric is read from that exported JSON and is tied to a scenario hash.
Testing and CI
The published baseline records a local class-based test run of 37/37, with 0 failed and 0 incomplete. That run covered strict configuration failure modes, equilibrium, relaxation, energy accounting and solver convergence, uniform scalar/vector equivalence, graph relabelling, coolant conservation and flow reversal, fault targeting, per-segment conductance, baseline/advanced controller bounds and a predeclared synthetic benefit, multi-interface variability, deterministic result export, schema mapping, honest Simscape status, and the 3-D topology/reduction/rendering contracts. This historical count does not include later source changes or newly added tests.
results = runtests("tests", IncludeSubfolders=true)
buildtool
Core CI uses official MATLAB Actions on R2024a. At source e181bd54dd7b24b6ea373e747770481d3ba19f16, the Core CI run and Documentation Pages run completed successfully on 2026-08-14. These are historical results for that source revision; the Pages badge follows main and is a workflow-status indicator, not a live-site availability check. Full Simscape integration is manual and targets a licensed self-hosted runner labelled thermoweave-simscape. See docs/validation.md for the numerical evidence and remaining validation work.
Repository map
config/ Reproducible JSON scenarios, including the 3-D study
src/+thermoweave/ Portable package implementation
simscape/ Optional product- and policy-aware adapter
examples/ Boundary, control, Monte Carlo, adapter workflows
tests/ Unit, integration, and regression tests
artifacts/ Lightweight generated figures, manifests, web data
docs/ Technical docs and animated static case study
tools/ Artifact, research-figure, documentation, and release entry points
.github/workflows/ Core, integration, Pages, and release automation
Limitations and safety
ThermoWeave is a lumped reduced-order demonstrator with synthetic parameters. It does not model detailed electrochemistry, ageing, phase change, runaway chemistry, or certified safety functions. It is not a design approval tool, production controller, or substitute for test data. Controller benefits are scenario-specific. No measured held-out validation has been performed.
Inspiration and related documentation
The project is an independent implementation informed only by high-level thermal-network concepts in official MathWorks documentation, including inter-cell thermal paths and scalar/vectorized thermal boundaries. No source code, prose, equations, diagrams, screenshots, numerical scenarios, topology counts, model hierarchy, page structure, or example-specific names were copied. MathWorks did not sponsor or endorse ThermoWeave. See PROVENANCE.md and THIRD_PARTY_NOTICES.md.
Citation, contribution, and roadmap
Citation metadata is in CITATION.cff. Contributions should follow CONTRIBUTING.md, the security policy in SECURITY.md, and the evidence rules in the project charter. Planned work is recorded in ROADMAP.md.
Source-backed reference review — 2026-11-19
The documentation index and reading handbook cover Developer, Maintainer and Owner workflows at source 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a. Start with setup, native and browser contracts, equations and units, and the evidence ledger.
The preserved 37/37 badge and R2026a outputs above are historical. Current source defines 40 test methods; that count is not a new native execution result. The dated provider snapshot reports success for the pinned source's R2024a core job, with candidate CI/merge/publication handled separately. MATLAB/Octave and actual browser interaction were not run locally for this documentation package.
The main browser lesson evaluates one thermal mass; native MATLAB evolves a multi-cell graph. Its residualW is net heating, while the native residual is an algebraic RHS consistency check. Neither establishes measured battery fidelity. Current-source clarifications for controller timing, deadband units, variability and export timebase are in known debt. The dated twelve-month roadmap gives follow-up acceptance criteria without claiming those changes are implemented.
Run examples from the repository root with startup; functions in examples/ additionally require addpath(fullfile(pwd,'examples')). Use thermoweave.simulate([]) for full defaults or runDemo() for its shortened demo. Existing attribution, release metadata, scientific code, scenarios, results and workflow guards remain unchanged.
Canonical file: README.md · Back to guide navigation
Contributing to ThermoWeave
Thank you for helping improve ThermoWeave. Contributions should preserve the project's scope: this is a synthetic, reproducibility-focused demonstrator, not a calibrated cell predictor, safety controller, or certification artifact.
Before opening a change
- Read
PROJECT_CHARTER.md,ARCHITECTURE.md,PROVENANCE.md, andTHIRD_PARTY_NOTICES.md. - Keep public claims tied to reproducible evidence. Do not add real-cell, safety, lifetime, or performance claims without a declared method and review.
- Keep the reduced-order core portable to MATLAB R2024a or newer. Treat Simscape Battery as optional and report product-gated skips honestly.
- Do not commit credentials, license files, generated Simscape libraries, caches, or machine-specific paths.
Local workflow
Work from the repository root and use a supported MATLAB release. Run startup before invoking source entry points. Use the task names in buildfile.m; the normal core check is:
buildtool test
Run the deterministic demo and any scenario-specific checks required by the change. Review generated manifests for release, product, seed, solver/tolerance, and hash metadata. Keep generated outputs in the ignored directories described by .gitignore.
Optional Simscape integration belongs on a licensed runner labelled self-hosted, thermoweave-simscape and must remain behind the manual integration workflow. A missing product is a recorded skip, not a reason to fabricate output.
Change guidelines
- Preserve the contracts in
ARCHITECTURE.md, especially column-vector ordering, units, result schema, and failure semantics. - Add or update tests for changed equations, units, dimensions, boundary modes, controller limits, faults, and result metadata.
- Update scenario, provenance, notice, reproducibility, changelog, or roadmap documentation when behavior or dependencies change.
- Keep commits focused and explain any intentional compatibility or numerical change.
- Use pull requests for review. CI must pass, and changes affecting scientific claims or release status need an evidence-oriented review.
Pull request checklist
Documentation evidence workflow — 2026-11-19
Use docs/INDEX.md for canonical Developer/Maintainer/Owner material. New claims require immutable source links, exact units/shapes/failure semantics, and a clear distinction between source inspection, actual execution, historical results and proposals. Do not relabel an old native report after editing documentation. Keep public material limited to this repository's approved public evidence.
For the static reading guide, edit Markdown/CFF, run python docs/reference/build_reference.py, then python docs/reference/build_reference.py --check. node docs/reference/check_lesson.cjs checks the existing pure teaching model's eight fixtures; python scripts/portfolio/validate_guide.py checks the existing source-linked guide. These do not replace native tests or supported-browser review. Maintenance runbook.
The independent reviewer must inspect the exact candidate and permitted diff. The author cannot certify independent QA. Native-science changes require their own focused reproduction and review; documented defects in a docs-only change are proposals until implemented separately. Use legitimate authorship/signature and current protected-branch rules for integration; unavailable policy/check evidence stays unresolved.
Canonical file: CONTRIBUTING.md · Back to guide navigation
Changelog
[0.2.0] - 2026-08-14
Added
- Backward-compatible 3-D cuboid and stacked-staggered graph topologies with layer coordinates, axis-labelled conductances, and six-face masks.
- A canonical 3x4x3 synthetic E10 scenario, 3-D renderer, deterministic sensitivity pipeline, CSV/JSON evidence, and two scientific figures.
- Six automated 3-D tests; the complete local MATLAB R2026a suite now passes 37/37.
- A journal-formatted manuscript source, DOCX, PDF, bibliography, literature review, originality matrix, and submission checklist.
Limitations
- The 3-D study is synthetic and has no measured-cell or independent high-fidelity validation.
- Structural Simscape generation remains policy-gated; no Simscape integration claim is made.
All notable changes to ThermoWeave are recorded here. Release notes describe evidence-backed behavior and distinguish local verification from optional-product status.
[Unreleased]
Fixed
- Align current, heat, cooling, and boundary history samples with their declared result times and states.
- Include configured external heat in the energy-residual balance.
- Validate the electrical resistance correction using the same state-of-charge dependence as heat generation.
Added
- Initial repository environment, contribution, security, licensing, and citation records.
- Reproducibility guidance and guarded GitHub Actions for core CI, optional Simscape integration, Pages documentation, and semver-tagged packaging.
Verification
- Local baseline: MATLAB R2026a Update 4 on Windows 11 AMD64.
- Portable CI target: MATLAB R2024a or newer for the reduced-order core.
Notes
- Simscape integration remains optional and manual, and must report an explicit skip when the required product is unavailable.
- No public release tag has been created by this initial repository record.
Documentation working-tree review — 2026-11-19
This is a documentation snapshot, not a new semantic release or tag.
- Added canonical Developer, Maintainer and Owner guides, source/interface inventories, explicit scientific derivations and a proposed twelve-month roadmap.
- Added a script-free reference reading view and narrow navigation from the existing site, plus a bounded offline teaching-fixture checker.
- Clarified current 40 test-method definitions versus historical 37-test results, native residual/control-clock/deadband/variability limits, and the separation of browser teaching calculations from native graph results.
- Preserved all scientific/application/model/test/scenario/workflow/dependency/license and generated-result content. Kept original CFF author/version/date and security policy.
Actual author check receipts, independent QA, candidate CI, merge and deployed-content outcomes are separate records; this entry does not claim they are all complete.
Canonical file: CHANGELOG.md · Back to guide navigation
Citation metadata
Existing CFF, preserved verbatim:
cff-version: 1.2.0
message: "If ThermoWeave contributes to your work, please cite this repository and the exact release or revision used."
title: "ThermoWeave"
abstract: >-
An independently engineered MATLAB platform for studying spatially and
temporally varying thermal boundaries in a synthetic multi-cell battery
assembly.
authors:
- name: "ThermoWeave contributors"
version: "0.2.0"
date-released: "2026-08-14"
license: MIT
keywords:
- battery thermal modeling
- electrothermal simulation
- MATLAB
- reproducibility
- three-dimensional thermal graph
Canonical file: CITATION.cff · Back to guide navigation
Security policy
ThermoWeave is an early-stage research demonstrator. It is not a safety-certified controller and must not be connected to a live battery or used to make safety-critical decisions.
Reporting a vulnerability
Please do not publish exploitable details, credentials, license files, private paths, or personal data in a public issue or pull request. If private GitHub reporting is enabled for the repository, use a GitHub Security Advisory. Otherwise, contact a project maintainer through the repository's authenticated administrative channel and request a private security discussion; do not send secrets through an unverified channel.
Include the affected revision, a concise description, impact, reproduction steps that use synthetic data only, and any suggested mitigation. Allow maintainers reasonable time to investigate and coordinate a fix before public disclosure.
Scope and handling
Reports may include code execution, unsafe file handling, path or secret disclosure, dependency/workflow compromise, incorrect release artifacts, and reproducibility or provenance tampering. Scientific model limitations and ordinary numerical disagreements belong in a normal issue unless they create a security consequence.
Maintainers will acknowledge a report when practical, validate it, assign a severity, and document remediation in the changelog or release notes. Do not include credentials in a report; revoke and rotate exposed credentials immediately through the relevant provider.
Supported versions
There is no long-term-supported release line yet. The current default branch and the latest tagged release, when one exists, receive security review. Older revisions may require upgrading before a fix is provided.
Canonical file: SECURITY.md · Back to guide navigation
ThermoWeave roadmap
This roadmap follows the acceptance gates in PROJECT_CHARTER.md. Dates are intentionally omitted until a reproducible scope and owner are available.
Near term: portable core
- Complete the graph electrothermal solver and canonical
thermoweave.result/v1contract. - Add scalar, per-cell, zonal, and coolant-propagation boundary modes with unit and energy-accounting tests.
- Implement bounded baseline control, seeded variability, declared faults, and deterministic demo artifacts.
- Establish MATLAB R2024a core CI and record local R2026a verification separately.
Next: evidence and usability
- Add result manifests, hashes, scenario summaries, and data-traceable visual exports.
- Complete accessibility checks for the static case study and document reduced-motion behavior.
- Publish reproducibility bundles only after fresh-clone, test, provenance, and security gates pass.
Optional integration
- Resolve the custom-library policy for
simscape/. - Add a product-detected Simscape Battery adapter that maps into the canonical result schema.
- Keep integration manual and self-hosted until licensed-product and structural-generation checks are reproducible.
Later release work
- Add an evidence-backed advanced controller behind explicit product and solver gates.
- Re-audit all imported actions, datasets, media, and generated assets before a public semver release.
- Consider authenticated Pages or package publication only after the repository has a configured remote and release owner.
Proposed twelve-month plan: 2026-11-19 through 2027-11-18
This dated proposal supersedes the undated scheduling discussion above without rewriting its history. It is a plan for future work, not a claim that the listed changes are implemented or staffed. Owner roles and effort ranges are planning assumptions. The native graph/scalar-vector-zonal-coolant core, bounded controllers, seeded faults, 3-D topology, historical artifacts and browser lessons already exist; their current behavior/limits are documented in the source-backed guide.
Priorities address evidence and correctness before optional model expansion. P1 means resolve before relying on the affected scientific contract; P2 means strengthen reliability/maintainability; P3 means exploratory scope. No roadmap item promises measured accuracy, cost savings or a release date. Every item has source evidence, dependencies and a verifiable acceptance gate.
| Horizon | Proposed dates | Focus | Items |
|---|---|---|---|
| Now | 2026-11-19–2026-12-31 | Fresh native receipts, control semantics, variability defect | R01–R03 |
| Next | 2027-01-01–2027-03-31 | Independent energy evidence, faults/zero flow, export contracts | R04–R06 |
| Later | 2027-04-01–2027-06-30 | Educational provenance, browser review, optional model decision | R07–R08 |
| Horizon | 2027-07-01–2027-11-18 | Measured-data protocol and release/recovery rehearsal | R09–R10 |
R01 — Establish exact-revision native evidence
Proposed: 2026-11-19–2026-12-31 (Now); priority: P1; owner role: Scientific maintainer + release maintainer; effort: 3–5 working days; confidence: High.
Why this matters: The stored report records 37 tests at an earlier revision while the inspected source defines 40 methods. Fresh receipts prevent historical values from being mistaken for candidate verification.
Proposal: Run a clean supported MATLAB core checkout, archive its command/products/config/results and test/skips/coverage, then define report freshness using source/input identities rather than only mtimes.
Evidence: artifacts/reports/verification.json:1–1 tools/writeVerificationReport.m:1–95 buildfile.m:1–102 .github/workflows/core-ci.yml:1–34
Dependencies: None; prerequisite for the dependent native work.
Acceptance criteria:
- Actual test counts, skips, coverage and source SHA are recorded from fresh execution; no count is copied from documentation.
- A changed configuration/tool input cannot reuse an older report without an explicit historical label.
- Documentation-only changes remain separate from generated scientific artifact refreshes.
Verification: Execute the current core workflow task on the exact candidate and inspect its JUnit/coverage/artifacts; independently compare receipt/source identities.
Risks: Lawful MATLAB runtime and CI capacity must be available; regenerated artifacts can differ by release/renderer.
Unresolved assumptions: R2024a remains the supported core floor unless a separately reviewed compatibility decision changes it.
R02 — Make timing and deadband semantics explicit
Proposed: 2026-11-19–2026-12-31 (Now); priority: P1; owner role: Control maintainer; effort: 4–7 working days; confidence: High.
Why this matters: Output intervals currently schedule controller updates and the named kelvin deadband is subtracted after gain, so benign-looking configuration changes can alter feedback or threshold meaning.
Proposal: Choose a backward-compatible or versioned control-clock/deadband contract, including zone weights, final short intervals and rate limiting; implement only after the behavior decision.
Evidence: src/+thermoweave/simulate.m:1–102 src/+thermoweave/+control/baselineController.m:1–17 tests/integration/TestSimulationIntegration.m:1–205
Dependencies: R01
Acceptance criteria:
- A test distinguishes output sampling from the chosen control clock and covers a nondivisible final interval.
- A dimensional deadband example with two gains verifies the agreed threshold behavior.
- Old/new scenario changes and any migration instructions are quantified and reviewed.
Verification: Native closed-loop tests with fixed physics and independently chosen sample/control periods, plus source/equation review.
Risks: Numerical baselines and controller benefit can change; preserving undocumented behavior may conflict with clearer units.
Unresolved assumptions: Owner must decide whether current semantics need compatibility preservation or a versioned correction.
R03 — Repair topology/variability contracts
Proposed: 2026-11-19–2026-12-31 (Now); priority: P1; owner role: Thermal topology maintainer; effort: 2–4 working days; confidence: High.
Why this matters: The rectangular multi-layer variability helper counts one layer while the topology builds all layers. The R0CV name also obscures its use as lognormal sigma.
Proposal: Add the failing rectangular 3×4×3 variability regression, derive draw count from the chosen graph, and document/decide the distribution parameter naming without silently changing distributions.
Evidence: src/+thermoweave/+uncertainty/applyVariability.m:1–36 src/+thermoweave/+thermal/buildTopology.m:1–178 tests/unit/TestTopology3D.m:1–79
Dependencies: R01
Acceptance criteria:
- A rectangular 3×4×3 variability run has exactly 75 edge scales and completes on the supported native runtime.
- One-layer/cuboid/staggered fixtures retain declared ordering, deterministic seed behavior and positive-conductance requirements.
- The lognormal sigma versus actual CV distinction is reflected in config/API documentation and tests.
Verification: Native topology/variability tests; independent edge enumeration and repeated-seed comparison.
Risks: Changing draw order can change scenario hashes and downstream random draws.
Unresolved assumptions: Decide whether legacy seeded draws must remain byte-compatible or require a versioned distribution contract.
R04 — Add independent energy and convergence evidence
Proposed: 2027-01-01–2027-03-31 (Next); priority: P1; owner role: Scientific verification reviewer; effort: 6–10 working days; confidence: High.
Why this matters: The reported residual is computed from the same RHS and cannot bound integration error or omitted fluxes; normalization becomes fragile near zero electrical heat.
Proposal: Define an independent integrated energy defect with explicit units/scales, expose sign-separated flux traces, and refine tolerances/time grids while holding the agreed control schedule fixed.
Evidence: src/+thermoweave/simulate.m:1–102 tests/integration/TestSimulationIntegration.m:1–205 docs/model.md:1–136
Dependencies: R01, R02, R03
Acceptance criteria:
- Insulated, externally heated, scalar-boundary and coolant fixtures report independent energy defect in J with declared normalization.
- A deliberate sign/flux omission is detected by an oracle that does not reuse the same assembled RHS expression.
- A refinement study reports error trends and discontinuity alignment rather than asserting a universal solver tolerance.
Verification: Compare analytic lumped cases, independently integrated fluxes and multiple solver/tolerance settings; retain all run receipts.
Risks: Quadrature and discontinuities can dominate a defect; careless normalization can hide errors.
Unresolved assumptions: Select tolerances from dimensional error targets and expected numeric scales, not historical tiny residual values.
R05 — Specify zero-flow, fault and active-field behavior
Proposed: 2027-01-01–2027-03-31 (Next); priority: P2; owner role: Coolant and input-contract maintainer; effort: 5–8 working days; confidence: Medium.
Why this matters: Pump-loss can enter an epsilon-regularized zero-flow regime, active boundary fields override ambient variability, and empty/global targets are not handled uniformly.
Proposal: Declare supported zero-flow physical semantics or an explicit unsupported state; define active configuration fields, target domains, fault timing and declaration-versus-activation evidence.
Evidence: src/+thermoweave/+coolant/evaluate.m:1–68 src/+thermoweave/+uncertainty/applyFaults.m:1–34 src/+thermoweave/+config/validateConfig.m:1–392 src/+thermoweave/simulate.m:1–102
Dependencies: R01, R02, R03
Acceptance criteria:
- Zero-flow with positive/zero segment conductance has explicit expected behavior and no fabricated physical interpretation.
- Empty, malformed and out-of-range targets have consistent documented rejection or expansion for each fault family.
- Inactive/overridden parameter changes are either rejected, warned or documented through verified examples.
Verification: Table-driven native invalid-input and boundary/fault edge-case tests; independent static coolant energy checks.
Risks: A zero-flow physical model may require a new coolant state rather than a numeric guard tweak.
Unresolved assumptions: The owner must choose whether unsupported cases should reject input or receive a separately validated model extension.
R06 — Version result/export and consumer contracts
Proposed: 2027-01-01–2027-03-31 (Next); priority: P2; owner role: Interface maintainer; effort: 4–6 working days; confidence: High.
Why this matters: Downsampled arrays can omit final time while retaining full-grid metadata and metrics, and legacy playback only checks a subset of its payload.
Proposal: Specify integer stride, terminal sample policy, byte counts, sampled/full-resolution metadata, and minimum consumer validation while preserving or explicitly migrating schema versions.
Evidence: src/+thermoweave/+results/exportJSON.m:1–12 src/+thermoweave/+results/makeResult.m:1–10 tools/exportWebData.m:1–72 docs/app.js:1–207
Dependencies: R01
Acceptance criteria:
- Invalid/noninteger stride is rejected and endpoint inclusion follows the documented rule.
- Every exported history aligns with its declared timebase; metrics retain explicit full-resolution provenance.
- A consumer rejects missing/empty/nonfinite/misordered required fields and distinguishes hash syntax from verified content identity.
Verification: Native export fixtures plus an independent JSON consumer; Unicode byte-count and 12/36-node cases.
Risks: Strict consumers may reject historical files; schema changes need migration examples.
Unresolved assumptions: Decide whether to extend v1 compatibly or introduce a v2 with explicit provenance fields.
R07 — Refresh educational provenance and actual browser review
Proposed: 2027-04-01–2027-06-30 (Later); priority: P2; owner role: Documentation + accessibility maintainer; effort: 5–8 working days; confidence: Medium.
Why this matters: Existing learning catalogues point to older snapshots and browser DOM behavior has not been exercised by this author. Scalar teaching and native playback need visible provenance boundaries.
Proposal: Refresh catalogues only from reviewed source, preserve historical identities explicitly, and perform desktop/mobile/keyboard/formula/download/storage checks on the actual deployed routes.
Evidence: docs/lesson-config.json:1–320 docs/native-lessons.json:1–353 docs/portfolio/lesson-config.json:1–373 docs/index.html:1–475 docs/app.js:1–207
Dependencies: R02, R04, R06
Acceptance criteria:
- Each catalogue has a coherent pinned source/config identity and no inaccurate command path.
- All eight scalar fixtures remain derived from declared inputs; native claims use native evidence.
- A supported-browser receipt covers responsive reading, focus/keyboard, reduced motion, fallback/error states and download/storage behavior with exact deployed identity.
Verification: Existing guide validator, bounded arithmetic helper, link checks and actual browser/accessibility testing with recorded outcomes.
Risks: Browser/platform behavior differs and old personal learning state may require migration.
Unresolved assumptions: Supported browser/device and assistive-technology targets need an owner-approved test matrix.
R08 — Decide and implement the optional model gate
Proposed: 2027-04-01–2027-06-30 (Later); priority: P2; owner role: Model owner + licensed-runner maintainer; effort: 2–4 weeks; confidence: Medium.
Why this matters: The optional builder currently reports prerequisites but creates no model; no generated model is tracked and mapping is not independent fidelity evidence.
Proposal: Resolve library policy, choose whether to build/maintain a model, inspect dependencies/callbacks and define required mapped signals plus a bounded comparison protocol.
Evidence: simscape/buildThermoWeaveModel.m:1–105 simscape/runSimscapeScenario.m:1–40 simscape/mapSimscapeResults.m:1–132 DECISIONS.md:1–83 .github/workflows/simscape-integration.yml:1–28
Dependencies: R01, R04, R06
Acceptance criteria:
- Owner decision records reusable-library policy and lawful licensed runner/product availability.
- If implementation proceeds, a generated-model manifest is validated, the actual model compiles/runs, and complete mapped fields/residual provenance are checked.
- Absent prerequisites remain explicit skips; comparison metrics do not call either implementation ground truth.
Verification: Manual licensed integration with actual model/manifest/source hashes, compile/run logs and independently reviewed comparison limits.
Risks: License/runner/library availability and structural modeling effort may exceed this horizon.
Unresolved assumptions: This is optional and must not block a core-only release when mandatory gates are independently met.
R09 — Design a measured-data validation program
Proposed: 2027-07-01–2027-11-18 (Horizon); priority: P3; owner role: Scientific owner + data/provenance reviewer; effort: 2–3 weeks for protocol; execution unestimated; confidence: Low.
Why this matters: All existing physics parameters/studies are synthetic, so predictive accuracy cannot be responsibly claimed.
Proposal: Evaluate data access and rights, define instrumentation/calibration/uncertainty, parameter identification and held-out validation before choosing whether to expand beyond a demonstrator.
Evidence: PROJECT_CHARTER.md:1–43 PROVENANCE.md:1–60 manuscript/SUBMISSION_CHECKLIST.md:1–27
Dependencies: R04, R05, R08
Acceptance criteria:
- A written go/no-go protocol identifies lawful data sources, measured quantities, uncertainty, model domain and held-out evaluation.
- No synthetic result is relabeled measured and no unsupported accuracy/lifetime/safety claim is published.
- Any proposed implementation is separately scoped after protocol/data feasibility review.
Verification: Independent scientific/provenance review of the protocol; actual data execution remains conditional and separately evidenced.
Risks: Data acquisition, rights and identifiability may make validation infeasible; model discrepancy may dominate fit.
Unresolved assumptions: No measured dataset, lab access, budget or calibration effort is promised by this roadmap.
R10 — Rehearse recovery and a release with defensible evidence
Proposed: 2027-07-01–2027-11-18 (Horizon); priority: P2; owner role: Release owner + independent reviewer; effort: 4–7 working days; confidence: Medium.
Why this matters: A release needs source/runtime/artifact/claim provenance and current policy; historical CFF version and successful source jobs are insufficient.
Proposal: Run a fresh-maintainer recovery drill, examine numerical versus archive/render reproducibility, refresh notices/security/citation facts and complete an ordinary guarded release only if the owner authorizes its exact scope.
Evidence: tools/packageRelease.m:1–43 .github/workflows/release.yml:1–60 SECURITY.md:1–19 CITATION.cff:1–18
Dependencies: R01, R04, R06, R07
Acceptance criteria:
- A second maintainer reproduces the core from documented prerequisites with complete hashes and actual statuses.
- Archive, rendered artifacts and numerical results have distinct reproducibility statements and any variability is explained.
- Current branch/review/signature/check policy is satisfied; any tag/release/deployment has observed identities and actual content review.
Verification: Clean-environment recovery, checksum/provenance review, native gates, independent QA and supported-browser deployed-content review.
Risks: Current policy, signer access, product availability or publication checks may block release.
Unresolved assumptions: No new release number, date, tag or deployment is preassigned by this plan.
Decisions and scope beyond this plan
Keep the graph core usable while optional product work is unavailable. A missing measured dataset or unresolved optional model can result in a documented no-go decision instead of fabricated completion. Hardware deployment, safety certification, production control, guaranteed aging/thermal-runaway prediction and commercial support remain outside the current charter. Reassess dates/capacity at each horizon using completed acceptance evidence; do not convert scheduled targets into progress percentages without actual work receipts.
Link accepted decisions in the ADR index, actual checks in the verification ledger, and compatibility changes in the API/equation pages. Roadmap documentation creates no automation, model code, workflow, tag or deployment.
Canonical file: ROADMAP.md · Back to guide navigation
Architecture and execution boundaries
Reviewed on 2026-11-19 against source 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a. ThermoWeave contains a synthetic graph electrothermal model, a one-mass browser lesson, stored browser playback, and an optional Simscape mapping route. Their shared subject does not make their outputs interchangeable. Documentation index · equations.
Native model
startup adds src, simscape and tools to the MATLAB path. runDemo creates a shortened default run when no scenario is supplied; thermoweave.simulate(source) loads and recursively merges a scenario, validates it, draws seeded variability, constructs the topology, advances temperature/SOC and assembles a canonical result. The public wrapper requires a source argument; use [] for defaults. The loader itself also supports no argument. Examples live outside the paths added by startup. startup.m:1–10 runDemo.m:1–11 src/+thermoweave/+config/loadScenario.m:1–31 src/+thermoweave/simulate.m:1–25
The graph contains one thermal mass and one SOC value per cell. Cartesian node order is r + (c-1)*rows + (layer-1)*rows*columns; edges connect immediate axial neighbors. Staggered layouts use a distance-based neighbor rule in each layer and aligned cross-layer edges. The Laplacian is B'*diag(g)*B, with positive edge conductances. Surface masks and coordinates describe the topology; a mask alone does not install a heat boundary. Zones partition contiguous node indices. src/+thermoweave/+thermal/buildTopology.m:1–178
Every output interval computes a sensed zonal command, applies actuator faults, holds that command while ode15s or ode45 integrates, then stores the endpoint. Current, heat and boundary signals are evaluated at each declared sample's state/time. The last row repeats the previous command and evaluates final-state signals. controller.samplePeriod_s is not an independent scheduler here: outputStep_s and the possible shorter last interval set actual update times. Changing output spacing can therefore change closed-loop dynamics. src/+thermoweave/simulate.m:8–59
Dependencies and data flow
| Producer | Consumer | Contract and boundary |
|---|---|---|
| Default configuration plus JSON/struct override | Validator and topology builder | thermoweave.config/v1; resolved synthetic assumptions, not measured calibration |
| Electrical, coolant, graph and fault functions | ODE right-hand side | Node temperature K, SOC fraction, current A; positive heat enters the cell |
| Sensor values and prior command | Baseline or advanced controller | Zone commands in [0,1]; advanced falls back visibly when unavailable or unsuccessful |
| Time histories and topology | Result/metric builders | thermoweave.result/v1, time-by-entity arrays and scalar metrics |
| Native simulations | exportWebData |
thermoweave.web/v1, Celsius presentation arrays and retained metrics |
| Canonical result | MATLAB plots/dashboard/GIF | Presentation changes units to °C; does not rerun physics |
| Markdown/CFF chapter manifest | Reference renderer | Static HTML/MathML; no simulation, deployment or test runner |
The implementations and schemas are linked in the interface catalogue. Native result hashes include resolved configuration and available environment metadata. Hash equality is a reproducibility observation within a declared environment, not a cross-version determinism guarantee. src/+thermoweave/+results/makeResult.m:1–10 tools/exportWebData.m:1–72 src/+thermoweave/simulate.m:85–100
Four reading and interaction surfaces
docs/index.html embeds its lesson JSON and pure JavaScript model. For this repository it selects thermal, a single heat capacity driven by constant heat and conductance. It has no native MATLAB connection. The exported LabSimulation object also contains nine other generic teaching kinds; their presence does not add those domains to the MATLAB core. The page exports 241 analytic samples of the selected model, including parameter columns. docs/index.html:147–337 docs/index.html:338–475
docs/original-index.html uses docs/app.js to fetch stored docs/assets/thermoweave-demo.json. Its drawing layout assumes twelve cells; current native 3-D results contain 36 and require their own visualization route. docs/native-lessons.html filters material cards and copies commands. docs/portfolio/index.html stores personal review/notes in local storage and exports study plans with execution_status: not_executed_by_this_guide; marking a path reviewed is not a scientific test. docs/app.js:1–207 docs/native-lessons.html:114–164 docs/portfolio/index.html:437–468
Optional adapter and ownership
buildThermoWeaveModel is a capability/policy/manifest gate, despite its builder-like name. It does not construct a Simulink model. runSimscapeScenario can open and simulate a supplied generated model only after gates succeed; inspect its origin, callbacks and manifest before that future operation. mapSimscapeResults checks selected canonical shapes and requires an externally supplied residual; mapping does not independently establish conservation or fidelity. No .slx or .mdl file exists in the reviewed canonical tree. simscape/buildThermoWeaveModel.m:1–105 simscape/runSimscapeScenario.m:1–40 simscape/mapSimscapeResults.m:1–132
Science changes need separate review of equations and native tests; documentation changes use the isolated static renderer. Workflows, generated study outputs and all application code are preserved in this documentation package. See governance for the release authority and known debt for source mismatches that this package documents without modifying.
Canonical file: docs/developer/ARCHITECTURE.md · Back to guide navigation
Setup and reproducibility
Use a clean checkout at the revision you intend to test and record git rev-parse HEAD before execution. This guide describes the inspected source; native commands below were not run in this author environment, which has neither MATLAB nor Octave. Historical native evidence and source-head GitHub checks are separated in the evidence ledger.
Environments
| Path | Declared requirement | Observed evidence and limit |
|---|---|---|
| Graph simulation and baseline controller | MATLAB R2024a or newer | Source CI config targets R2024a; saved source-head provider metadata reports success, not a local rerun |
| Advanced controller | Optimization Toolbox quadprog |
Missing/failed solver produces a baseline fallback; MATLAB alone still runs the baseline |
| Simscape comparison | Simulink, Simscape, Simscape Battery plus resolved library policy and model | No generated model tracked; local invocation not run |
| Historical desktop outputs | R2026a Update 4 on Windows 11 | Stored 2026-08-14 report, earlier revision; preserved history |
| Browser analytic lab | Modern JavaScript browser | Local pure arithmetic can be checked in Node; no visual/keyboard runtime verification performed here |
| Documentation handbook | Python 3.11+ and Pandoc used for this package | Build is offline; generated HTML needs no JavaScript |
Source requirements: ENVIRONMENT.md:1–40 .github/workflows/core-ci.yml:1–34 src/+thermoweave/+control/advancedController.m:1–60 simscape/buildThermoWeaveModel.m:1–105.
Core setup and first result
From the repository root in MATLAB:
startup
result = thermoweave.simulate([]);
disp(result.metrics)
For a faster entrypoint, result = runDemo(); shortens defaults to 30 seconds. A file scenario remains its declared duration:
startup
result = thermoweave.simulate(fullfile('config','baseline.json'));
thermoweave.visualization.renderFigure(result, Visible="on");
The callable examples require an extra path, because startup does not add examples:
startup
addpath(fullfile(pwd,'examples'))
result3d = run3DStudy();
compareCoreAndSimscape.m is a script, rather than a function; read the optional-model gate before running it. Sources: startup.m:1–10 runDemo.m:1–11 examples/run3DStudy.m:1–9 examples/compareCoreAndSimscape.m:1–17.
Native checks and artifact generation
startup
buildtool test
The test task depends on check and writes JUnit/coverage files under results/. coverage is an additional advisory task: it reports coverage below 80% without failing that task. The default build selects check/test/coverage. buildtool artifacts, buildtool docs and buildtool package have broader side effects, regenerating tracked scientific presentation artifacts and creating release files; run them in a disposable checkout and review the diff. The integration task selects only tests/integration, containing TestSimulationIntegration and Test3DStudy for the core simulation and 3-D results. The optional adapter status and mapper checks are in tests/regression/TestRegressionContracts.m, included by the full test task. The adapter status check accepts explicit skip statuses. The integration task alone does not invoke the adapter or enforce its product, library-policy and generated-model gates; it is not proof that a Simscape model ran. buildfile.m:1–102 tests/regression/TestRegressionContracts.m:76–110 tests/integration/TestSimulationIntegration.m:1–13 tests/integration/Test3DStudy.m:1–13 tools/generateArtifacts.m:1–54 tools/packageRelease.m:1–43
Reproduction receipt
Keep the command, UTC observation time, source commit and dirty state, MATLAB/product versions, OS, input and resolved configuration hashes, seed, solver/tolerances, actual time grid, topology order, result schema and artifact hashes. Keep actual test counts and skips separate from test definitions. Preserve the complete result before downsampling; compare temperature/SOC and metrics under a declared tolerance. The current export can omit the last sample when stride does not divide the grid, and retains full-resolution metrics and metadata.timeBase_s. src/+thermoweave/+results/exportJSON.m:1–12 src/+thermoweave/simulate.m:85–100
Resolved thermalCapacity_J_per_K drives the ODE directly: changing mass_kg or specificHeat_J_per_kgK alone does not recompute it. Scalar/vector mode uses boundary.conductance_W_per_K; changing the ambient conductance field alone need not affect those modes. Start from defaultConfig, edit the active fields explicitly, then use loadScenario/simulate to validate. src/+thermoweave/+config/defaultConfig.m:1–32 src/+thermoweave/+coolant/evaluate.m:1–28 src/+thermoweave/simulate.m:54–59
Static documentation and browser arithmetic
python scripts/portfolio/validate_guide.py
node docs/reference/check_lesson.cjs
python docs/reference/build_reference.py --check
The first command validates the existing learning-path configuration and selected HTML markers. The second executes only the inspected pure model script and its eight declared thermal checkpoints. The last compares generated reading HTML with canonical Markdown/CFF inputs. None starts MATLAB, opens a generated model, deploys Pages or checks browser layout. To regenerate after editing canonical docs, run python docs/reference/build_reference.py and review only the documentation diff.
The main analytic lab embeds its inputs and can be opened as a local file. Legacy playback fetches a separate JSON file and may need a local HTTP server, for example python -m http.server 8000 --directory docs, then http://localhost:8000/original-index.html. This command is an optional local viewing step, not an observed browser result. docs/index.html:146–150 docs/app.js:182–207
Canonical file: docs/developer/SETUP_AND_REPRODUCIBILITY.md · Back to guide navigation
APIs, commands and data contracts
This guide describes the public call surface of source 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a. All file entrypoints and signatures and browser contracts provide the complete inventories. Runtime availability and actual observations appear in the evidence ledger.
MATLAB entrypoints
| Call | Inputs and result | Failure or side-effect boundary |
|---|---|---|
startup() |
Returns repository root and adds three source paths | Does not add examples; modifies MATLAB path |
runDemo() / runDemo(source, exportPath) |
30 s default demo, or supplied scenario; canonical result | Optional path writes downsampled JSON; no-output call prints a summary |
thermoweave.simulate(source, seed) |
source=[], JSON path or struct; optional seed override; canonical result |
Seed override occurs after loader validation; simulation can raise dimension/solver errors |
thermoweave.run(source, ...) |
Alias of simulate |
Requires source argument in wrapper |
thermoweave.thermal.simulate(...) / integrate(...) |
Forwarding compatibility aliases | Ultimately same solver, not a second implementation |
thermoweave.config.loadScenario(source) |
Deep merges defaults and supplied struct/JSON | Missing file, invalid JSON/type/schema and invalid domain errors |
thermoweave.results.exportJSON(result,path,stride) |
JSON plus hash/path/character-count manifest | Creates directories and writes; use positive integer stride despite weaker validation |
Source: runDemo.m:1–11 src/+thermoweave/simulate.m:1–102 src/+thermoweave/+config/loadScenario.m:1–31 src/+thermoweave/+results/exportJSON.m:1–12.
Configuration
The root schema string is thermoweave.config/v1. Sections include scenario, simulation, layout, cell, thermal, electrical, boundary, controller, variability, faults, metrics. Unknown extra fields survive recursive merging; acceptance by the loader does not mean a field is consumed by the solver. The validator accepts scalar or matching element counts for many cell/zone values and downstream code flattens vectors; older prose saying all row vectors are rejected is stronger than current implementation. src/+thermoweave/+config/loadScenario.m:1–31 src/+thermoweave/+config/validateConfig.m:1–392
Cell count must equal rows × columns × layers. State/thermal/electrical fields are scalar or node-sized where the validator checks that size. Supported layouts are rectangular, staggered, cuboid and stacked-staggered; boundary modes are scalar, vector, zonal and coolant. Controller aliases openloop/ol/none, baseline and advanced/ac are recognized. Current profile is empty, a constant scalar, a vector on implicit second-spaced times, or a time_s/current_A struct using previous-value interpolation/extrapolation. It is not a general per-node time-series matrix contract. src/+thermoweave/+config/validateConfig.m:1–392 src/+thermoweave/simulate.m:63–72
Fault windows include both endpoints. Targets identify cells, edges, zones or coolant segments depending on type. Physical-parameter faults can use an empty target for all elements, while sensor/actuator handlers have narrower target assumptions; use explicit valid targets for those paths. Configured events are logged from declarations, including events outside the simulated window; their presence alone is not proof that an effect occurred or a detector found a fault. src/+thermoweave/+uncertainty/applyFaults.m:1–34 src/+thermoweave/simulate.m:34–48 src/+thermoweave/simulate.m:69–84
Canonical result
Let Nt be stored times, N cells and Z zones. All temperature computation/persisted canonical arrays use K; plotting/export conversion to °C subtracts 273.15. A temperature difference in K has the same magnitude as a difference in °C.
| Field | Shape / units | Meaning |
|---|---|---|
schemaVersion |
string | thermoweave.result/v1 |
time_s |
Nt×1, s |
Output grid plus final duration if required |
state.temperature_K, state.soc |
Nt×N, K / fraction |
Temperature and un-clipped integrated SOC |
boundary.temperature_K, boundary.conductance_W_per_K |
Nt×N, K / W K⁻¹ |
Effective sampled boundary |
control.zoneCommand |
Nt×Z, dimensionless |
Held cooling commands |
signals.current_A |
Nt×1, A |
Mean of per-cell currents; not total pack current |
signals.heatGeneration_W |
Nt×N, W |
Joule plus enabled entropy heat, with heat fault factor |
signals.coolingPowerProxy_W |
Nt×1, W |
Nonnegative net heat-extraction proxy; no pump electrical power model |
metrics |
scalar fields | Sampled extrema, spreads, trapz energy/time and counts |
topology, configuration, metadata, events |
structs | Mapping, resolved inputs, environment/hash record and declarations/fallbacks |
energyResidualNormalized |
scalar | Algebraic RHS consistency normalized by peak individual heat generation |
Source: src/+thermoweave/+results/makeResult.m:1–10 src/+thermoweave/+results/computeMetrics.m:1–24 src/+thermoweave/simulate.m:49–59. The parameter/symbol page defines normalization and the metric limits precisely.
Exported and optional interfaces
exportWebData(outputPath) simulates five declared configurations, downsamples to roughly 90 samples, appends the final time when needed, converts temperature to °C and copies the JSON to docs/assets/. Its thermoweave.web/v1 payload is separate from a raw result JSON. The legacy browser validates selected shape/hash-format fields and assumes 12 cells; it does not recompute a cryptographic payload hash or validate every metric. tools/exportWebData.m:1–72 docs/app.js:166–207
Simscape mapping accepts a struct or Simulink.SimulationOutput containing thermoweaveRaw, with finite increasing time, Nt×N temperature/SOC, Nt×1 current and a nonnegative finite residual. Several omitted optional arrays become NaN/zero defaults; optional boundary/heat arrays are shape checked without equivalent finite-value checks. MAPPED_NOT_GROUND_TRUTH metadata is deliberate. simscape/mapSimscapeResults.m:1–132
There is no repository HTTP service, database migration CLI, container entrypoint or native C/Python binding in the canonical tree. Python/PowerShell tooling includes a manuscript builder and the learning-guide validator; their command surfaces are indexed with their execution limits. No extra provider or integration is inferred from package labels.
Canonical file: docs/developer/API_CLI_AND_INTERFACES.md · Back to guide navigation
Worked examples and labs
Examples here keep mathematical expectation, observed arithmetic and native execution separate. MATLAB snippets are runnable from a configured checkout but were NOT_RUN locally during this documentation pass. The pure browser fixture check is separately executable with Node and does not validate the native model. Setup · equation derivations.
One thermal mass: an arithmetic example
The configured first lesson uses heat input 600 W, conductance 30 W/K, thermal capacity 12000 J/K and ambient 20 °C. Its time constant is C/h = 400 s, or 6.6666667 min. Starting at ambient, at 10 min:
Temperature is 35.5373968 °C; stored heat is 186.4487616 kJ; removed power is 466.121904 W; net heating is 133.878096 W. The lesson's residualW is that last positive physical rate, not an integration error. These values follow the exact closed form and declared inputs. The two first-module checkpoints use 0.02 absolute tolerance. docs/index.html:257–260 docs/lesson-config.json:1–320
From the repository root:
node docs/reference/check_lesson.cjs
The helper reads the existing pure model script and lesson JSON, requires their embedded configuration to agree, evaluates all four presets and all eight checkpoints, and prints values with their actual pass/fail results. It also records bounds/default behavior. It never executes the DOM script or changes a fixture. A failing checkpoint should be investigated against equations and configuration before changing a tolerance.
Insulated equilibrium: a native contract
startup
cfg = thermoweave.config.defaultConfig();
cfg.simulation.duration_s = 10;
cfg.cell.initialTemperature_K = 300;
cfg.thermal.ambientTemperature_K = 300;
cfg.boundary.temperature_K = 300;
cfg.electrical.current_A = 0;
cfg.controller.mode = 'openloop';
result = thermoweave.simulate(cfg);
drift = max(abs(result.state.temperature_K(:)-300));
assert(drift <= 1e-10)
Every edge starts with zero temperature difference; boundary temperatures match the cells and electrical/active heat is zero. The RHS is therefore zero. This checks equilibrium, shape and sign behavior under one scenario. It does not establish transient accuracy or measured fidelity. The source test additionally checks zero spread/residual/events under its own complete configuration. tests/integration/TestSimulationIntegration.m:15–35
A 3-D field with explicit ordering
startup
cfg = thermoweave.config.loadScenario(fullfile('config','3d-intercell-study.json'));
result = thermoweave.simulate(cfg);
assert(result.topology.nodeCount == 36)
assert(result.topology.edgeCount == 75)
thermoweave.visualization.render3DModule(result, Visible="on");
The scenario is a 3×4×3 cuboid with 12 cells per layer and prescribed boundary levels 298.15, 302.15 and 306.15 K. It uses 8 A per node, open-loop control, gz=0.25 W/K, 120 s duration and 2 s output spacing. Its active vector boundary conductance is 0.35 W/K. The listed ambient conductance 0.08 W/K is not an extra parallel path in vector mode. Examine node indices and layer means before interpreting a plot. config/3d-intercell-study.json:1–66 src/+thermoweave/+coolant/evaluate.m:1–20
For the cuboid, edge count is L[R(C-1)+C(R-1)] + RC(L-1) = 3(9+8)+24 = 75. This is an independently checkable counting calculation. Do not switch this example to layout.type='rectangular' with enabled variability and assume equivalent behavior: the current rectangular variability helper counts only its two-dimensional edges. src/+thermoweave/+thermal/buildTopology.m:74–93 src/+thermoweave/+uncertainty/applyVariability.m:28–36
Coolant direction and an independent static balance
The scalar march can be probed independently of ODE integration:
startup
T = [310; 315];
H = [2 0; 0 2];
[Tc, q] = thermoweave.coolant.march(T,H,300,0.01,3800);
balanceW = sum(q)-0.01*3800*(Tc(end)-300);
assert(abs(balanceW) <= 1e-9)
The expected first coolant segment is 300.5 K; the second is 301.225 K. Heat into the two segments is 19 W and 27.55 W, giving 46.55 W total. Algebra gives the same total from outlet enthalpy. Reverse node-to-segment assignment to investigate direction; negative mass flow is rejected in validated configurations and is not the reverse-flow experiment. These are analytic expectations, not new MATLAB receipts. src/+thermoweave/+coolant/march.m:1–8 tests/unit/TestConfigAndPhysics.m:124–138
Controlled comparison and seeded variation
startup
addpath(fullfile(pwd,'examples'))
comparison = runAdaptiveCooling();
summary = runMonteCarloStudy(20);
The comparison uses 180 s, 18 A per cell and 298.25 K reference, reporting peak temperature and extraction energy for open-loop/baseline. It does not claim a universal improvement. Monte Carlo uses consecutive seeds beginning at 6100, 120 s runs and default electrical current; save the full config, sample count and quantile definition before comparing studies. The experiment-suite E8 has its own declared setup; matching a label does not substitute for matching inputs. examples/runAdaptiveCooling.m:1–26 examples/runMonteCarloStudy.m:1–28 tools/runExperimentSuite.m:1–227
For exported JSON, use a new path and an integer stride, and keep the original result:
manifest = thermoweave.results.exportJSON(result,fullfile('results','study.json'),1);
disp(manifest)
Stride 1 avoids loss of the terminal sample. JSON equality depends on environment metadata and serialized field order as well as numerical state; compare declared numerical tolerances separately. src/+thermoweave/+results/exportJSON.m:1–12 src/+thermoweave/+util/hashStruct.m:1–1
Canonical file: docs/developer/WORKED_EXAMPLES_AND_LABS.md · Back to guide navigation
Troubleshooting by failed contract
Begin with the exact command, working directory, source revision, complete error identifier and detected MATLAB products. Preserve a small synthetic reproducer and the original log. Avoid replacing a failed scientific assertion with a looser threshold before checking units, mapping and timing. Setup and interfaces give the valid entrypoints.
| Symptom | Evidence-based cause to check | Recovery / verification |
|---|---|---|
thermoweave is undefined |
src package not on the path |
Run startup from repository root; inspect which thermoweave.simulate -all |
run3DStudy is undefined |
startup omits examples |
Add fullfile(pwd,'examples'); then invoke it |
No-input thermoweave.simulate fails |
Public wrapper references required source argument |
Use thermoweave.simulate([]) or runDemo() |
| Cell count or vector dimension error | Rows×columns×layers and array counts disagree | Resolve configuration, inspect topology order, use scalar or correctly sized values |
| Multi-layer rectangular variability dimension error | Rectangular variability count omits layers | Record the defect; use the documented cuboid study for its intended case; do not patch science in a docs change |
SOC leaves [0,1] |
Current integration has no saturation/termination event | Shorten/adjust the declared experiment and inspect current/capacity/sign; report recorded violation |
Changing samplePeriod_s has no expected effect |
Main simulation updates on output intervals | Inspect outputStep and final short interval; avoid claiming an independent control clock |
| Changing mass/cp changes nothing | ODE consumes thermalCapacity_J_per_K directly |
Explicitly update resolved thermal capacity with a documented unit calculation |
| Changing ambient H changes nothing | Scalar/vector boundary uses its own conductance | Edit the mode's active field; inspect stored boundary histories |
| Advanced mode falls back | Missing quadprog, exception or unsuccessful optimization |
Inspect status/event and product list; report fallback, not advanced success |
| Simscape skips | Product, library policy, manifest or model missing | Retain exact skip; resolve prerequisites through authorized modeling setup |
| Legacy playback fails from a local file | fetch() of separate JSON may be restricted |
Use a local HTTP server; inspect response/schema; main analytic lab is a different surface |
| Tiny residual seems inconsistent with a transient error | Residual reuses the same RHS algebra | Compare independent integrated balance and solver convergence; tiny residual is insufficient |
| Exported histories do not match metadata grid | Stride affects arrays but not metadata.timeBase_s |
Use time_s for exported rows; preserve source result and full-grid metrics |
Source contracts: startup.m:1–10 src/+thermoweave/simulate.m:1–102 src/+thermoweave/+uncertainty/applyVariability.m:1–36 src/+thermoweave/+control/advancedController.m:1–60 src/+thermoweave/+results/exportJSON.m:1–12 docs/app.js:166–207.
Browser lesson disagreement
Reset or apply the selected module preset, check the fixed checkpoint time, and inspect all four inputs. The analytic API's generic thermal defaults differ from this repository's configured values. A strict < or > checkpoint ignores the tolerance; equality uses absolute tolerance. Prior module verification is retained in the page's in-memory progress map even after inputs change, while the currently displayed check results are cleared. Recheck the current experiment before interpreting completion. docs/index.html:320–337 docs/index.html:338–475
If clipboard access fails, the lesson UI attempts a copy fallback and then selects JSON for manual copying. The learning-path guide keeps notes in local storage and offers an exported study plan when storage is unavailable. Neither action runs the copied MATLAB command. DOM, keyboard, download and storage behavior still require an actual supported-browser check; source inspection does not establish accessibility conformance. docs/native-lessons.html:114–164 docs/portfolio/index.html:437–468
Documentation renderer errors
Reference HTML is stale means a canonical input or the renderer changed. Run python docs/reference/build_reference.py, inspect the resulting HTML diff and rerun --check. A missing pandoc executable is a documentation-tool prerequisite, not a MATLAB failure. A rejected escaping/missing path should be fixed in the canonical Markdown link; do not weaken path validation. The generated handbook uses local CSS and MathML with no script, and its manifest binds the input hashes to the pinned scientific source.
Reporting an unresolved result
Include whether the observation is a source inference, pure arithmetic execution, native runtime, provider check or browser interaction. Attach sanitized configuration and actual status; state any unavailable product or unknown policy. Follow SECURITY.md for vulnerability reporting and known debt for existing issue categories. A stored report or a successful source-head check cannot clear a later changed candidate.
Canonical file: docs/developer/TROUBLESHOOTING.md · Back to guide navigation
Equations and derivations
This page explains implemented equations at source 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a, with deductions clearly separated from observed execution. All parameter values are synthetic. No measured calibration, high-fidelity validation or safety qualification is established by this review. Symbols · limits · worked examples.
State, graph and positive heat direction
There are N temperatures in K and SOC fractions . The state is . For an edge joining cells , conductance is in W/K and heat entering is . This is a lumped graph representation; cell spacing and conductance are separately supplied assumptions, not a finite-volume material discretization derived automatically from geometry. src/+thermoweave/+thermal/buildTopology.m:1–178 src/+thermoweave/simulate.m:54–59
Choose each incidence row as +1 at its first node and −1 at the other. Then and conductive inflow is . Symmetry and nonnegative conductances imply and . Summing all cell equations cancels internal edge flows. These are algebraic properties of the constructed graph, not experimental findings. The topology test checks symmetry, row sums and an eigenvalue tolerance for one 2×3×2 case. src/+thermoweave/+thermal/buildTopology.m:145–169 tests/unit/TestTopology3D.m:35–54
The implemented temperature ODE is
is the explicitly resolved thermalCapacity_J_per_K; it is not recomputed from mass and heat capacity at runtime. is a fault conductance multiplier. includes passive segment exchange and active zone extraction. Every term on the right has units W, yielding K/s after division by J/K. Negative heat removes energy. src/+thermoweave/simulate.m:54–59 src/+thermoweave/+config/defaultConfig.m:12–20
Electrical heat and SOC
The implementation uses a temperature/SOC-dependent resistance, with a machine-epsilon floor:
enables entropy heat; it is false by default. Positive current means discharge. Joule heat is nonnegative, while the entropy contribution can heat or cool according to current and slope. K, not °C, must be used in the entropy expression. A current_scale fault changes current before heat/SOC evaluation; a heat multiplier changes generated heat without equivalently changing SOC. src/+thermoweave/+electrical/heatGeneration.m:1–10 src/+thermoweave/simulate.m:54–58 src/+thermoweave/+uncertainty/applyFaults.m:1–34
Here capacity is in coulombs, , and efficiencies are dimensionless. Positive discharge reduces SOC and negative charge increases it. The argument soc to socDerivative determines node count, but the RHS does not taper at SOC limits. Integration is not clipped; out-of-range values produce events/metrics. The source sign test checks both current signs with a absolute tolerance, but that test was not run locally during this pass. src/+thermoweave/+electrical/socDerivative.m:1–7 tests/unit/TestConfigAndPhysics.m:99–123 src/+thermoweave/simulate.m:23–24
Prescribed and coolant boundaries
Scalar and vector modes use the configured boundary temperature/conductance expanded to N cells. Zonal mode expands zone inputs through topo.zoneId, not a supplied boundary.zoneId. Coolant mode retains an ambient path in parallel and adds quasi-steady serial coolant exchange. src/+thermoweave/+coolant/evaluate.m:1–28
For segment , incoming coolant temperature is and H(i,k) is node-to-segment conductance. A steady enthalpy balance gives
The code replaces the denominator with max(denominator,eps). With strictly positive flow and nonnegative conductances, this is a weighted temperature average. There is no coolant thermal-storage state or transport delay. When flow becomes zero through a pump fault, the formula's degenerate behavior is an implementation limit, especially if all conductances are also zero. Negative nominal flow is invalid; the supplied reverse-flow study reassigns segment order. src/+thermoweave/+coolant/march.m:1–8 src/+thermoweave/+coolant/evaluate.m:1–68 tests/unit/TestConfigAndPhysics.m:124–153
Summing the segment balance telescopes to . A direct static march check is more independent than reusing the ODE residual and is tested at W in the source test. This proves a limited algebraic balance for the chosen fixture, not fluid accuracy.
Cooling controllers
For baseline control, form weighted zone temperatures . The controller supports weights, but the main simulation passes all ones. The actual unslewed command is
The name deadband_K suggests a temperature deadband, but the code subtracts it after gain multiplication. For nonzero gain, the effective threshold is d/Kp. A future correction requires a compatibility decision, not a silent documentation reinterpretation. The final command is limited to the previous command ± rate × elapsed output interval, then clipped to [0,1]. src/+thermoweave/+control/baselineController.m:1–17 src/+thermoweave/simulate.m:9–20
Each zone command removes W from every cell in that zone. Total commanded extraction is , subject to actuator faults. No pump motor or compressor efficiency is modeled. coolingPower_W = max(0,-sum(qCool_W)) is a net extraction proxy that also includes passive coolant exchange, and coolingEnergy_J integrates that proxy. src/+thermoweave/+coolant/evaluate.m:22–28 src/+thermoweave/+results/computeMetrics.m:1–24
Advanced control constructs a reduced zonal quadratic problem. With , , , , the implemented matrices are
where . quadprog minimizes under command and rate bounds. The horizon enters a reduced predicted temperature drop; there is no full plant trajectory, hard cell-temperature/SOC constraint or full MPC model. The exact factors above matter: replacing them with an assumed sum-of-squares objective changes the relative weights. exitflag>0 gives OPTIMAL; unavailable/failing solving returns baseline with explicit information/events. src/+thermoweave/+control/advancedController.m:1–60 DECISIONS.md:77–83. The objective convention is also documented by MathWorks quadprog, consulted 2026-11-19; it supplies solver semantics, not repository execution evidence.
Numerical stepping, discontinuities and residual interpretation
Output intervals split ODE integration and hold the controller command. The default is ode15s, relative tolerance , absolute tolerance and max step 0.25 s; ode45 is selectable. The same scalar absolute tolerance is used across temperature and SOC states. This deserves scale-aware convergence study. Fault/profile breakpoints are evaluated inside the RHS but are not all inserted into the output grid as explicit event stops. Source tests compare selected final temperatures from both solvers at K; that is not a global error bound for arbitrary scenarios. src/+thermoweave/simulate.m:4–25 src/+thermoweave/+config/defaultConfig.m:6–7 tests/integration/TestSimulationIntegration.m:51–83
MathWorks describes ode15s as an adaptive solver for stiff differential equations and explains local error control using RelTol and AbsTol. Its current ode15s and odeset pages were consulted on 2026-11-19. These general semantics do not demonstrate convergence of this model or certify cross-release agreement.
The code computes, at the same RHS evaluation,
Since was just computed from the bracketed terms, this is principally an algebraic self-consistency check. It is not the independently integrated energy defect . Near zero electrical heat the tiny denominator also makes its scaling sensitive. The older docs/model.md describes a different normalization and integrated/sign-separated residuals; those statements are not implemented by the inspected path. This page documents the implementation without rewriting historical artifacts. src/+thermoweave/simulate.m:49–59 docs/model.md:121–136
Variability and the separate browser model
The resistance multiplier is for standard normal and sigma = R0CV. Its mathematical mean is 1 and its coefficient of variation is , approximately sigma only for small values. Capacity and conductance scales use uniform draws in $[1-f,1+f]. The local RandStream` and explicit seed support repeated scenarios, not a validated manufacturing distribution. src/+thermoweave/+uncertainty/applyVariability.m:1–36
The browser thermal kind solves a different model with Celsius display state, constant heat/conductance/capacity and initial temperature equal to ambient:
where browser is in minutes. Stored heat is kJ, removed power is W, and residualW is W. Its allowed input ranges keep . No graph, SOC, faults, native optimizer or coolant model is executed. Analytic checkpoint agreement cannot validate those native features. docs/index.html:167–173 docs/index.html:231–260 docs/lesson-config.json:1–320
Canonical file: docs/math-and-physics/EQUATIONS_AND_DERIVATIONS.md · Back to guide navigation
Parameters, symbols and units
Values below are synthetic defaults, not fitted cell or coolant properties. Scenario JSON overrides defaults recursively. The runtime consumes the resolved configuration and uses explicit node/zone expansion. Source: src/+thermoweave/+config/defaultConfig.m:1–32 src/+thermoweave/+config/loadScenario.m:1–31. Equations explain signs and derivations.
Native defaults and active meaning
| Fields / symbols | Default | Units / dimension | Interpretation |
|---|---|---|---|
simulation.duration_s, outputStep_s |
600, 1 | s | Stored output intervals also drive control updates |
solver, relativeTolerance, absoluteTolerance, maxStep_s |
ode15s, 1e−6, 1e−8, 0.25 | solver, relative, state-scaled absolute, s | Adaptive solver controls, not global error guarantees |
simulation.seed |
0 | scalar | Passed to variability; overrides its configured seed in the main path |
layout.type, rows/columns/layers |
rectangular, 3/4/1 | labels/counts | 12 cells, 17 edges in this default |
pitchX_m, pitchY_m, pitchZ_m |
0.03, 0.03, 0.07 | m | Coordinates/neighbor geometry; no automatic material law |
gx_W_per_K, gy_W_per_K, gz_W_per_K |
0.8, 0.6, 0.3 | W/K | Axial conductance, positive |
edgeConductance_W_per_K |
0.7 | W/K | Base staggered edge conductance before distance adjustment |
layout.zoneCount, controller.zoneCount |
4 | count | Validator aligns controller count with layout; zones from storage order |
cell.count, initialTemperature_K, initialSOC |
12, 298.15, 0.8 | count, K, fraction | Scalar expansion for initial state |
mass_kg, specificHeat_J_per_kgK, area_m2 |
0.045, 900, 0.001 | kg, J/(kg K), m² | Descriptive inputs; no automatic runtime recomputation of C/H |
thermalCapacity_J_per_K, |
40.5 | J/K | Direct ODE divisor; default equals 0.045×900 |
thermal.ambientTemperature_K, ambientConductance_W_per_K |
298.15, 0.25 | K, W/K | Ambient path used in coolant mode; boundary fields govern other modes |
externalHeat_W, |
0 | W/cell | Positive adds heat; scalar or N elements |
thermal.contactConductance_W_per_K |
empty | W/K | Validated if supplied, but graph builder consumes layout conductances |
current_A, |
5 | A/cell | Positive discharge; result signal stores mean, not sum |
currentProfile |
empty | A, optionally time s | Previous interpolation; vector profile uses implicit seconds |
capacity_C, capacity_Ah, |
18000, 5 | C, Ah | Positive C value is authoritative; Ah fallback when C is nonpositive |
R0_Ohm, |
0.008 | Ω | Resistance base, zero allowed by validation then runtime ε floor |
alphaT_per_K, |
0.003 | K⁻¹ | Linear temperature factor around reference |
alphaSOC, |
0.05 | dimensionless | Multiplies (1-SOC) |
temperatureReference_K, in electrical |
298.15 | K | Electrical resistance reference |
dischargeEfficiency, chargeEfficiency |
1, 1 | fraction | Positive ≤1; sign-specific SOC conversion |
entropicHeat, dUoc_dT_V_per_K |
false, 0.0002 | boolean, V/K | Enabled entropy term uses absolute T in K |
boundary.mode, temperature_K, conductance_W_per_K |
scalar, 298.15, 0.25 | mode, K, W/K | Resolved conductance, not W/(m² K) |
zoneTemperature_K, zoneConductance_W_per_K, zoneId |
empty | zone K, W/K, labels | Explicit zone values required in zonal use; mapping comes from topology |
| coolant segments, massFlow, specificHeat, inlet | 4, 0.01, 3800, 298.15 | count, kg/s, J/(kg K), K | Strictly positive nominal flow; no dynamic coolant state |
coolant segmentConductance_W_per_K, segmentNodes |
2, empty | W/K, assignment | Empty maps nodes via topology zones capped at segment count |
controller.mode, referenceTemperature_K |
baseline, 298.15 | mode, K | Actual sensed-zone comparison |
samplePeriod_s |
2 | s | Direct-controller fallback dt; main simulation supplies output interval |
Kp_per_K, qMax_W |
0.2, 25 | K⁻¹, W/zone | Command gain and total zone extraction |
rateLimit_per_s, deadband_K |
Inf, 0 | s⁻¹, misleading K name | Unlimited default rate; deadband is subtracted after gain |
| advanced horizon, lambdaU/E/G | 20, 0.1/0.01/0.1 | s, numerical weights | Reduced zonal QP; weights are not calibrated economic costs |
variability.enabled, seed, R0CV, uniformFraction |
false, 0, 0.05, 0.10 | bool, seed, log σ, fraction | R0CV name approximates actual lognormal CV only at small σ |
faults.events |
empty | records | Type/target/start/end/magnitude; inclusive windows |
| temperature/edge/SOC thresholds | 318.15, Inf, [0,1] | K, K, fraction | Metrics/event reporting; no automatic protective shutdown |
Validation constraints are in src/+thermoweave/+config/validateConfig.m:1–392. Some nominally scalar fields use checks that do not enforce scalar shape; valid-looking malformed arrays can still fail downstream. The table is a supported-use guide, not a claim of exhaustive runtime rejection.
Ordering and symbol distinctions
| Symbol | Meaning | Scope / unit |
|---|---|---|
| Cells, graph edges, controller zones, coolant segments | Counts; K here is a segment count, while upright K denotes kelvin | |
| Stored samples | Output grid length | |
| Edge incidence and graph Laplacian | E×N dimensionless and N×N W/K |
|
| Temperature and state of charge | K and dimensionless | |
| Edge, boundary and segment conductance | All W/K, already resolved | |
| Heat entering cell | W; active extraction is negative | |
| Coolant heat-capacity flow | W/K | |
| Command and available zone extraction | Fraction and W | |
| Native RHS residual ratio | W/W; peak individual generated heat denominator | |
residualW |
Browser net heating | W; different quantity from native residual |
The graph's r + (c−1)R + (l−1)RC ordering makes rows vary fastest. Histories are Nt×N, state vectors are columns, and serialized JSON dimensions can collapse when scalar dimensions arise. Validate consumer shapes instead of assuming a plotting image establishes ordering. src/+thermoweave/+thermal/buildTopology.m:1–178 src/+thermoweave/+results/makeResult.m:1–10
Derived metrics
peakTemperature_K is the maximum over every sample/cell. meanTemperature_K averages every array element. The 95th percentile uses sorted finite values with linear interpolation. peakEdgeGradient_K is the maximum connected-edge difference; rmsEdgeGradient_K is the RMS of the per-time maximum edge difference, not RMS of all edge differences. timeAboveThreshold_s uses trapezoidal integration of the sampled maximum-temperature indicator, not continuous event localization or cell-duration. coolingEnergy_J is trapezoidal nonnegative net extraction. Actuator variation is the sum of absolute command changes without time weighting. Violation count adds different categories of sampled violations and should not be interpreted as distinct incidents. src/+thermoweave/+results/computeMetrics.m:1–24
Browser parameter map
| API key | Repo UI default | Generic API default | Range / unit |
|---|---|---|---|
heatW |
600 | 1200 | 100–3000 W |
coolingWK |
30 | 40 | 10–120 W/K |
capacityJPerK |
12000 | 18000 | 3000–60000 J/K |
ambientC |
20 | 25 | 0–45 °C |
Generic resolveParameters('thermal',{}) uses generic defaults; the UI overlays repository defaults before calling it. Inputs are clamped to ranges but not snapped to slider increments; nonfinite/non-numeric values fall back. Time is clamped to 0–60 min, with invalid time set to zero. The fourth preset uses 600 W, 30 W/K, 24000 J/K and 35 °C. These constants are not a calibration of the 12/36-cell native model. docs/index.html:167–173 docs/index.html:231–260 docs/lesson-config.json:1–320
Canonical file: docs/math-and-physics/PARAMETERS_AND_SYMBOLS.md · Back to guide navigation
Assumptions and limits of the evidence
ThermoWeave studies declared synthetic scenarios. Its charter excludes calibrated-cell, safety, certification, lifetime and production-control claims. Native software verification, solver convergence, agreement with another implementation and validation against measurements answer different questions. This documentation package does not perform a new physical validation. PROJECT_CHARTER.md:1–43 SECURITY.md:1–19
What the model assumes
Each cell is a lumped thermal mass with constant resolved capacity. Conductance edges, boundaries and current histories are supplied, not inferred from materials, fluid geometry or an electrical network. Electrical heat uses a linear resistance correction and optional fixed entropy coefficient; SOC is a simple efficiency-adjusted integral of imposed current. There is no terminal-voltage/OCV solve, electrochemical diffusion, aging law, phase-change, radiation or thermal-runaway propagation model in the native RHS. Absence is scoped to the inspected native path, not to generic teaching code embedded in the browser. src/+thermoweave/simulate.m:54–68 src/+thermoweave/+electrical/heatGeneration.m:1–10 src/+thermoweave/+electrical/socDerivative.m:1–7
The 3-D topology has three coordinate axes and inter-layer exchange but one temperature per cell. A cuboid drawing does not establish internal three-dimensional cell thermal resolution. Surface masks are descriptive; scalar/vector boundaries apply to configured nodes through expanded values rather than a geometric face area integration. All conductances are resolved W/K. If a user has in W/(m² K), that user must deliberately compute for an appropriate area before supplying it. src/+thermoweave/+thermal/buildTopology.m:1–178 DECISIONS.md:69–75
Coolant is a forward quasi-steady segment balance, with no fluid thermal capacitance or travel-time state. Reversed experiments reorder node/segment assignments with positive flow. A pump-loss fault may set effective flow to zero even though nominal zero flow is rejected. The epsilon denominator prevents division by zero but is not a verified physical zero-flow model. Active cooling assumes an available heat sink and uses a net extraction proxy rather than electric energy consumption. src/+thermoweave/+coolant/evaluate.m:1–68 src/+thermoweave/+coolant/march.m:1–8 src/+thermoweave/+uncertainty/applyFaults.m:1–34
Numerical and control limits
Control is updated at output intervals and held during integration. Therefore changing outputStep_s changes both recording and feedback behavior. The baseline deadband implementation has a unit/name mismatch, and the main path supplies equal weights. The advanced controller optimizes a reduced one-horizon zonal approximation with command/rate limits; it does not impose full cell temperature, SOC or safety constraints. Do not describe fallback as optimization success. src/+thermoweave/simulate.m:8–25 src/+thermoweave/+control/baselineController.m:1–17 src/+thermoweave/+control/advancedController.m:1–60
SOC is not clipped and current profiles/fault discontinuities are not all scheduled as separate ODE stop times. Tolerances are local solver controls, not a global physical-error guarantee. The residual is formed from the same RHS terms used to compute derivatives, so a small value cannot rule out integration error, wrong parameters or omitted physics. An independent integrated balance and controlled tolerance/output-step refinement are proposed future gates. src/+thermoweave/simulate.m:1–102 tests/integration/TestSimulationIntegration.m:51–83
Distribution and fault interpretation
Seeded variability is a demonstration distribution. The R0CV number is used as the lognormal normal-scale parameter; it is only approximately the resulting coefficient of variation for small values. Edge variability has a static mismatch for multi-layer rectangular layouts; the ordinary 3-D scenario uses cuboid, which takes a different edge-count path. Fault event records reflect supplied declarations and controller fallbacks, not independent diagnostic detection. Do not infer sensor-detection precision/recall or fault localization performance from those records. src/+thermoweave/+uncertainty/applyVariability.m:1–36 src/+thermoweave/simulate.m:69–84
What the available checks establish
| Evidence | Supports | Does not establish |
|---|---|---|
| Complete canonical tree and byte/object checks | Accounted source revision and unchanged protected inputs | Full semantic analysis of every binary/generated asset |
| Reviewed 40 test-method definitions | Current test intent and selected asserted tolerances | 40 executed passing tests in this environment |
| Source-head GitHub success metadata | Actual provider conclusion for that SHA/context | Candidate-head CI, a full log/artifact audit, merge-policy satisfaction |
| Historical 37-test report and coverage | What that older stored record claims at its recorded revision/time | Current coverage or current exact test execution |
| Eight browser checkpoints executed in Node | Current configured scalar model agrees with its fixtures | DOM behavior, native model validation or measured fidelity |
| Static HTML/links/schema and renderer checks | Navigation destinations, shape and deterministic generation | Desktop/mobile appearance, keyboard access or assistive technology conformance |
Sources: tests/unit/TestConfigAndPhysics.m:1–204 tests/unit/TestTopology3D.m:1–79 tests/integration/TestSimulationIntegration.m:1–205 tests/integration/Test3DStudy.m:1–80 tests/regression/TestRegressionContracts.m:1–111 artifacts/reports/verification.json:1–1. Detailed run references belong in the evidence ledger.
Historical prose and optional models
Historical root/model/readme claims remain preserved. This dated source review clarifies three overstatements: row vectors are often flattened rather than rejected; samplePeriod_s is not the main control clock; and the residual is not an independent integrated balance. Read these clarifications when using old descriptions. The optional Simscape gate reports availability/policy/model status, and the mapper labels its output MAPPED_NOT_GROUND_TRUTH. No comparison, physical calibration or generated model completion is asserted. docs/model.md:1–136 simscape/buildThermoWeaveModel.m:1–105 simscape/mapSimscapeResults.m:1–132
The roadmap proposes native edge-case, energy, timing and provenance work. Dates and owner roles are proposals; none converts an unexecuted gate into a passing result. Any future measured-data program must establish permission, acquisition/calibration records, uncertainty, parameter estimation, a held-out evaluation protocol and model-discrepancy limits before publishing accuracy claims.
Canonical file: docs/math-and-physics/ASSUMPTIONS_AND_LIMITS.md · Back to guide navigation
Verification evidence ledger
This is a dated source/documentation review for 2026-11-19, pinned to 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a and source Git tree a711d4e91e89cb7c18448cd6fbf45805eecdfc9b. A documentation candidate is a later uncommitted working tree at author handoff; its exact manifest/fingerprint and eventual commit, merge and deployment identities belong in external run receipts. No release, merge or publication success is implied here.
Evidence classes
| Class | Method | Appropriate claim |
|---|---|---|
| Implemented | Read pinned source and tests, with exact path/line links | What code computes or asserts |
| Declared | Read config, workflow or policy | Intended settings and trigger/gate configuration |
| Observed local | Execute inspected bounded checks and preserve stdout/status | Exactly that command in that environment |
| Observed provider | Read provider check-run identity/conclusion | Provider's status for its actual head SHA/context |
| Historical | Read committed result/report | What the stored report says at its own recorded revision/time |
| Proposal | Source-derived future work with acceptance criteria | Planned investigation, not implemented behavior |
| Unavailable | Tool, permission, product or artifact missing | A named unresolved verification boundary |
Current source definitions versus history
Static enumeration finds 40 current test methods in five classes: 17 in TestConfigAndPhysics, 3 in TestTopology3D, 11 in TestSimulationIntegration, 3 in Test3DStudy, and 6 in TestRegressionContracts. Setup methods are excluded. This is source counting, not 40 executed passes. The advanced optimization test can skip when quadprog is unavailable; the adapter test accepts explicit skip statuses. tests/unit/TestConfigAndPhysics.m:1–204 tests/unit/TestTopology3D.m:1–79 tests/integration/TestSimulationIntegration.m:1–205 tests/integration/Test3DStudy.m:1–80 tests/regression/TestRegressionContracts.m:1–111
The stored verification report records 37 passed / 0 failed / 0 incomplete, statementCoverage=0.63351, zero Code Analyzer findings and adapter SKIPPED_LIBRARY_POLICY_UNRESOLVED, at 2026-08-14T02:05:03Z, MATLAB 2026a, Git revision af0f815510fb29832679ef6dbe84a2e8eb386fae. Its demo peak 298.2306825072806 K and residual about 4.394e−15 are historical synthetic output. Preserve these values as history; do not reuse them as the current candidate's verification. artifacts/reports/verification.json:1–1
The separate 3-D report contains weak/nominal/strong cross-layer cases with 36 nodes and 75 edges, reported peak temperatures about 303.9873, 303.6345 and 302.9179 K. It records 2026a and configuration hashes but no independent measured validation. The experiment report contains ten E0–E9 records and synthetic labeling. Reading their JSON is not regeneration. artifacts/reports/3d-study-summary.json:1–65 artifacts/reports/experiment-summary.json:1–1
Source-head provider snapshot
The authenticated read-only snapshot at 2026-11-19T19:51:50.120Z returned seven completed checks on source 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a: six success and one skipped. Each link below identifies the actual job; the two deploy names are different workflows.
| Context | Conclusion | Provider reference |
|---|---|---|
| MATLAB R2024a core build | success | job 132914380830 |
| human-authorship-policy | success | job 132914380752 |
| Pages build | success | job 132914380825 |
| Pages deploy | success | job 132914455232 |
| Dashboard validate | success | job 132914380678 |
| Dashboard deploy | skipped | job 132914472278 |
| Dependabot | success | job 132948265052 |
This author inspected provider metadata, not complete native logs or downloaded CI artifacts. These source-head checks do not clear future candidate-head CI. The ruleset endpoint returned an empty list, while classic main protection returned 403 Resource not accessible by integration. Empty rulesets do not establish that classic protection is absent. No tags/releases were returned in that dated snapshot. Current integration must refresh policy and check evidence through an authorized route; missing visibility is not a bypass permission.
Local author checks and limitations
The documentation pass uses Python 3.12.14, Node v24.22.3 and Pandoc 3.1.11.1. Executable commands are documented so they can be repeated:
python scripts/portfolio/validate_guide.py
node docs/reference/check_lesson.cjs
python docs/reference/build_reference.py --check
The author run verifies the exact canonical object hashes, all tracked-entry dispositions, requested output paths, unchanged protected files, syntax/structured formats, local links/fragments, pinned-source line ranges, CFF schema, handbook input hashes and permitted diff. The Node helper executes the thermal teaching model and all eight configured checkpoints. Its independent analytic probes concern only that scalar formula. The complete per-check outputs and exact candidate identity are retained with the handoff, separately from this source snapshot.
NOT_RUN locally: MATLAB tests/demo, native plotting, optional optimization/Simscape, Code Analyzer/coverage generation, artifact regeneration, manuscript rendering, release archive, actual desktop/mobile browser journeys, assistive technology, deployed-page inspection and independent measured/physical validation. No MATLAB/Octave executable is installed. Local Chromium launch is unavailable; the cancelled browser sign-in path was not retried. No browser success or screenshot result is fabricated.
Test evidence map and missing oracles
| Question | Existing source evidence | Remaining limit |
|---|---|---|
| Equilibrium and temperature direction | Isothermal, relaxation and scalar/vector equivalence tests | Selected fixtures; not a calibrated transient response |
| Solver agreement | ode15s/ode45 final comparison at 1e−4 K | Not independent global error or all discontinuity alignment |
| Heat accounting | RHS residual checks; static coolant balance at 1e−9 W | RHS residual reuses same algebra; integrated energy defect proposed |
| Graph consistency | Node/order/edge/PSD and one-layer reduction tests | Rectangular multi-layer variability case absent |
| Controller limits | Bounds/rate and conditional advanced test | Independent sample clock/deadband-unit contract absent |
| Repetition/export | Repeated seed/JSON and canonical schema tests | Cross-release, noninteger stride and terminal-sample contract incomplete |
| Faults | Declared events, dimensions, selected restriction test | No demonstrated independent fault detector |
| Interface rendering | 3-D patch/axes/view assertions | Not complete GUI or accessibility verification |
Source locations are in the API catalogue; scientific limits are in ASSUMPTIONS_AND_LIMITS. A reviewer must re-run applicable gates on the frozen candidate. Author-side checking is not independent QA. Record PASS, FAIL, SKIPPED, NOT_RUN and INACCESSIBLE without collapsing them into a single health badge.
Canonical file: docs/maintainer/VERIFICATION_EVIDENCE_LEDGER.md · Back to guide navigation
CI, delivery and release playbook
Inspect the current workflow files and repository policy before a change. The source below is pinned to the documentation snapshot; provider settings can change independently. This package preserves every workflow byte, trigger, permission, matrix, pin and guard. The repository's AGENTS.md requires measured CI economics and prohibits removing required validation to create apparent savings. AGENTS.md:1–10
Configured workflows
| Workflow | Triggers / runner | Job behavior and gate |
|---|---|---|
core-ci.yml |
Main push, PR to main, manual; Ubuntu, 30 min | R2024a buildtool test; readonly token; cancel only superseded PR runs |
no-codex-attribution.yml |
PR, merge group, main push and tags | Checks author/committer/co-author identities across selected commit range; readonly checkout |
pages.yml |
Main push/manual; Ubuntu | Validate source files, upload all docs/, deploy guarded main with Pages/id-token write only in deployment job |
deploy-dashboard.yml |
Main pushes affecting docs/assets/workflow and manual | Static validation; separate deploy condition is literal false in this source |
portfolio-dashboard-check.yml |
Selected PR/main/tag paths | Python source-path/config/HTML-marker validator |
simscape-integration.yml |
Manual only; self-hosted thermoweave-simscape |
R2024a integration task selects the core tests/integration subset; 60 min. It does not invoke the adapter or enforce its product, library-policy or generated-model gates. |
release.yml |
v* tags; Ubuntu, 45 min |
Semver guard, package build, archive checksum and GitHub release creation |
Sources: .github/workflows/core-ci.yml:1–34 .github/workflows/no-codex-attribution.yml:1–99 .github/workflows/pages.yml:1–67 .github/workflows/deploy-dashboard.yml:1–82 .github/workflows/portfolio-dashboard-check.yml:1–24 .github/workflows/simscape-integration.yml:1–28 .github/workflows/release.yml:1–60. No CircleCI/Buildkite configuration exists in the reviewed canonical tree; no account-level provider claim follows from that absence.
The manual workflow's name and runner label do not establish Simscape execution. buildtool integration selects tests/integration; the optional adapter status and mapper checks live in tests/regression/TestRegressionContracts.m and are included by the full test task. The adapter status test accepts SKIPPED_* outcomes, so even that test's success is not evidence that a generated model ran. A required real-model gate would be future work, separate from this documentation repair. buildfile.m:15–33 tests/regression/TestRegressionContracts.m:76–110
pages.yml uploads the existing docs/ tree, so the static reference handbook is included without a new workflow. The dashboard workflow's disabled deployment job is separate from the active Pages workflow. A skipped duplicate deployment is not equivalent to a failed Pages deployment. Tags trigger the release path, so creating a tag is a publication operation, not a harmless way to test packaging.
Before opening or updating a PR
- Record base and candidate commits (or reproducible working-tree fingerprint before commit), scope and source inventory. Preserve native/scientific inputs in a documentation-only change.
- Run applicable static documentation checks and any required native tests for the actual change. Keep environmental exclusions explicit. Do not edit workflow path filters or skip markers to evade checks.
- Require independent review of source claims, equations, examples and permitted diff. Fix actual findings and bind new checks to the changed candidate.
- Read branch protection/rulesets and requested reviewers. In this author's source snapshot, classic protection was inaccessible with 403; that blocks a complete merge-policy determination, not documentation authoring.
- Use the legitimate authenticated author's supported signing/authorship route. The human-authorship policy must not be satisfied by forged author metadata, impersonation or suppressing assistance disclosure.
The source-head check table in the ledger is historical relative to a later candidate. Candidate success must identify head SHA, check context, provider run/job and conclusion. A synthetic merge or merge-queue revision also needs base/head mapping. Unknown required checks remain unknown.
Native packaging gate
From a clean, licensed checkout:
startup
buildtool package
package depends on coverage and docs/artifact tasks. Coverage below 80% is advisory in this implementation. Artifact generation creates reports/figures/web payloads and can change tracked generated files. Inspect all output records, actual test counts/skips, scenario hashes, source revision and archive checksum; do not infer fresh verification from old files left in the workspace. writeVerificationReport uses a limited test/src timestamp staleness heuristic, which does not prove every configuration/tool change was exercised. buildfile.m:1–102 tools/writeVerificationReport.m:1–95 tools/packageRelease.m:1–43
ZIP generation is described as reproducible by source comments, but archive timestamps and environment-dependent rendered bytes have not been verified for bitwise reproducibility here. Keep numerical reproducibility and archive byte identity separate. Packaging itself does not create a GitHub release; the tag-triggered workflow does. No new version/date/tag is assigned by this documentation package.
Merge and publication evidence
After independent approval and all currently applicable policy/check gates, use the ordinary guarded merge route. Record source, tested head, documentation commit, merged commit and deployment identity separately. After Pages completes, inspect the live root, handbook, native lessons and learning-path links; check desktop/mobile overflow, navigation, keyboard focus, tables/formulas, retained controls and source identity in a supported browser. Record actual deployed content hashes where available. A provider deployment success without this page inspection is insufficient for a PUBLICATION_VERIFIED claim.
If publication fails, preserve the run log and serving revision, identify whether build, upload, deployment or content validation failed, and propose a focused repair. Do not disable security guards, replace source evidence with an older passing job or silently change repository visibility. Billed CI savings remain UNKNOWN without measured usage and current account pricing/allowances.
Canonical file: docs/maintainer/CI_CD_AND_RELEASE_PLAYBOOK.md · Back to guide navigation
Toolchain and dependency matrix
Separate declared support, detected availability and observed execution. The original release metadata remains unchanged. There is no application package-manager lockfile in this MATLAB/static-site source tree; adding Node/Python packages is not a prerequisite for native simulation. ENVIRONMENT.md:1–40 CONTRIBUTING.md:1–38 CITATION.cff:1–18
| Component | Requirement / use | Status in this documentation pass |
|---|---|---|
| MATLAB | R2024a+ declared core; ode15s, ode45, matlab.unittest, buildtool |
Not installed locally; source-head R2024a provider success metadata available |
| Optimization Toolbox | quadprog optional controller |
Not executed; explicit fallback path reviewed |
| Simulink, Simscape, Simscape Battery | Optional generated model comparison | Not installed/executed; model/policy gates unresolved in tracked tree |
| Model Predictive Control Toolbox | Listed if installed in result metadata | No direct core MPC controller invocation found; not required by reduced QP implementation |
| MATLAB Test | Recorded if installed | Native build uses test APIs; no optional product execution claimed locally |
| Java runtime within MATLAB | SHA-256 utility implementations | Hash functions invoke java.security.MessageDigest; native execution not run |
| Modern browser | Standalone analytic lab and guide interactions | Source reviewed; DOM/visual/assistive-technology tests not run |
| Node | Isolated pure lesson helper | v24.22.3 used; built-in modules only |
| Python | Existing guide validator and new handbook renderer | 3.12.14 used; renderer uses standard library and external Pandoc |
| Pandoc | Markdown to HTML5/MathML | 3.1.11.1 used; no network/math rendering service required |
| python-docx / PowerShell | Historical manuscript construction/export tooling | Indexed source dependencies; not installed, changed or executed for this pass |
| Git / GitHub Actions / Pages | Version identity, guarded CI and publication | Read-only provider snapshot; this author creates no remote mutations |
Sources: src/+thermoweave/+control/advancedController.m:1–60 src/+thermoweave/simulate.m:85–100 src/+thermoweave/+util/hashFile.m:1–13 simscape/buildThermoWeaveModel.m:1–105 buildfile.m:1–102 tools/build_manuscript.py:1–32.
External actions and versions
All uses: entries in the inspected workflows refer to immutable commit hashes. Human-readable major/version comments and THIRD_PARTY_NOTICES.md are historical labels, not a reason to silently update dependencies. Dependabot is configured weekly for GitHub Actions with an open-PR limit of five. Any change must update the pin/notice coherently and preserve security, events and required checks. .github/dependabot.yml:1–7 THIRD_PARTY_NOTICES.md:1–48 AGENTS.md:1–10
The historical notices state a self-hosted runner minimum associated with the pinned Node 24 actions. Treat the actual pinned action documentation and current runner installation as the preflight authority before manual integration; no licensed runner was accessed in this pass. Existing notice text is preserved, not freshly certified as a legal or product-support analysis.
Structured inputs and generated materials
Six scenario JSON files configure baseline, vector gradient, zonal boundary, channel restriction, sensor fault and the 3-D study. The browser lesson schema/config and learning-path/native catalogues are separate formats. Three-dimensional CSV/JSON, playback JSON, PNG/GIF and manuscript files are historical generated evidence, and 352 XML files under resources/ are project metadata. They are individually accounted by canonical path/object/hash; indexed structural or binary records do not imply semantic review or regeneration. config/3d-intercell-study.json:1–66 docs/lesson-config.schema.json:1–85 artifacts/reports/artifact-manifest.json:1–1
No original MathWorks products, installers or licenses are supplied by this repository's MIT notice. Use the existing LICENSE, provenance and notices for attribution and review any new external material before importing it. No dependency installation, version bump or native artifact refresh is part of this documentation-only package.
Canonical file: docs/maintainer/TOOLCHAIN_AND_DEPENDENCY_MATRIX.md · Back to guide navigation
Failure modes and technical debt
These findings are from the pinned source review dated 2026-11-19. They are not newly fixed implementation behavior. Priority indicates the proposed order for follow-up research/software work; none authorizes bypassing native verification. The roadmap translates them into deliverables, dependencies and acceptance criteria.
| ID / priority | Finding and consequence | Source / proposed resolution |
|---|---|---|
| TW-D01 / P1 | Historical 37-test/63.351% report differs from 40 current test methods; stale values can look current | Preserve history; generate exact-candidate native receipts under R01. artifacts/reports/verification.json:1–1 tests/unit/TestConfigAndPhysics.m:1–204 |
| TW-D02 / P1 | Control follows output intervals, not independent samplePeriod_s; baseline subtracts named K deadband after gain; main path ignores configured weights |
Define compatibility semantics and timing/deadband tests in R02. src/+thermoweave/simulate.m:9–20 src/+thermoweave/+control/baselineController.m:1–17 |
| TW-D03 / P1 | Multi-layer rectangular layout creates full 3-D edges but variability helper counts only the 2-D layer; static 3×4×3 count is 17 vs 75 | Add the failing native regression, choose correct topology-based count in R03. src/+thermoweave/+uncertainty/applyVariability.m:28–36 src/+thermoweave/+thermal/buildTopology.m:74–93 |
| TW-D04 / P1 | Residual is RHS self-consistency with peak individual heat denominator; older prose suggests integrated balance | Add independent energy integration and convergence with explicit scales in R04. src/+thermoweave/simulate.m:49–59 docs/model.md:121–136 |
| TW-D05 / P2 | Pump fault can produce zero flow, epsilon denominator regularizes a physical degeneracy; fault declarations do not prove activation/detection | Define zero-flow and event-window evidence in R05. src/+thermoweave/+coolant/evaluate.m:1–68 src/+thermoweave/+uncertainty/applyFaults.m:1–34 |
| TW-D06 / P2 | JSON stride lacks integer enforcement, may omit terminal sample and retains full-grid metadata/metrics; character count is not always byte count | Clarify versioned export contract and add consumers/tests in R06. src/+thermoweave/+results/exportJSON.m:1–12 |
| TW-D07 / P2 | Validator permits some malformed scalar shapes/unused fields; global target allowance differs from sensor/actuator handlers | Add table-driven invalid-input cases and specify supported shapes in R05/R06. src/+thermoweave/+config/validateConfig.m:1–392 src/+thermoweave/simulate.m:34–48 |
| TW-D08 / P2 | Optional model builder only gates availability/manifest; mapper may default missing arrays to NaN and trusts supplied residual | Resolve owner/library/model policy, inspect callbacks and add real adapter evidence in R08. simscape/buildThermoWeaveModel.m:1–105 simscape/mapSimscapeResults.m:1–132 |
| TW-D09 / P2 | Legacy playback assumes 12 nodes and checks selected shapes/hash syntax; UI catalogues point to older revisions | Add separately reviewed schema/provenance refresh and supported-browser checks in R07. docs/app.js:166–207 docs/native-lessons.json:1–353 |
| TW-D10 / P2 | R0CV is lognormal sigma; ambient variability can be overridden by active boundary fields; field names can overstate consumed physics |
Document and test distribution/active-field semantics in R03/R05. src/+thermoweave/+uncertainty/applyVariability.m:1–36 src/+thermoweave/+coolant/evaluate.m:1–68 |
| TW-D11 / P2 | Historical report freshness checks only selected mtimes; deterministic core hash is not guaranteed cross-runtime artifact byte identity | Build clean-environment manifests and archive/render reproducibility studies in R01/R10. tools/writeVerificationReport.m:1–95 tools/packageRelease.m:1–43 |
Scientific risks that remain outside a quick fix
The model has no measured battery calibration or independent high-fidelity comparison. E3's criterion is one predefined pulse scenario; E7 controller comparisons are descriptive, and advanced control can fall back. The SOC integral lacks taper/termination; this is a model boundary as well as a possible input-risk surface. No UI wording, tiny residual or green fixture count converts those limits into validated physical performance. tools/runExperimentSuite.m:1–227 src/+thermoweave/+electrical/socDerivative.m:1–7 PROJECT_CHARTER.md:1–43
The algebraic edge and coolant checks are valuable but do not supply an independent transient oracle. Future tests should hold physical inputs fixed while refining the numerical method, distinguish output sampling from controller timing, and report errors in physically meaningful units. Avoid tests that merely restate the same RHS expression and then call their agreement validation.
Operational evidence gaps
MATLAB, optional products and supported-browser rendering were not available locally. Classic main protection was inaccessible to the connector, although source check metadata was readable. Independent QA, exact-candidate CI, current policy, legitimate signed integration and deployed-content review remain separate gates owned by the integration/review process. The documentation candidate does not claim them completed.
Triage protocol
For a defect, record the smallest synthetic config, input/source hashes, source vs runtime status, actual exception/result and expected contract. Reproduce on a clean supported runtime before changing science. For a numerical change, preserve the old fixture, explain compatibility, compare multiple tolerances and update the equation/parameter/API pages plus roadmap status. For documentation-only corrections, validate the scoped diff and regenerate the handbook without refreshing scientific results.
Canonical file: docs/maintainer/FAILURE_MODES_AND_TECH_DEBT.md · Back to guide navigation
Documentation maintenance runbook
Canonical Markdown/CFF is edited directly; docs/reference/index.html is generated from docs/reference/chapters.json. Existing interactive surfaces keep their own scripts/configuration and receive only a reference link. Keep native science, historical evidence and browser teaching descriptions separate. Index · release playbook.
Updating a source claim
- Record the new immutable source SHA and complete canonical tree. Inspect the relevant implementation, callers, tests and active configuration rather than relying on a README summary.
- Check path, line range, symbol, units, sign convention, shape, fallback/error behavior and whether the code was actually executed. Use source links pinned to that SHA.
- Update the architecture/API/example/science pages affected. Preserve dated historical results; add a new receipt instead of relabeling an older one.
- For a changed numerical contract, require a separate scientific review and applicable native checks. For a docs-only change, keep implementation/model/result/workflow/dependency/license bytes unchanged.
- Run focused checks, regenerate the reference view and inspect the exact diff. Freeze the candidate identity for independent QA.
The three command helpers are intentionally narrow:
python scripts/portfolio/validate_guide.py
node docs/reference/check_lesson.cjs
python docs/reference/build_reference.py
python docs/reference/build_reference.py --check
The existing guide validator checks source-path/config alignment and selected HTML markers. The lesson helper checks embedded configuration/pure math fixtures without DOM execution. The renderer converts canonical Markdown using Pandoc/MathML, namespaces chapter anchors and rewrites internal links. It rejects active embedded chapter HTML and escaping/missing paths. It does not deploy or run native tools. scripts/portfolio/validate_guide.py:1–33
Documentation synchronization map
| Changed source | Documentation and evidence to revisit |
|---|---|
| Defaults/validation/scenarios | Parameter table, setup/examples, input contracts, config/field inventory |
| Graph/electrical/coolant/controller/RHS | Equations, sign/units/limits, scientific debt, test evidence and native receipts |
| Result/export/metrics | Schema/shape table, consumer caveats, full-grid vs sampled evidence |
| MATLAB build or workflows | Toolchain, CI triggers/gates, release/rollback procedure, current policy snapshot |
| Browser model/checkpoints | Browser catalogue, exact eight fixtures, synthetic labels, supported-browser behavior |
| Learning catalogues/provenance | Their own immutable revision/config synchronization and personal-state semantics |
| Licenses/authorship/citation | Preserve named authors; verify exact release facts; no invented version/date |
| Roadmap decisions | Status and dependency changes backed by completed acceptance evidence |
Review and accessibility
The reading view uses the incumbent warm/dark palette, a constrained prose width, a sidebar that collapses to native disclosure navigation, visible focus styles, scrollable tables and script-free MathML. Its static checks verify anchors, syntax and source freshness. A later actual browser review must check desktop/mobile line wrapping, formula overflow, keyboard navigation, contrast, zoom and assistive-technology behavior; those are not automatically guaranteed by semantic tags.
Do not edit generated HTML by hand. If a Markdown heading or path changes, inspect all chapter links and fragment destinations after generation. Keep CSS/renderer hashes in the embedded input manifest. Avoid remote script/font dependencies for the handbook. When a command needs a missing licensed product, mark it NOT_RUN and preserve the precise gate rather than substituting a synthetic result.
Change and recovery records
Keep the command, timestamp, environment, exact candidate fingerprint/commit, stdout/stderr, status and limitations with each receipt. Review all required 24 outputs and all tracked-entry dispositions; indexed metadata/binaries must remain labeled as indexed. An author verifies its own work but cannot supply independent QA. Any final merge/deployment identity must be observed after that action, not embedded as a predicted SHA in the very commit it describes.
If the handbook is stale, rebuild it from the approved canonical files. If a source statement is wrong, correct it and identify the old claim rather than touching physics to make prose true. If delivery fails, use the recovery runbook and retain evidence. No regular schedule or automation is created by this runbook; the owner may later adopt the proposed cadence.
Canonical file: docs/maintainer/DOCS_MAINTENANCE_RUNBOOK.md · Back to guide navigation
Architecture decision index
The canonical historical decisions remain in DECISIONS.md. This index links them without reassigning their statuses or authorship. Source snapshot: 2026-11-19, 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a.
| ID | Recorded decision | Recorded status / source |
|---|---|---|
| D-001 | Portable MATLAB graph core is authoritative for mandatory gates | Accepted. DECISIONS.md:3–9 |
| D-002 | Kelvin internally; Celsius only at presentation boundaries | Accepted. DECISIONS.md:11–17 |
| D-003 | Column runtime vectors; time-by-entity histories | Accepted. DECISIONS.md:19–25 |
| D-004 | Coolant boundaries computed by finite-flow march | Accepted. DECISIONS.md:27–33 |
| D-005 | Baseline availability and observable advanced fallback | Accepted. DECISIONS.md:35–41 |
| D-006 | Static web delivery consumes exported data | Accepted historically. DECISIONS.md:43–49 |
| D-007 | Structural Simulink work awaits library-policy declaration | Pending owner input. DECISIONS.md:51–57 |
| D-008 | Canonical core omits wall-clock timestamps | Accepted. DECISIONS.md:59–65 |
| D-009 | Conductance fields are resolved W/K | Accepted. DECISIONS.md:67–73 |
| D-010 | Advanced control is a reduced-horizon quadratic supervisor | Accepted. DECISIONS.md:75–83 |
Current interpretation and proposed decisions
D-003 describes a convention; current validators often accept matching element counts and flatten row vectors. D-006 accurately describes legacy playback, while the newer main browser lesson is an independent embedded scalar teaching model. D-008 covers core result time fields; environment metadata and serialization still affect hashes. These source observations do not silently rewrite the accepted records. src/+thermoweave/+config/validateConfig.m:1–392 docs/app.js:1–207 docs/index.html:147–337 src/+thermoweave/simulate.m:85–100
Proposed new decisions should resolve the control clock/deadband contract, independent energy-defect definition, versioned export timebase, and a real optional-model acceptance gate. Their source evidence and acceptance criteria are in ROADMAP.md; no new decision is marked accepted by this documentation pass.
Decision template
Record an ID, date, status, accountable role, problem and source evidence; list viable options, selected behavior, unit/shape/compatibility consequences, verification requirements, and a migration/reversal strategy. Mark an option as proposed until its owner/reviewer decision is observed. Link actual implementation and exact-revision checks when accepted. Keep historical superseded decisions for traceability and never invent approval, authorship or completion evidence.
Canonical file: docs/owner/ADR/ADR-0000-INDEX.md · Back to guide navigation
Governance and scope
ThermoWeave's charter makes the primary integrator responsible for interfaces and final acceptance, while provenance and verification reviews can veto public claims or release status. Core MATLAB is the portable implementation; optional Simscape evidence is recorded honestly and an explicit optional skip does not itself invalidate a core release when all mandatory gates pass. This page records those rules and proposes role-based operating practices; it assigns no new person or permission. PROJECT_CHARTER.md:1–43
Decision boundaries
| Decision | Accountable role | Required evidence |
|---|---|---|
| Equations, units, topology, control or solver semantics | Scientific maintainer + primary integrator | Source-derived specification, independent review and native scenario/convergence tests |
| Public API/result/config compatibility | Interface maintainer + integrator | Consumer/shape/error/fallback review and migration decision |
| Documentation and educational presentation | Documentation maintainer | Pinned sources, accurate synthetic labels, static checks and accessibility review where applicable |
| Optional model structure/libraries | Model owner | Existing library/policy declaration, lawful product availability, inspected model provenance/callbacks |
| Merge and release | Authorized repository owner/integrator | Current branch policy, legitimate authorship/signature, required checks/review and exact identities |
| Public claims/provenance | Independent verification/provenance reviewer | Traceable sources and honest limits; no promotion of skipped or historical evidence |
Roles are proposals for continuity; the repository does not identify a complete staffing roster. Existing DECISIONS.md remains the accepted-decision source. A roadmap entry is a proposal until its acceptance evidence and owner decision exist. DECISIONS.md:1–83
Allowed and excluded claims
Describe this as a synthetic reduced-order graph electrothermal demonstrator. It does not establish real-cell accuracy, battery safety, certification, lifetime, measured controller performance or completed Simscape integration. The browser's scalar teaching model, historical graph playback and native solver must be named separately. No company/product endorsement is implied by citing MathWorks APIs. PROJECT_CHARTER.md:1–43 PROVENANCE.md:1–60 THIRD_PARTY_NOTICES.md:1–48
CITATION.cff retains the group author ThermoWeave contributors, version 0.2.0 and date 2026-08-14. Those preserved metadata are not a declaration that a new semantic release exists. The dated provider snapshot returned no tags/releases. Do not invent an individual author, DOI, release date or signed commit to complete a checklist. CITATION.cff:1–18 Provider snapshot.
Review and escalation
Use ordinary pull requests and current repository policy. Keep content, merge and publication outcomes separate. An inaccessible protection endpoint means policy is unresolved, not waived. Never forge commit identities or bypass required checks to meet an autonomous request. Complete the reversible research/documentation work and prepare a concrete reviewable candidate before escalating an actual integration blocker.
For a scientific disagreement, preserve the exact fixture and two competing interpretations, then test the smallest discriminating case on a supported native runtime. For a vulnerability, follow SECURITY.md, use a verified private channel and omit secrets from public issues. For new external data/assets, document acquisition rights and limitations before importing; the existing MIT file covers original contributions and does not relicense commercial dependencies.
Proposed operating cadence
At each substantive change, refresh affected source claims and relevant checks. Before release, do a clean-environment reproduction, provenance review and actual delivery check. At roadmap horizon reviews, compare acceptance evidence and available capacity, then update proposed dates rather than reporting unstaffed tasks as committed. This cadence is documentation only; no scheduled job or notification was created.
Canonical file: docs/owner/GOVERNANCE_AND_SCOPE.md · Back to guide navigation
Recovery runbook for a new maintainer
The recovery goal is a reproducible, reviewed state with clear evidence. Possessing a checkout or historical report is insufficient to claim a working release. Preserve the source and logs before changing anything. Setup · toolchain · release gates.
Establish identity and access
Record repository URL, current branch, commit/tree, working changes and available tags/releases. Acquire access through the repository owner's legitimate GitHub and product-license administration; there is no credential, license key or secret recovery mechanism in this repository. Re-read current protection/rulesets and environment permissions. The 2026-11-19 author snapshot could not inspect classic protection, so that snapshot is not a complete merge policy.
Read PROJECT_CHARTER.md, DECISIONS.md, SECURITY.md, PROVENANCE.md, THIRD_PARTY_NOTICES.md and AGENTS.md. Preserve existing attribution/license/CFF metadata. Create an isolated working branch/check-out and avoid running any model callback or source generation until its inputs and side effects are reviewed. PROJECT_CHARTER.md:1–43 DECISIONS.md:1–83 AGENTS.md:1–10
Recover the core first
startup
buildtool test
result = runDemo();
Use the configured R2024a core or record the actual supported release used. Save all native logs/products/results with the tested SHA. Compare schemas, topology order, selected numerical assertions and explicit skips. Source currently defines 40 test methods; discover actual executed/passed/incomplete counts rather than hard-coding that number as a runtime expectation. Historical 37-test and coverage values remain historical. buildfile.m:1–102 artifacts/reports/verification.json:1–1
If native execution is unavailable, recover the reading surface and source inventory, mark native gates NOT_RUN, and keep the work reviewable. Do not substitute browser scalar arithmetic for the graph tests. For a tiny reproducible native problem use the equilibrium example; for 3-D mapping use the provided cuboid scenario before custom layouts. Review known debt before using multi-layer rectangular variability.
Recover derived artifacts without losing history
Preserve original report/figure/web-data hashes. Generate new outputs in a disposable checkout, compare their manifests and record changes. generateArtifacts runs simulations, writes historical-facing reports/figures/data and invokes experiment/3-D studies. writeVerificationReport may reuse available JUnit based on limited mtimes; start clean for a release receipt. packageRelease archives selected roots and creates a manifest; its output does not prove a remote release exists. tools/generateArtifacts.m:1–54 tools/writeVerificationReport.m:1–95 tools/packageRelease.m:1–43
For the reference handbook, edit canonical Markdown, run python docs/reference/build_reference.py, and then --check. Restore a broken generated HTML from approved inputs. Do not overwrite the browser's teaching config or native result JSON to match a screenshot. The existing docs/ upload path covers the handbook once ordinary integration and Pages gates complete.
Recover optional modeling only with its owner decision
Relative to ProjectRoot, the adapter looks for .satk/reuse-libraries.json and simscape/models/thermoweave-model-manifest.json; neither is a tracked completed model in this snapshot. Resolve reusable-library policy through the intended modeling setup, verify licensed products, inspect any supplied model and callbacks, then run the manual comparison. READY from the gating function means prerequisites appear present, not that the model was built/tested. Preserve exact SKIPPED_* statuses. simscape/buildThermoWeaveModel.m:1–105 simscape/runSimscapeScenario.m:1–40
Restore publication and retain evidence
Check current Pages settings and run identities. After a reviewed candidate passes current policy/CI and merges normally, verify the actual deployed revision and reading routes in a supported browser. If a deployment regresses, use a reviewed forward fix or ordinary revert through the same protections; do not force-push or rewrite release history. Record the failure, recovery commit and new deployed identity.
Success means a successor can point to the exact source, commands, input/output hashes, real test statuses and remaining limits. If credentials, licenses, model policy, branch rules or an independent reviewer remain unavailable, name that boundary and stop the affected integration claim while retaining completed documentation work.
Canonical file: docs/owner/BUS_FACTOR_RECOVERY_RUNBOOK.md · Back to guide navigation
Portfolio integration boundaries
This public package describes ThermoWeave only. Its integration surface is a documented synthetic electrothermal example, canonical result/config schemas, generated presentation data, a standalone teaching lab and a source-linked study guide. No cross-repository runtime coupling, shared private dataset or portfolio-wide performance claim is established by the inspected source. PROJECT_CHARTER.md:1–43 src/+thermoweave/+results/makeResult.m:1–10 docs/portfolio/lesson-config.json:1–373
Implemented local integration
startup connects the native source, tools and optional adapter paths. Result producers feed MATLAB visualization and exportWebData; the latter supplies the historical browser playback schema. The analytic browser lab has its own embedded scalar-model configuration. The learning-path guide links eight paths to an older immutable source revision and stores review state locally; those links are educational navigation, not service integration. startup.m:1–10 tools/exportWebData.m:1–72 docs/app.js:1–207 docs/index.html:146–337 docs/portfolio/index.html:437–468
The new documentation index/reference view links Developer, Maintainer and Owner material on the existing Pages route. Existing source/catalogue revisions remain unchanged. This deliberately preserves the meaning of older snapshot records while giving readers a dated current-source guide.
Proposed reusable vocabulary
| Concept | ThermoWeave representation | Constraint on future exchange |
|---|---|---|
| Source identity | Immutable commit plus configuration hash | Distinguish source/test/documentation/merge/deployment revisions |
| Temperature | Native K; browser display °C | Convert only at explicit presentation boundary; entropy uses K |
| Thermal conductance | W/K per node/edge/segment | Never silently accept W/(m² K) or multiply by area twice |
| Current | A per cell; stored current signal is mean | Label sum/mean/topology assumptions; no implied pack circuit |
| SOC | Dimensionless integrated state | No clipping or chemistry validity implied |
| Evidence status | Observed / historical / skipped / unavailable | Preserve exact status and runtime instead of a universal green badge |
| Data origin | Synthetic scenario/export | No measured calibration or product endorsement |
These are proposed documentation conventions for future public comparisons. They are not implemented adapters. A shared catalogue would need explicit schema/version mapping, dimension/unit tests, provenance and consumer examples. It should publish only information approved for that public scope; this repository does not enumerate other repositories or their findings.
Entry points for a public profile
Link to the project repository, existing Pages lab, reference handbook and source evidence. Describe the graph and browser models separately. Use dated claims such as “synthetic 3-D graph study with source-defined tests” unless actual exact-revision native/provider evidence supports a more specific statement. Do not promote preserved 37-test or release metadata as current portfolio-wide health.
Any later profile summary must first read the final independent QA, merge and deployed-content receipts. It may summarize completed outcomes but must carry unresolved optional-product, policy, native-runtime and browser boundaries. The twelve-month roadmap's cross-cutting vocabulary/provenance work remains a proposal with its own acceptance criteria, not an existing dependency on another project.
Canonical file: docs/owner/PORTFOLIO_INTEGRATION.md · Back to guide navigation
Source evidence and coverage boundaries
This review is pinned to 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a (Git tree a711d4e91e89cb7c18448cd6fbf45805eecdfc9b), dated 2026-11-19. The canonical acquisition contains 537 blobs and 89 directory entries, 626 entries total. All are reconciled by path, mode and Git object ID. Local .git administration is excluded from source coverage. The external handoff retains the complete per-entry ledger and exact file hashes.
94 entries have scoped source analysis; 532 are indexed only. Indexed does not mean analyzed. Directory metadata, generated project records, binary images/manuscripts and presentation assets remain explicitly bounded. All 53 MATLAB files were completely read, yielding 47 file-callable functions, one script, five test classes and 40 test methods.
Canonical areas
| Area | Blobs | Review emphasis |
|---|---|---|
(root) |
25 | Declared governance/provenance/licensing/build/startup/result entrypoints; remaining ancillary docs indexed |
.github |
11 | Seven workflows fully reviewed; Dependabot config read; issue templates indexed |
artifacts |
11 | Historical outputs/manifests: structured inventory and selected claims, no regeneration |
assets |
26 | Presentation assets structurally indexed |
config |
6 | Six synthetic scenarios and active fields |
docs |
45 | All executable script bodies and selected guides/config; styles/generated catalogues indexed |
examples |
5 | Four function examples and one optional-adapter script |
manuscript |
7 | Historical Markdown/bibliography/document objects indexed, not peer-reviewed or regenerated |
resources |
352 | Generated project XML: structural parse only |
scripts |
1 | Existing guide validator reviewed and executable in isolation |
simscape |
3 | Prerequisite gates, simulation wrapper and mapper |
src |
29 | Native graph/config/electrical/coolant/control/results/visualization bodies |
tests |
6 | Five classes; assertions and conditional skips, no local native execution |
tools |
10 | MATLAB utility bodies; manuscript Python AST/header and PowerShell export contract |
Reviewed implementation and contract sources
These exact links identify source, not future candidate code. Full MATLAB body review is distinct from execution. Browser review covers every executable script but does not certify DOM rendering; template style/assets retain indexed scope.
| Source | Disposition and scope |
|---|---|
| .github/dependabot.yml:1–7 | Complete executable/configuration source read for its specific public control/validation/export contract; execution recorded separately. |
| .github/workflows/core-ci.yml:1–34 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| .github/workflows/deploy-dashboard.yml:1–82 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| .github/workflows/no-codex-attribution.yml:1–99 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| .github/workflows/pages.yml:1–67 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| .github/workflows/portfolio-dashboard-check.yml:1–24 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| .github/workflows/release.yml:1–60 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| .github/workflows/simscape-integration.yml:1–28 | Complete workflow events, jobs, permissions, pinned actions, concurrency and deployment/release gates inspected; provider execution separate. |
| AGENTS.md:1–10 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| CHANGELOG.md:1–40 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| CITATION.cff:1–18 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| CONTRIBUTING.md:1–38 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| DECISIONS.md:1–83 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| ENVIRONMENT.md:1–40 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| LICENSE:1–26 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| PROJECT_CHARTER.md:1–43 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| PROVENANCE.md:1–60 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| README.md:1–200 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| RISK_REGISTER.md:1–18 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| ROADMAP.md:1–28 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| SECURITY.md:1–19 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| THIRD_PARTY_NOTICES.md:1–48 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| buildfile.m:1–102 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| config/3d-intercell-study.json:1–66 | Complete synthetic configuration read and traced through active default/validation/consumer fields; native execution not run. |
| config/baseline.json:1–10 | Complete synthetic configuration read and traced through active default/validation/consumer fields; native execution not run. |
| config/channel-restriction.json:1–10 | Complete synthetic configuration read and traced through active default/validation/consumer fields; native execution not run. |
| config/nonuniform-cooling.json:1–10 | Complete synthetic configuration read and traced through active default/validation/consumer fields; native execution not run. |
| config/sensor-fault.json:1–10 | Complete synthetic configuration read and traced through active default/validation/consumer fields; native execution not run. |
| config/vectorized-gradient.json:1–46 | Complete synthetic configuration read and traced through active default/validation/consumer fields; native execution not run. |
| docs/animations/gallery.js:1–20 | Complete executable/configuration source read for its specific public control/validation/export contract; execution recorded separately. |
| docs/animations/waveform.html:1–209 | All embedded executable script bodies inspected, plus selected navigation/config identity. HTML/CSS only structurally indexed; no rendered browser/accessibility claim. |
| docs/app.js:1–207 | Complete executable/configuration source read for its specific public control/validation/export contract; execution recorded separately. |
| docs/deployment.md:1–20 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| docs/index.html:1–475 | All embedded executable script bodies inspected, plus selected navigation/config identity. HTML/CSS only structurally indexed; no rendered browser/accessibility claim. |
| docs/lesson-config.json:1–320 | Complete configured thermal defaults, source identity, four presets and eight checkpoints read; pure model execution recorded separately. |
| docs/model.md:1–136 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| docs/native-lessons.html:1–164 | All embedded executable script bodies inspected, plus selected navigation/config identity. HTML/CSS only structurally indexed; no rendered browser/accessibility claim. |
| docs/portfolio/index.html:1–468 | All embedded executable script bodies inspected, plus selected navigation/config identity. HTML/CSS only structurally indexed; no rendered browser/accessibility claim. |
| docs/reproducibility.md:1–46 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| docs/validation.md:1–34 | Complete source text reviewed for declared policy, provenance, setup or historical scientific claims; preserved as dated source, not blindly recertified. |
| examples/compareBoundaryModes.m:1–21 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| examples/compareCoreAndSimscape.m:1–17 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| examples/run3DStudy.m:1–9 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| examples/runAdaptiveCooling.m:1–26 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| examples/runMonteCarloStudy.m:1–28 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| runDemo.m:1–11 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| scripts/portfolio/validate_guide.py:1–33 | Complete executable/configuration source read for its specific public control/validation/export contract; execution recorded separately. |
| simscape/buildThermoWeaveModel.m:1–105 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| simscape/mapSimscapeResults.m:1–132 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| simscape/runSimscapeScenario.m:1–40 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+config/defaultConfig.m:1–32 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+config/loadScenario.m:1–31 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+config/validate.m:1–1 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+config/validateConfig.m:1–392 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+control/advancedController.m:1–60 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+control/baselineController.m:1–17 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+coolant/evaluate.m:1–68 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+coolant/evaluateBoundary.m:1–1 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+coolant/march.m:1–8 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+electrical/heatGeneration.m:1–10 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+electrical/socDerivative.m:1–7 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+results/computeMetrics.m:1–24 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+results/export.m:1–1 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+results/exportJSON.m:1–12 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+results/makeResult.m:1–10 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+thermal/buildTopology.m:1–178 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+thermal/integrate.m:1–4 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+thermal/simulate.m:1–4 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+uncertainty/applyFaults.m:1–34 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+uncertainty/applyVariability.m:1–36 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+util/hashFile.m:1–13 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+util/hashStruct.m:1–1 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+util/hashText.m:1–4 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+visualization/dashboard.m:1–205 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+visualization/exportAnimation.m:1–83 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+visualization/render3DModule.m:1–126 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/+visualization/renderFigure.m:1–75 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/run.m:1–4 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| src/+thermoweave/simulate.m:1–102 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| startup.m:1–10 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tests/integration/Test3DStudy.m:1–80 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tests/integration/TestSimulationIntegration.m:1–205 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tests/regression/TestRegressionContracts.m:1–111 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tests/unit/TestConfigAndPhysics.m:1–204 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tests/unit/TestTopology3D.m:1–79 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/createSocialPreview.m:1–13 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/exportWebData.m:1–72 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/export_manuscript_pdf.ps1:1–16 | Complete executable/configuration source read for its specific public control/validation/export contract; execution recorded separately. |
| tools/generate3DResearchArtifacts.m:1–151 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/generateArtifacts.m:1–54 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/generateDocs.m:1–16 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/packageRelease.m:1–43 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/runExperimentSuite.m:1–227 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
| tools/writeVerificationReport.m:1–95 | Complete native source/test/utility file read for inputs, equations/control/dataflow, errors/fallbacks, output and side effects; no native runtime execution. |
Formats and unavailable artifacts
Complete structural parsing covers 21 JSON/CSV files and 391 XML/SVG files; binary accounting covers 8 files. These operations do not rerun historical simulations or visually inspect manuscripts/plots. No SLX/MDL, notebook, Git submodule, symlink or LFS pointer appears in the acquired canonical tree. If later revisions add one, inspect its content/provenance/callbacks under a dedicated method instead of treating a path index as analysis.
The declared source schemas, Python AST functions, all JavaScript declarations/events/exports and MATLAB declarations have structured inventories. Static parsing cannot prove dynamic dispatch, browser targets, native product availability or generated-model behavior. Public-callable native signatures and human-readable contracts appear in API_REFERENCE; browser surfaces are in BROWSER_MODEL_CATALOG.
External primary-source research
MathWorks documentation was consulted on 2026-11-19 for general solver/objective and thermal-boundary terminology. The repository remains the authority for what its code actually implements; no external example code, dataset or model was imported.
- ode15s: adaptive stiff ODE semantics; no repo execution claim.
- odeset: local error tolerances and max-step behavior.
- quadprog: the one-half quadratic objective convention.
- Scalar/vectorized thermal boundaries: conceptual product context only.
The source itself contains older provenance citations and manuscript literature records. Those records are preserved; this documentation pass does not claim a new comprehensive literature, legal-rights or measured-data audit. See limitations and evidence ledger.
Canonical file: docs/SOURCE_EVIDENCE.md · Back to guide navigation
Complete MATLAB entrypoint catalogue
Pinned source: 5f29e34788b0f7ee58e2feeafc4df5d48a9a687a. All 53 MATLAB files were read completely for their implemented contracts; runtime execution is separate. There are 47 file-callable functions, one script and five test classes. Local/nested functions are indexed in the structured handoff without incorrectly labeling them independent public calls. API guide · verification.
buildfile
function plan = buildfile
Returns MATLAB build plan. Tasks check/test/coverage/integration/artifacts/docs/package have declared dependencies. Test/artifact/package tasks write output; advisory coverage does not fail below 80%.
compareBoundaryModes
function summary = compareBoundaryModes()
No arguments; simulates four configuration files and returns/displays a table of scenario, mode, peak temperature, edge gradient under the PeakSpread_K label, and extraction energy.
examples/compareBoundaryModes.m:1–21
run3DStudy
function result = run3DStudy()
No arguments; runs config/3d-intercell-study.json, opens the native 3-D figure and returns the result.
runAdaptiveCooling
function comparison = runAdaptiveCooling()
No arguments; compares open-loop/baseline at 18 A, 180 s, 2 s output intervals and 298.25 K reference; returns/displays a two-row table.
examples/runAdaptiveCooling.m:1–26
runMonteCarloStudy
function summary = runMonteCarloStudy(numberOfRuns)
Positive integer numberOfRuns defaults to 20. Seeds begin at 6100; 120 s variability runs produce seed/peak/energy table. Requires addpath examples after startup.
examples/runMonteCarloStudy.m:1–28
runDemo
function result = runDemo(varargin)
No arguments creates a 30 s default run; first argument supplies a scenario, second writes JSON with stride 5. Returns canonical result; no-output call prints metrics.
buildThermoWeaveModel
function report = buildThermoWeaveModel(options)
Name-value ProjectRoot defaults to repository root. Returns product/policy/manifest gate status. Does not construct a model; READY is prerequisite status only.
simscape/buildThermoWeaveModel.m:1–105
mapSimscapeResults
function result = mapSimscapeResults(raw, config)
Accepts struct or SimulationOutput.thermoweaveRaw plus config. Requires time, temperature_K, soc, current_A and nonnegative residual; maps optional arrays/defaults into canonical result with MAPPED_NOT_GROUND_TRUTH.
simscape/mapSimscapeResults.m:1–132
runSimscapeScenario
function adapterResult = runSimscapeScenario(config, options)
Accepts config plus ProjectRoot option; StopTime comes from config.simulation.duration_s; runs the gating function, then may open/simulate a supplied generated model. Inspect callbacks first; skip status is returned when prerequisites fail.
simscape/runSimscapeScenario.m:1–40
thermoweave.config.defaultConfig
function cfg = defaultConfig()
No arguments; returns synthetic config/v1 values. Does not infer parameters from physical measurements.
src/+thermoweave/+config/defaultConfig.m:1–32
thermoweave.config.loadScenario
function cfg = loadScenario(source)
No argument/empty defaults; JSON path or struct recursively overrides defaults. Missing file, malformed JSON/type/schema/domain throw named errors; unknown extra fields are preserved.
src/+thermoweave/+config/loadScenario.m:1–31
thermoweave.config.validate
function cfg=validate(cfg)
Compatibility alias of validateConfig; returns canonicalized config and raises its validation errors.
src/+thermoweave/+config/validate.m:1–1
thermoweave.config.validateConfig
function cfg = validateConfig(cfg)
Checks required sections, dimensions, modes and domain restrictions; sets cell/controller counts and selected defaults. Shape validation is not exhaustive; several configured fields are not consumed downstream.
src/+thermoweave/+config/validateConfig.m:1–392
thermoweave.control.advancedController
function [u,info,state] = advancedController(input,cfg,state)
Input/config/prior state; returns u, info and state. Uses quadprog if present/successful; otherwise baseline with status/usedFallback. Reduced zonal one-horizon QP, not full plant MPC.
src/+thermoweave/+control/advancedController.m:1–60
thermoweave.control.baselineController
function [u,state] = baselineController(input,cfg,state)
Input temperatures/zones/weights/reference/elapsedStep and config/prior state. Returns bounded/rate-limited zone command and updated state; named deadband is subtracted after gain.
src/+thermoweave/+control/baselineController.m:1–17
thermoweave.coolant.evaluate
function b = evaluate(T,cfg,topo,zoneCommand,t)
T/config/topology/zone command/time; returns effective boundary, qCool and net extraction proxy. Scalar/vector/zonal or serial coolant, then active zone removal; faults include segment blockage.
src/+thermoweave/+coolant/evaluate.m:1–68
thermoweave.coolant.evaluateBoundary
function b=evaluateBoundary(varargin)
Forwarding alias to evaluate with its full argument/result contract.
src/+thermoweave/+coolant/evaluateBoundary.m:1–1
thermoweave.coolant.march
function [coolantT,qSolidCool] = march(T,H,inlet,massFlow,cp)
T(N), H(N,K), inlet K, mass flow kg/s, cp J/(kg K). Returns K coolant temperatures and K heat-into-coolant values. Direct helper does not repeat validated configuration checks.
src/+thermoweave/+coolant/march.m:1–8
thermoweave.electrical.heatGeneration
function [q,details] = heatGeneration(T,soc,I,cfg)
T/SOC vectors, scalar-or-N current, config. Returns total Joule/optional entropy heat W and details including resistance/current. Positive current is discharge; entropy can be negative.
src/+thermoweave/+electrical/heatGeneration.m:1–10
thermoweave.electrical.socDerivative
function dz = socDerivative(soc,I,cfg)
SOC establishes N; current/config produce dz/dt. Capacity_C with sign-specific efficiencies; no SOC clipping or termination.
src/+thermoweave/+electrical/socDerivative.m:1–7
thermoweave.results.computeMetrics
function m = computeMetrics(result,cfg)
Result/config produces sampled extrema/spreads, percentile, time/extraction integrals, variation and mixed violation count. Residual may be NaN before main simulation installs it.
src/+thermoweave/+results/computeMetrics.m:1–24
thermoweave.results.export
function m=export(varargin)
Alias forwarding to exportJSON; same filesystem and downsampling behavior.
src/+thermoweave/+results/export.m:1–1
thermoweave.results.exportJSON
function manifest = exportJSON(result,path,varargin)
Result/path/optional stride writes jsonencode payload and returns path/hash/numel(text) under bytes name. Integer stride advisable; full-grid metrics/timeBase remain and final sample can be omitted.
src/+thermoweave/+results/exportJSON.m:1–12
thermoweave.results.makeResult
function result = makeResult(data,cfg,topo,metadata)
Data/config/topology/metadata produces canonical result/v1 and metrics. No general complete input-schema validator; called with assembled simulation data.
src/+thermoweave/+results/makeResult.m:1–10
thermoweave.thermal.buildTopology
function topo = buildTopology(layout)
Layout struct produces node/edge counts, coordinates, edges, axes, incidence/Laplacian, zones, ordering and surface masks. Positive conductance/geometry/count validations; scalar units are W/K and m.
src/+thermoweave/+thermal/buildTopology.m:1–178
thermoweave.thermal.integrate
function result=integrate(varargin)
Alias forwarding to thermoweave.simulate; no independent integrator or accuracy guarantee.
src/+thermoweave/+thermal/integrate.m:1–4
thermoweave.thermal.simulate
function result=simulate(varargin)
Compatibility wrapper forwarding all supplied arguments to thermoweave.simulate; same implementation and limits.
src/+thermoweave/+thermal/simulate.m:1–4
thermoweave.uncertainty.applyFaults
function [p,active] = applyFaults(cfg,t,p)
Config/time/parameter struct returns modified parameters plus currently active records. Inclusive windows and target-specific multipliers; sensor/actuator handling is elsewhere.
src/+thermoweave/+uncertainty/applyFaults.m:1–34
thermoweave.uncertainty.applyVariability
function [cfg,info] = applyVariability(cfg,seed)
Config and optional seed; returns modified config and draw info, or unchanged config if disabled. Local mt19937ar; resistance lognormal and independent uniform capacity/conductance scales. Rectangular multilayer edge count defect documented.
src/+thermoweave/+uncertainty/applyVariability.m:1–36
thermoweave.util.hashFile
function digest = hashFile(path)
Path to readable file; SHA-256 via Java over fread uint8. Raises thermoweave#️⃣IO on open failure; returns lowercase digest.
src/+thermoweave/+util/hashFile.m:1–13
thermoweave.util.hashStruct
function h=hashStruct(s)
Hashes jsonencode of supplied struct through hashText. Field order/serialization matter; no semantic canonicalization guarantee.
src/+thermoweave/+util/hashStruct.m:1–1
thermoweave.util.hashText
function h=hashText(txt)
Character payload converted to UTF-8 bytes then Java SHA-256. Returns lowercase hex; requires Java-enabled MATLAB runtime.
src/+thermoweave/+util/hashText.m:1–4
thermoweave.visualization.dashboard
function app = dashboard(results, options)
Result or cell array; ReducedMotion defaults false. Returns app handles and opens UI for scenario/play/scrub/PNG/GIF. Schema presence is checked, not every array. GUI callbacks remain unexecuted here.
src/+thermoweave/+visualization/dashboard.m:1–205
thermoweave.visualization.exportAnimation
function manifest = exportAnimation(result, path, options)
Result/path; positive integer FrameCount default 30, positive Delay_s default 0.08. Writes selected-frame looping GIF via temporary PNG; returns hash/frame/delay manifest and cleans temporary figure/image.
src/+thermoweave/+visualization/exportAnimation.m:1–83
thermoweave.visualization.render3DModule
function figureHandle = render3DModule(result, options)
Result/v1 and coordinate shape validation, TimeIndex/Visible options. Returns figure with one colored cuboid per node and graph edges, fixed view [35 24]. No full accessibility conformance proof.
src/+thermoweave/+visualization/render3DModule.m:1–126
thermoweave.visualization.renderFigure
function figureHandle = renderFigure(result, options)
Canonical-like result; TimeIndex positive integer defaults final, capped to length; Visible defaults on. Opens 2-D summary figure with Celsius display and command traces.
src/+thermoweave/+visualization/renderFigure.m:1–75
thermoweave.run
function result = run(source,varargin)
Alias forwarding required source and optional arguments to thermoweave.simulate; use [] for default source.
thermoweave.simulate
function result = simulate(source,varargin)
Required source (use []), optional seed override. Resolves config/variability/topology; integrates T/SOC with output-interval control and produces canonical result/events. No file output by itself.
src/+thermoweave/simulate.m:1–102
startup
function root = startup()
Returns the project root and adds src/simscape/tools; does not add examples. MATLAB path mutation only.
createSocialPreview
function path = createSocialPreview()
Runs demo/renderFigure with hidden figure, writes docs/assets/social-preview.png at fixed size; returns path. Not run for documentation.
tools/createSocialPreview.m:1–13
exportWebData
function manifest = exportWebData(outputPath)
Optional output path defaults artifacts/web-data/thermoweave-demo.json. Simulates five declared scenarios; downsamples and converts to Celsius, writes/copies data to docs/assets, returns manifest.
generate3DResearchArtifacts
function evidence = generate3DResearchArtifacts()
No arguments; sweeps gz [0.10,0.25,0.75] for canonical cuboid; writes two PNG figures, CSV and JSON summary. Historical outputs are preserved.
tools/generate3DResearchArtifacts.m:1–151
generateArtifacts
function evidence = generateArtifacts()
No arguments; runs demo, plots/web data/GIF, verification report, experiments and 3-D research artifacts; writes artifact-manifest.json. Broad regeneration, not a static docs check.
tools/generateArtifacts.m:1–54
generateDocs
function report = generateDocs()
No arguments; checks presence of eight existing docs/assets entrypoints and returns report. Does not validate all links/content/new handbook.
packageRelease
function manifest = packageRelease()
No arguments; ZIPs declared source/evidence roots and writes release manifest with SHA/git metadata. No remote publication, no proven bytewise ZIP determinism.
runExperimentSuite
function manifest = runExperimentSuite(options)
Name-values MonteCarloRuns positive integer default 20, OutputPath default artifacts/reports/experiment-summary.json. Runs E0–E9 and writes records/statuses; inspect each record instead of assuming manifest creation means every experiment passed.
tools/runExperimentSuite.m:1–227
writeVerificationReport
function report = writeVerificationReport()
No arguments; may reuse JUnit based on limited tests/src mtime comparison or run tests; reads optional coverage/SARIF, runs demo and adapter gate, writes verification JSON. Historical reuse needs explicit provenance.
tools/writeVerificationReport.m:1–95
Script entrypoint
Runs core baseline and optional gated adapter; prints comparison status, never treats either result as ground truth. Inspect optional model callbacks before any future simulation.
examples/compareCoreAndSimscape.m:1–17
Test classes and method inventory
These methods define assertions; none was executed locally in this documentation environment. Setup methods are excluded from the 40 count. Test tolerances and conditional product skips are discussed in the evidence ledger.
Test3DStudy
tests/integration/Test3DStudy.m:1–80
canonicalResultHasThreeDimensionalState— tests/integration/Test3DStudy.m:12–12insulatedThreeDimensionalLatticeConservesUniformState— tests/integration/Test3DStudy.m:34–34renderCreatesAccessibleDeterministicThreeDimensionalFigure— tests/integration/Test3DStudy.m:58–58
TestSimulationIntegration
tests/integration/TestSimulationIntegration.m:1–205
isothermalE0RemainsExactlyAtEquilibrium— tests/integration/TestSimulationIntegration.m:15–15thermalRelaxationMovesTowardAmbient— tests/integration/TestSimulationIntegration.m:36–36energyAccountingAndSolverConvergenceAgree— tests/integration/TestSimulationIntegration.m:51–51signalHistoriesUseTheirDeclaredSampleTimes— tests/integration/TestSimulationIntegration.m:67–67externalHeatPreservesEnergyAccounting— tests/integration/TestSimulationIntegration.m:84–84storagePermutationPreservesSymmetricChainBehavior— tests/integration/TestSimulationIntegration.m:95–95prescribedGradientPreservesNodeSpecificOrdering— tests/integration/TestSimulationIntegration.m:116–116reversingCoolantSegmentsChangesSpatialPattern— tests/integration/TestSimulationIntegration.m:130–130baselineControllerRespectsBoundsAndRateLimit— tests/integration/TestSimulationIntegration.m:151–151advancedControllerCoolsHotZonesAndHonorsRate— tests/integration/TestSimulationIntegration.m:168–168e3PulseBaselineMeetsPredeclaredBenefit— tests/integration/TestSimulationIntegration.m:181–181
TestRegressionContracts
tests/regression/TestRegressionContracts.m:1–111
repeatedSeedReproducesConfigurationAndMetrics— tests/regression/TestRegressionContracts.m:21–21canonicalSchemaAndExportManifestRemainTraceable— tests/regression/TestRegressionContracts.m:35–35declaredFaultsExposeMetadataAndPreserveDimensions— tests/regression/TestRegressionContracts.m:56–56optionalSimscapeStatusIsExplicit— tests/regression/TestRegressionContracts.m:76–76simscapeMapperCompletesCanonicalContract— tests/regression/TestRegressionContracts.m:86–86simscapeMapperRejectsNoncanonicalCurrent— tests/regression/TestRegressionContracts.m:101–101
TestConfigAndPhysics
tests/unit/TestConfigAndPhysics.m:1–204
rejectsInvalidCellDimensions— tests/unit/TestConfigAndPhysics.m:15–15rejectsNegativeThermalMass— tests/unit/TestConfigAndPhysics.m:22–22rejectsInvalidConductance— tests/unit/TestConfigAndPhysics.m:29–29rejectsUnsupportedBoundaryMode— tests/unit/TestConfigAndPhysics.m:37–37rejectsUnsafeCoolantAndElectricalValues— tests/unit/TestConfigAndPhysics.m:44–44rejectsNonfiniteAndMalformedFaultDeclarations— tests/unit/TestConfigAndPhysics.m:55–55rejectsNegativeRuntimeResistanceFactor— tests/unit/TestConfigAndPhysics.m:72–72rejectsUnknownConfigurationSchema— tests/unit/TestConfigAndPhysics.m:80–80topologyContractAndPermutationMetadata— tests/unit/TestConfigAndPhysics.m:87–87jouleAndEntropicHeatSigns— tests/unit/TestConfigAndPhysics.m:99–99socDerivativeHonorsChargeAndDischarge— tests/unit/TestConfigAndPhysics.m:111–111coolantForwardAndReversePatternConserveHeat— tests/unit/TestConfigAndPhysics.m:124–124coolantRestrictionTargetsOnlyDeclaredSegment— tests/unit/TestConfigAndPhysics.m:139–139coolantSupportsPerSegmentConductance— tests/unit/TestConfigAndPhysics.m:154–154variabilityIncludesAllDeclaredThermalInterfaces— tests/unit/TestConfigAndPhysics.m:165–165scalarAndUniformVectorBoundaryAreEquivalent— tests/unit/TestConfigAndPhysics.m:179–179scalarCurrentProfileActsAsConstant— tests/unit/TestConfigAndPhysics.m:194–194
TestTopology3D
tests/unit/TestTopology3D.m:1–79
cuboidNodeAndSurfaceContracts— tests/unit/TestTopology3D.m:12–12conductanceAxesAndLaplacianArePhysical— tests/unit/TestTopology3D.m:35–35oneLayerCuboidReducesToLegacyRectangularTopology— tests/unit/TestTopology3D.m:55–55
Other executable tools
python scripts/portfolio/validate_guide.py takes no CLI options; it reads the learning configuration/HTML/SVG and prints a validation summary or raises on a mismatch. This existing helper is source-reviewed and executed separately. python tools/build_manuscript.py is a historical python-docx manuscript builder with a fixed input/output; its top-level purpose/imports and AST-defined functions are indexed, but its full rendering behavior and Word outputs are not revalidated here. tools/export_manuscript_pdf.ps1 uses Windows Word COM to open the existing DOCX read-only and export PDF; it is source-reviewed but not run. It requires Windows/Microsoft Word and writes the manuscript PDF. scripts/portfolio/validate_guide.py:1–33 tools/build_manuscript.py:1–32 tools/export_manuscript_pdf.ps1:1–16
Canonical file: docs/developer/API_REFERENCE.md · Back to guide navigation
Browser model and interaction catalogue
The repository has six interactive/presentation entry surfaces, plus a redirect page. This inventory separates pure mathematics, stored data and personal learning state. All seven executable JavaScript units across the HTML/JS sources are syntax/indexed; their complete executable bodies were read. No DOM/visual/keyboard/browser execution was performed by this author. Source scope · native interfaces.
Main analytic lesson
docs/index.html embeds JSON identical to docs/lesson-config.json and exports LabSimulation from a pure UMD script. Its exported properties are MODEL_SPECS, getModelSpec, resolveParameters, evaluateModel, checkCheckpoint. getModelSpec rejects an unknown kind. Recognized finite numeric inputs are clamped; invalid values fall back and unrecognized keys are ignored. Time is clamped to the selected horizon. Returned model specifications are not immutable deep copies. docs/index.html:147–337
For this repository the kind is thermal: one scalar heat capacity with constant heat/conductance, initial ambient, analytic exponential rise, time in minutes and Celsius display. The 60 min horizon exports 241 evenly spaced analytic samples; CSV columns include model time, each metric and each parameter. Four modules have two absolute-tolerance checkpoints each. Parameters/presets/expected values are source-defined; node docs/reference/check_lesson.cjs executes those eight fixtures without a DOM. docs/lesson-config.json:1–320 docs/index.html:338–475
| Module | Preset Q / H / C / ambient | Two 10 min targets (tolerance 0.02) |
|---|---|---|
| 1 | 600 W / 30 W/K / 12000 J/K / 20 °C | 35.537397 °C; 186.448762 kJ stored |
| 2 | 600 / 60 / 12000 / 20 | 29.502129 °C; 570.127759 W removed |
| 3 | 600 / 30 / 12000 / 35 | 50.537397 °C; 186.448762 kJ stored |
| 4 | 600 / 30 / 24000 / 35 | 45.552669 °C; 283.419932 W net heating |
checkCheckpoint accepts >=/gte, <=/lte, >/gt, </lt, ==/=/eq/≈. Equality uses absolute tolerance; non-strict comparisons include tolerance and strict comparisons do not. Invalid nonnumeric metric/target or unknown operator returns invalid status. These are fixture-comparison semantics, not a statistical confidence interval. docs/index.html:320–337
The UI adds window.LabDashboard, a frozen outer object with a copied-state snapshot getter and two pure API functions. Inputs, play/pause/reset, timeline, metric tabs, keyboard module tabs, presets, checkpoint checks, CSV/config download and clipboard/dialog actions are source-reviewed. Reduced motion stops automatic playback and responds to preference changes. Progress retains prior verified experiments even when the current parameters change; current displayed results reset. Clipboard/download/focus behavior still needs real browser verification. docs/index.html:338–475
Other embedded teaching kinds
The shared pure script contains battery, thermal, degradation, grid, cooling, agents, markets, control, security and charging kinds. Their code uses simplified analytic/heuristic teaching equations: ohmic battery/SOC, exponential degradation, dispatch balance, cooling response, fluid queue, transaction arithmetic, second-order control, alert flow and charging taper. Only thermal is selected by this repository's lesson configuration. Static reading of the other branches and syntax checking does not constitute runtime/scientific validation, and these generic kinds are not native ThermoWeave subsystems. docs/index.html:156–319
Native data playback
docs/original-index.html loads docs/app.js, which fetches docs/assets/thermoweave-demo.json. It offers scenario selection, play/pause, frame scrub, reduced-motion handling, heatmap/traces and a table. It assumes a 3×4 layout and twelve temperature entries per frame. validatePayload checks schema strings, scenario hash format, nonempty time length and temperature shape/finiteness; it does not fully validate time ordering, all metric/boundary/command fields or cryptographic content identity. An empty scenarios array passes that check but cannot initialize a current scenario. docs/app.js:1–207
Native exportWebData creates this separate thermoweave.web/v1 format from five native scenarios. Legacy playback is not the main scalar lesson and does not simulate a new native result in the browser. The stored source data and metrics remain historical. tools/exportWebData.m:1–72 artifacts/web-data/thermoweave-demo.json:1–1
Guides and animation archive
docs/native-lessons.html filters nine material cards by text and intersection of selected tags, displays counts and copies three command snippets with clipboard/fallback selection. Its catalogue records an older native source e62c0d720aa92273e4b8c9a2b03977ba06045fd2 and a separate browser package provenance. This package adds navigation only; it does not silently rewrite those older snapshots. docs/native-lessons.json:1–353 docs/native-lessons.html:114–164
docs/portfolio/index.html builds eight learning paths from its embedded configuration, validates pinned source URL construction, persists notes/review/motion state under a repository+revision local-storage key and exports a study plan. The explicit export field execution_status: not_executed_by_this_guide is retained. Search/level/tag filtering, empty states, dialog and manual review controls are source-reviewed, not a native executor. docs/portfolio/lesson-config.json:1–373 docs/portfolio/index.html:437–468
docs/animations/index.html is an archive with gallery.js; media are loaded on explicit play and removed on stop. Its companion waveform.html draws illustrative sinusoidal curves controlled by rate, temperature and damping sliders. It starts paused and stops on hidden/reduced-motion changes. The curves have no native battery/thermal solver coupling and are not scientific evidence. The archive and unavailable-media labels remain unchanged. docs/animations/gallery.js:1–20 docs/animations/waveform.html:1–209 docs/animations/manifest.json:1–84
The static reference handbook is generated from canonical docs/CFF, contains no JavaScript and adds no simulation control. Its new links use existing navigation styles. Source/HTML checks establish destinations and generated freshness; a later supported-browser review must establish actual appearance, accessibility and deployed content identity.
Canonical file: docs/developer/BROWSER_MODEL_CATALOG.md · Back to guide navigation