Gamma-Photon to Electric Energy Conversion

Gamma-Photon to Electric Energy Conversion

Gamma Radiation to Electricity

Simulate how gamma photons convert to electric energy through quantum dot interactions (via photoelectric effect or Compton scattering).

Thickness: 10 nm
Photon Energy: 10 keV

Results: Absorbed Fraction: 0, Usable Energy: 0 keV, Electric Current: 0 mA, Efficiency: 0%

Gamma-Photon to Electric Energy Conversion README

Gamma-Photon to Electric Energy Conversion README

This web application simulates the conversion of gamma photons into electric energy using quantum dot materials through the photoelectric effect and Compton scattering.

  • Photon Attenuation: How gamma photons interact with quantum dot materials, leading to energy absorption.
  • Energy Conversion: Converts absorbed photon energy into usable electric energy through an efficiency model based on electron transport properties.
  • Electric Current Generation: The simulation estimates the electric current generated due to electron mobility and applied electric fields.

The interface is built with HTML5, Bootstrap 5.3, and Chart.js for dynamic graph plotting and real-time simulation updates.

Project Structure

HTML Structure

The webpage is structured into a single interface where users select a material, adjust its thickness, and modify the photon energy. Results are displayed in real-time, including absorbed energy, electric current, and conversion efficiency.

Scripts and Libraries

  • Bootstrap 5.3: Provides layout and responsiveness.
  • Chart.js: Visualizes the energy conversion and current generation as dynamic bar graphs.

JavaScript functions handle the simulation's calculations and graph updates, providing real-time feedback based on user input.

Detailed Explanation of Code

1. HTML Structure

The HTML file begins with the usual <!DOCTYPE html> declaration. The body contains a <div> with the class container that centers the main content. It includes a material selector, photon energy, and thickness input, followed by a results box and graph container.

2. Simulation Logic

The main logic lies in the updateSimulation() function, which calculates the absorbed fraction of photon energy and its conversion into electric energy.

Key Functions
  • updateSimulation(): This function computes the energy absorbed by quantum dot material based on its thickness and photon energy, estimates the electric current generated, and updates the results dynamically.
  • updateChart(): Updates the bar chart displaying absorbed energy and usable energy.
Important Calculations
  • Absorbed Fraction: 1 - Math.exp(-attenuationCoeff * thickness / 10)
  • Usable Energy: energyAbsorbed * 0.35 (Assuming 35% conversion efficiency)
  • Electric Current: Computed based on drift velocity and energy conversion (usableEnergy * 1.6e-19 * 1e9) mA.
Charts
  • Conversion Chart: Displays absorbed and usable energy as a bar chart, providing visual feedback to the user.

Explore the Code (Interactive)

Below is the main HTML code for the Gamma-Photon to Electric Energy Conversion project. Feel free to scroll and explore the code structure!

Running the Project

To run the simulation:

  • Download the entire HTML code.
  • Open the HTML file in a web browser.
  • Interact with the simulation by selecting different materials, adjusting the thickness and photon energy sliders, and observing the results.

No additional dependencies are required, as Bootstrap and Chart.js are loaded from a CDN.

© 2024 Gamma-Energy Simulations Corp | Gamma-Photon to Electric Energy Conversion