Giter Site home page Giter Site logo

laser-diffraction-analysis's Introduction

Laser Diffraction Analysis

This class is for analyzing the intensity spectrum for a laser going through a single slit aperture. Using this class the intensity spectrum can be compared with the Fraunhofer and Fresnel Diffraction models.

Setup

Clone this repository using the terminal command:

git clone https://github.com/basilwong/laser-diffraction-analysis.git

Add all (python package)dependancies using the terminal command:

pip install -r requirements.txt

Use Example

import diffractiondata

analyzer = diffractiondata.DiffractionData("example-photos//11.25.jpg", True, slit_width=0.5e-3)
analyzer.plot_picture_data()

The result of the above code can be viewed as below:

alt text

Background

In the sections below the equations governing the Fraunhofer and Fresnel models are defined for a single slit aperture with a screen behind it.

To preface the data below, the represents “nearness” of a diffraction pattern. In general, the Fresnel limit is the better model for large while the Fraunhofer limit is the better model for .

The equation for is as below:

  • w is slit width
  • R is distance to the screen, which in this case is 364 cm.
  • λ is the wavelength of the laser

Fresnel Model

The Fresnel model is the generalized version of the Fraunhhofer model.

To get the Fresnel Model we use the equations defined by Equation 12.76 in "Classical and Modern Optics" by Daniel A. Steck as below:

Where:

Fraunhofer Model

The Fraunhofer model is obtained in the limit of . The resulting equation is as below:

laser-diffraction-analysis's People

Contributors

basilwong avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.