How silvapmm/pcb-thermal-lab works
PCB Thermal Lab lets users describe a multilayer board, import board geometry and copper when needed, choose a thermal model, run a solve, and inspect temperatures and other results. The main path is represented through the GUI or API, shared problem model, solver, and results; the CLI is another documented entry point. Additional branches cover Gerber import, transient power profiles, and memory safeguards. Edges reflect README statements or shown import/reference evidence; unsampled implementation details are omitted rather than inferred.
Main entry points: api.py Simulation API · fvm.py Finite volumes · app.py Interactive editor · model.py Board problem
Components 24
User interfaces
- Interactive editor
pcbthermal/gui/app.py - Command line
pcbthermal/cli.py - Simulation API
pcbthermal/api.py
Board definition
- Board problem
pcbthermal/model.py - Board geometry
pcbthermal/geometry.py - Power profiles
pcbthermal/profiles.py
Board import
- Gerber reader
pcbthermal/gerber/parser.py - Import workflow
pcbthermal/gui/import_session.py - Imported copper
pcbthermal/copper.py
Thermal simulation
- Finite volumes
pcbthermal/fvm.py - Finite differences
pcbthermal/fdm.py - 3D solid
pcbthermal/solid3d.py - Finite elements
pcbthermal/fem.py - Thermal network
pcbthermal/lumped.py - Analytical model
pcbthermal/analytic.py - Laminate network
pcbthermal/laminate.py - Metal blocks
pcbthermal/blocks.py - Via constriction
pcbthermal/viaconstriction.py - Via wells
pcbthermal/viawell.py - Convection
pcbthermal/convection.py
Results and safeguards
- Memory guard
pcbthermal/memory.py - Solve results
pcbthermal/results.py - Maps and plots
pcbthermal/plots.py
Other components
- Engineer
Connections 27
- Engineer → Interactive editor: edits board
README.md - Engineer → Command line: starts run
README.md - Interactive editor → Simulation API: runs simulation
README.md - Command line → Simulation API: runs simulation
README.md - Simulation API → Board problem: uses description
pcbthermal/api.py - Simulation API → Finite volumes: dispatches model
pcbthermal/api.py - Simulation API → Finite differences: dispatches model
pcbthermal/api.py - Simulation API → 3D solid: dispatches model
pcbthermal/api.py - Simulation API → Finite elements: dispatches model
pcbthermal/api.py - Simulation API → Thermal network: dispatches model
pcbthermal/api.py - Simulation API → Analytical model: dispatches model
pcbthermal/api.py - Board problem → Board geometry: uses geometry
pcbthermal/model.py - Finite volumes → Laminate network: builds nodes
pcbthermal/fvm.py - Finite volumes → Metal blocks: models blocks
pcbthermal/fvm.py - Finite volumes → Via wells: models vias
pcbthermal/fvm.py - Thermal network → Via constriction: uses constriction
pcbthermal/lumped.py - Simulation API → Memory guard: checks memory
pcbthermal/api.py - Simulation API → Solve results: returns results
pcbthermal/api.py - Interactive editor → Solve results: shows results
README.md - Solve results → Maps and plots: feeds displays
README.md - Interactive editor → Import workflow: starts import
pcbthermal/gui/import_session.py - Import workflow → Gerber reader: reads files
pcbthermal/gui/import_session.py - Import workflow → Imported copper: builds imported copper
pcbthermal/gui/import_session.py - Finite volumes → Imported copper: maps copper
pcbthermal/fvm.py - Simulation API → Power profiles: simulates profiles
README.md - Simulation API → Convection: computes convection
pcbthermal/api.py - Board problem → Power profiles: stores profiles
pcbthermal/model.py