Skip to content

PANFACTORY/adjoint-heat-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adjoint-heat-transfer

Lecture notes on the adjoint variable method for heat transfer

Overview

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.

Prerequisites

  • Install uv(Python package manager).

Getting started

  1. Clone this repository
    git clone https://github.com/PANFACTORY/adjoint-heat-transfer.git
    cd adjoint-heat-transfer
  2. Install dependencies
    uv sync
  3. Run
    uv run src/adjoint.py

Gallery

Run

uv run src/comparison

and 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.

Notes

License

MIT