Skip to content

divyansh-69/newton-rings-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

🌗 Newton-Rings Visualization

Interactive Python animation demonstrating Newton's rings — an optical interference pattern produced by the reflection of light between a spherical surface and an adjacent flat surface. This project provides a live visualization so students and enthusiasts can explore how parameters (wavelength, lens curvature, index of refraction, gap) affect the ring pattern.

Screenshot 2025-08-25 200056 ---

✨ Features

  • Real-time interactive animation of Newton’s rings.
  • Adjustable parameters: wavelength, lens radius / curvature, refractive index, gap thickness, and illumination intensity.
  • Toggle between monochromatic and broadband illumination.
  • Export frames or save animation as MP4/GIF for presentations.
  • Educational overlays: radius markers, fringe order, and approximate analytical fit.

🧪 Physics (brief)

Newton’s rings result from interference between light reflected from the lower surface of a thin air film and the upper surface of a spherical lens in contact with a flat plate. The constructive/destructive interference depends on the optical path difference, which in turn depends on the local air-gap thickness. This visualization maps intensity across the surface and demonstrates how changing physical parameters shifts fringe spacing and contrast.


⚙️ Requirements

  • Python 3.8+
  • NumPy
  • Matplotlib

You can install required packages with:

pip install numpy matplotlib 

About

A interactive python animation to show the changes in effect in newton's rings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages