Lecture notes on the adjoint variable method for heat transfer
The adjoint variable method is a highly efficient sensitivity analysis technique and is frequently used in topology optimization. This note explains the formulation and implementation of the adjoint variable method applied to transient heat transfer discretized using the finite volume method.
- Install uv(Python package manager).
- Clone this repository
git clone https://github.com/PANFACTORY/adjoint-heat-transfer.git cd adjoint-heat-transfer - Install dependencies
uv sync
- Run
uv run src/adjoint.py
Run
uv run src/comparisonand you can see the comparison results between the design sensitivity computed by the adjoint variable method and that computed by the finite difference approximation as shown below.

