Skip to content

Biswajit1999/blackbody-radiation-visualiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackbody Radiation Visualiser

Interactive astrophysics tool combining Python modelling and web-based visualisation.

What this project does

This project shows how the radiation curve of a star changes with temperature.

Users can explore:

  • Planck curve shape
  • peak wavelength
  • Wien’s displacement law
  • approximate stellar colour trend
  • visible wavelength range

Visual Understanding

Blackbody Radiation Curves

These curves show how the intensity and peak wavelength change with temperature.
Hotter objects emit more energy and peak at shorter wavelengths.


Wien’s Law (Peak Shift)

As temperature increases, the peak wavelength shifts toward shorter (bluer) wavelengths.


Stellar Temperature and Colour

Stars appear red, yellow, or blue depending on their surface temperature.


Electromagnetic Spectrum Context

The visible spectrum is only a small part of the full emission range.

Physics background

A blackbody emits radiation across a continuous range of wavelengths. The peak wavelength depends on temperature:

λmax = b / T

where:

  • λ_max = peak wavelength
  • T = temperature (K)
  • b = 2.898 × 10⁻³ m·K

As temperature increases, the peak shifts towards shorter wavelengths.

Why this matters

Blackbody radiation is important in:

  • stellar astrophysics
  • exoplanet science
  • spectroscopy
  • thermal physics
  • radiation laws
  • observational astronomy

Live Demo

Try the interactive tool

Licence and attribution

Code in this repository is released under the MIT Licence.

Images, diagrams, written explanations, and educational content are © 2026 Biswajit Jana unless otherwise stated.
Please credit this repository if you reuse or adapt any visual or explanatory material. Educational images and written explanations are licensed under CC BY 4.0. Attribution is required.

Suggested attribution:

“Blackbody Radiation Visualiser by Biswajit Jana — https://github.com/Biswajit1999/blackbody-radiation-visualiser”

Python version

Run:

pip install -r requirements.txt
python main.py

About

Interactive blackbody radiation visualiser for Planck curves, Wien's law, stellar colour, and temperature scaling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors