Simulate how gamma rays attenuate through different thicknesses of quantum dot materials.
Results: Absorbed Fraction: 0, Usable Energy: 0 keV
Work Function (Φ):
Ejected Electron Kinetic Energy (K.E.): eV
Will Electron Be Ejected?
Simulate pair production for high-energy gamma rays and see if electron-positron pairs are produced.
Gamma Energy: 1.02 MeV - Pair production possible!
Electron Energy: 0.51 MeV
Positron Energy: 0.51 MeV
Electron Velocity: 300,000,000 m/s
Positron Velocity: 300,000,000 m/s
This web application simulates three quantum mechanical experiments related to quantum dots:
The interface is built using HTML5, Bootstrap 5.3, and Chart.js for interactive graphs, providing an intuitive way to explore these quantum phenomena.
The webpage is divided into three sections, each representing an experiment. The layout is responsive and styled with Bootstrap. Users interact with the experiments via form elements like select
inputs, sliders, and dynamic content containers that display results in real-time.
JavaScript functions dynamically update graph data, simulate behaviors, and display results based on user input.
The HTML starts with a <!DOCTYPE html>
declaration to define the document as HTML5. A <div>
with the class container
centers the page content.
Head Section: Includes meta tags for viewport settings and links to Bootstrap CSS and Chart.js for styling and chart functionality.
Tab Navigation: The experiments are grouped under tabs for smooth transitions. Bootstrap's nav-tabs
are used to switch between the experiments without reloading the page.
This simulation allows users to select materials like Cadmium Selenide (CdSe) or Lead Sulfide (PbS) and adjust the thickness of the material. A graph displays the relationship between thickness and photon attenuation.
updatePhotonAttenuation()
: Calculates the attenuation of photons through a material based on an exponential decay model.1 - Math.exp(-attenuationCoeff * thickness / 10)
In this section, users can select a material and adjust the photon energy to observe the photoelectric effect in real-time.
updatePhotoelectric()
: Determines if the photon energy exceeds the work function, and if so, calculates the electron's kinetic energy.photonEnergyEV - workFunction
, where photonEnergyEV
is converted from keV to eV.This section simulates pair production, which occurs when gamma ray energy exceeds 1.02 MeV, resulting in electron-positron pairs.
updatePairProduction()
: Determines whether pair production is possible based on gamma ray energy and calculates electron/positron energy.The code below is the backbone of the Quantum Dot Simulations project. Feel free to scroll and explore!
To run the simulation: