Python library for simulating heat transfer processes
heatrapy
Heatrapy is a lightweight Python framework for simulating heat transfer using finite-difference methods, with built-in support for phase transitions and caloric materials.
Features:
- โ Easy to learn
- โ Finite-difference heat transfer solver
- โ 1D and 2D thermal simulations
- โ Phase-change materials
- โ Caloric effects modeling
- โ Multi-material systems
- โ Real-time visualization
- โ Pure Python implementation
๐ Why Heatrapy?
Heatrapy makes thermal simulations accessible without heavy FEM or CFD frameworks.
Perfect for:
- Research prototypes
- Teaching heat transfer
- Rapid thermal modeling
- Solid-state cooling simulations
๐ฌ Example Simulation

โก Quick Installation
To install heatrapy use the pip package manager:
$ pip install heatrapy
To import the heatrapy module type in the python shell:
>>> import heatrapy as htp
See the example above or explore the documentation for complete tutorials.
๐ Documentation
Full documentation available here
๐ค Contributions
Contributions of all kinds are welcome!
Please see the development workflow here.
If heatrapy contributes to research that leads to a publication, please cite this paper.
โญ If you find heatrapy useful, consider starring the repository to support the project.