# cadence-celsius/deepoheat architecture

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

- Interactive diagram: https://gitdiagram.com/cadence-celsius/deepoheat
- Repository: https://github.com/cadence-celsius/deepoheat

## Overview

DeepOHeat is a research implementation for neural thermal simulation of 3D-IC configurations. Users define geometry, power, conductivity, and boundary conditions, then train a physics-informed model or an operator model and evaluate predicted temperatures; some examples compare results with Cadence Celsius. The graph distinguishes single-case PINNs from power-map DeepONet workflows and includes the shared geometry, data, differential-operator, loss, and model layers. Relationships among shared modules follow the source index and excerpts; unsampled implementation details are not inferred.

Main entry points: [`DeepOHeat/2d_power_map`](https://github.com/cadence-celsius/deepoheat/tree/master/DeepOHeat/2d_power_map) (Power-map operator), [`single_case_pinns`](https://github.com/cadence-celsius/deepoheat/tree/master/single_case_pinns) (Single-case PINNs), [`src/dataio_deeponet.py`](https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio_deeponet.py) (Operator data IO), [`src/training.py`](https://github.com/cadence-celsius/deepoheat/blob/master/src/training.py) (PINN training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflows["Simulation workflows"]
  node_pinn_examples["Single-case PINNs"]
  node_htc_examples["HTC workflows"]
  node_operator_workflow["Power-map operator"]
end

subgraph group_representation["Configuration and data"]
  node_case_config["Case configuration<br/>[train.py]"]
  node_pinn_data["Cuboid data IO<br/>[dataio.py]"]
  node_operator_data["Operator data IO<br/>[dataio_deeponet.py]"]
  node_sampling["Sampling utilities<br/>[dataio_utils.py]"]
  node_geometry["Cuboid geometry<br/>[geometry.py]"]
  node_operator_geometry["Operator geometry"]
  node_geometry_utils["Geometry utilities<br/>[geometry_utils.py]"]
  node_power_parser["Power-map parser<br/>[file_parser.py]"]
end

subgraph group_physics["Physics and optimization"]
  node_loss["Physics losses<br/>[loss_fun.py]"]
  node_operator_loss["Operator losses"]
  node_diff_ops["Differential operators<br/>[diff_operator.py]"]
  node_pinn_training["PINN training<br/>[training.py]"]
  node_operator_training["Operator training"]
end

subgraph group_models["Neural models"]
  node_network["Neural architectures<br/>[modules.py]"]
end

subgraph group_results["Evaluation"]
  node_pinn_eval["PINN evaluation<br/>[eval.py]"]
  node_operator_eval["Operator inference<br/>[prototype.py]"]
end

node_engineer(("Engineer"))
node_cadence["Cadence Celsius"]

node_engineer -->|"configures case"| node_pinn_examples
node_engineer -->|"selects workflow"| node_htc_examples
node_engineer -->|"selects workflow"| node_operator_workflow
node_pinn_examples -->|"defines case"| node_case_config
node_case_config -->|"configures dataset"| node_pinn_data
node_pinn_data -->|"creates geometry"| node_geometry
node_geometry -->|"uses sampling"| node_sampling
node_geometry -->|"uses utilities"| node_geometry_utils
node_operator_workflow -->|"builds dataset"| node_operator_data
node_operator_data -->|"creates geometry"| node_operator_geometry
node_operator_data -->|"uses utilities"| node_sampling
node_operator_geometry -->|"uses utilities"| node_geometry_utils
node_operator_workflow -->|"parses power maps"| node_power_parser
node_pinn_examples -->|"starts training"| node_pinn_training
node_htc_examples -->|"starts training"| node_pinn_training
node_operator_workflow -->|"starts training"| node_operator_training
node_pinn_training -->|"computes derivatives"| node_diff_ops
node_operator_training -->|"computes derivatives"| node_diff_ops
node_pinn_training -->|"optimizes model"| node_network
node_operator_training -->|"optimizes model"| node_network
node_pinn_examples -->|"builds losses"| node_loss
node_operator_workflow -->|"builds losses"| node_operator_loss
node_loss -->|"uses derivatives"| node_diff_ops
node_operator_loss -->|"uses derivatives"| node_diff_ops
node_pinn_eval -->|"loads evaluation data"| node_pinn_data
node_pinn_eval -->|"runs checkpoint"| node_network
node_operator_eval -->|"builds evaluation data"| node_operator_data
node_operator_eval -->|"runs inference"| node_network
node_operator_eval -->|"converts map"| node_power_parser
node_engineer -.->|"benchmarks against"| node_cadence
node_cadence -.->|"reference comparison"| node_pinn_eval

click node_pinn_examples "https://github.com/cadence-celsius/deepoheat/tree/master/single_case_pinns"
click node_htc_examples "https://github.com/cadence-celsius/deepoheat/tree/master/DeepOHeat/multi_htc_bc"
click node_operator_workflow "https://github.com/cadence-celsius/deepoheat/tree/master/DeepOHeat/2d_power_map"
click node_case_config "https://github.com/cadence-celsius/deepoheat/blob/master/single_case_pinns/uniform_power/train.py"
click node_pinn_data "https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio.py"
click node_operator_data "https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio_deeponet.py"
click node_sampling "https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio_utils.py"
click node_geometry "https://github.com/cadence-celsius/deepoheat/blob/master/src/geometry.py"
click node_operator_geometry "https://github.com/cadence-celsius/deepoheat/blob/master/src/geometry_deeponet.py"
click node_geometry_utils "https://github.com/cadence-celsius/deepoheat/blob/master/src/geometry_utils.py"
click node_power_parser "https://github.com/cadence-celsius/deepoheat/blob/master/src/file_parser.py"
click node_loss "https://github.com/cadence-celsius/deepoheat/blob/master/src/loss_fun.py"
click node_operator_loss "https://github.com/cadence-celsius/deepoheat/blob/master/src/loss_fun_deeponet.py"
click node_diff_ops "https://github.com/cadence-celsius/deepoheat/blob/master/src/diff_operator.py"
click node_pinn_training "https://github.com/cadence-celsius/deepoheat/blob/master/src/training.py"
click node_operator_training "https://github.com/cadence-celsius/deepoheat/blob/master/src/training_deeponet.py"
click node_network "https://github.com/cadence-celsius/deepoheat/blob/master/src/modules.py"
click node_pinn_eval "https://github.com/cadence-celsius/deepoheat/blob/master/DeepOHeat/multi_htc_bc/eval.py"
click node_operator_eval "https://github.com/cadence-celsius/deepoheat/blob/master/DeepOHeat/2d_power_map/prototype.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pinn_examples,node_htc_examples,node_operator_workflow toneBlue
class node_case_config,node_pinn_data,node_operator_data,node_sampling,node_geometry,node_operator_geometry,node_geometry_utils,node_power_parser toneAmber
class node_loss,node_operator_loss,node_diff_ops,node_pinn_training,node_operator_training toneMint
class node_network toneRose
class node_pinn_eval,node_operator_eval,node_engineer,node_cadence toneIndigo
```

## Components

### Simulation workflows

- [Single-case PINNs](https://github.com/cadence-celsius/deepoheat/tree/master/single_case_pinns): `single_case_pinns`
- [HTC workflows](https://github.com/cadence-celsius/deepoheat/tree/master/DeepOHeat/multi_htc_bc): `DeepOHeat/multi_htc_bc`
- [Power-map operator](https://github.com/cadence-celsius/deepoheat/tree/master/DeepOHeat/2d_power_map): `DeepOHeat/2d_power_map`

### Configuration and data

- [Case configuration](https://github.com/cadence-celsius/deepoheat/blob/master/single_case_pinns/uniform_power/train.py): `single_case_pinns/uniform_power/train.py`
- [Cuboid data IO](https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio.py): `src/dataio.py`
- [Operator data IO](https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio_deeponet.py): `src/dataio_deeponet.py`
- [Sampling utilities](https://github.com/cadence-celsius/deepoheat/blob/master/src/dataio_utils.py): `src/dataio_utils.py`
- [Cuboid geometry](https://github.com/cadence-celsius/deepoheat/blob/master/src/geometry.py): `src/geometry.py`
- [Operator geometry](https://github.com/cadence-celsius/deepoheat/blob/master/src/geometry_deeponet.py): `src/geometry_deeponet.py`
- [Geometry utilities](https://github.com/cadence-celsius/deepoheat/blob/master/src/geometry_utils.py): `src/geometry_utils.py`
- [Power-map parser](https://github.com/cadence-celsius/deepoheat/blob/master/src/file_parser.py): `src/file_parser.py`

### Physics and optimization

- [Physics losses](https://github.com/cadence-celsius/deepoheat/blob/master/src/loss_fun.py): `src/loss_fun.py`
- [Operator losses](https://github.com/cadence-celsius/deepoheat/blob/master/src/loss_fun_deeponet.py): `src/loss_fun_deeponet.py`
- [Differential operators](https://github.com/cadence-celsius/deepoheat/blob/master/src/diff_operator.py): `src/diff_operator.py`
- [PINN training](https://github.com/cadence-celsius/deepoheat/blob/master/src/training.py): `src/training.py`
- [Operator training](https://github.com/cadence-celsius/deepoheat/blob/master/src/training_deeponet.py): `src/training_deeponet.py`

### Neural models

- [Neural architectures](https://github.com/cadence-celsius/deepoheat/blob/master/src/modules.py): `src/modules.py`

### Evaluation

- [PINN evaluation](https://github.com/cadence-celsius/deepoheat/blob/master/DeepOHeat/multi_htc_bc/eval.py): `DeepOHeat/multi_htc_bc/eval.py`
- [Operator inference](https://github.com/cadence-celsius/deepoheat/blob/master/DeepOHeat/2d_power_map/prototype.py): `DeepOHeat/2d_power_map/prototype.py`

### Other components

- **Engineer**
- **Cadence Celsius**

## Connections

- Engineer → Single-case PINNs: configures case (evidence: `README.md`)
- Engineer → HTC workflows: selects workflow (evidence: `README.md`)
- Engineer → Power-map operator: selects workflow (evidence: `README.md`)
- Single-case PINNs → Case configuration: defines case (evidence: `single_case_pinns/uniform_power/train.py`)
- Case configuration → Cuboid data IO: configures dataset (evidence: `single_case_pinns/uniform_power/train.py`)
- Cuboid data IO → Cuboid geometry: creates geometry (evidence: `src/dataio.py`)
- Cuboid geometry → Sampling utilities: uses sampling (evidence: `src/geometry.py`)
- Cuboid geometry → Geometry utilities: uses utilities (evidence: `src/geometry.py`)
- Power-map operator → Operator data IO: builds dataset (evidence: `DeepOHeat/2d_power_map/prototype.py`)
- Operator data IO → Operator geometry: creates geometry (evidence: `src/dataio_deeponet.py`)
- Operator data IO → Sampling utilities: uses utilities (evidence: `src/dataio_deeponet.py`)
- Operator geometry → Geometry utilities: uses utilities (evidence: `src/geometry_deeponet.py`)
- Power-map operator → Power-map parser: parses power maps (evidence: `DeepOHeat/2d_power_map/prototype.py`)
- Single-case PINNs → PINN training: starts training (evidence: `single_case_pinns/uniform_power/train.py`)
- HTC workflows → PINN training: starts training (evidence: `DeepOHeat/multi_htc_bc/train.py`)
- Power-map operator → Operator training: starts training (evidence: `DeepOHeat/2d_power_map/train.py`)
- PINN training → Differential operators: computes derivatives (evidence: `src/training.py`)
- Operator training → Differential operators: computes derivatives (evidence: `src/training_deeponet.py`)
- PINN training → Neural architectures: optimizes model (evidence: `DeepOHeat/multi_htc_bc/train.py`)
- Operator training → Neural architectures: optimizes model (evidence: `DeepOHeat/2d_power_map/train.py`)
- Single-case PINNs → Physics losses: builds losses (evidence: `single_case_pinns/uniform_power/train.py`)
- Power-map operator → Operator losses: builds losses (evidence: `DeepOHeat/2d_power_map/train.py`)
- Physics losses → Differential operators: uses derivatives (evidence: `src/loss_fun.py`)
- Operator losses → Differential operators: uses derivatives (evidence: `src/loss_fun_deeponet.py`)
- PINN evaluation → Cuboid data IO: loads evaluation data (evidence: `DeepOHeat/multi_htc_bc/eval.py`)
- PINN evaluation → Neural architectures: runs checkpoint (evidence: `DeepOHeat/multi_htc_bc/eval.py`)
- Operator inference → Operator data IO: builds evaluation data (evidence: `DeepOHeat/2d_power_map/prototype.py`)
- Operator inference → Neural architectures: runs inference (evidence: `DeepOHeat/2d_power_map/prototype.py`)
- Operator inference → Power-map parser: converts map (evidence: `DeepOHeat/2d_power_map/prototype.py`)
- Engineer → Cadence Celsius: benchmarks against (evidence: `README.md`)
- Cadence Celsius → PINN evaluation: reference comparison (evidence: `README.md`)
